/* MyAccount Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    max-width: 25%;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #374151;
    text-decoration: none !important;
    background: #f9fafb;
    transition: background 0.3s, color 0.3s !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #e0e7ff;
    color: #4f46e5;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a.active {
    background: #6366f1;
    color: #ffffff;
}

/* Optional: Add slight shadow on hover */
.woocommerce-MyAccount-navigation ul li a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.woocommerce-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 380px;
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.woocommerce-download:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pwpc-download-product {
    flex: 1;
}

.pwpc-product-title {
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 28px;
    outline: none;
}

.pwpc-product-title:focus {
    outline: none;
}

.pwpc-download-product p {
    margin: 10px 0 0 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 14px;
}

.pwpc-download-action {
    flex: 0 0 250px;
    margin-bottom: 15px;
}

.pwpc-download-select:hover {
    border-color: #6366f1;
}

.pwpc-woocommerce-download .download-file .pwpc-download-button {
    display: inline-flex;
    background-color: #6366f1;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 25px!important;
    margin-top: 10px;
    align-items: center;
    column-gap: 6px;
    line-height: 18px;
    outline: none;
    transition: background-color 0.3s;
}

.pwpc-woocommerce-download .download-file .pwpc-download-button.button{
    background-color: #6366f1;
    color: #fff;
}

.pwpc-woocommerce-download .download-file button.pwpc-download-button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwpc-woocommerce-download .download-file .pwpc-download-button:hover {
    background-color: #6366f1;
}

.pwpc-woocommerce-download .download-file .pwpc-download-button:focus {
    outline: none;
}

.pwpc-woocommerce-download .download-file button.pwpc-download-button.certificate {
    background-color: #10b981;
    margin-bottom: 10px;
}

.pwpc-woocommerce-download .download-file .pwpc-download-button.certificate:hover {
    background-color: #059669;
    /* Darker green on hover */
}


.pwpc-product-image img {
    width: 80px;
    height: 70px;
}

.pwpc-product-image {
    display: flex;
    gap: 13px;
    margin-bottom: 15px;
}

.woocommerce-page table.shop_table td,
.woocommerce-page table.shop_table th {
    padding: 12px !important;
}


/* Hide native arrow */
.pwpc-styled-select,
.pwpc-download-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    font-size: 14px;
    width: 100%;
    outline: none;
    cursor: pointer;
    color: #32373c;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pwpc-styled-select-wrapper {
    position: relative;
    width: 250px;
}

.paddlepay-table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    border-radius: 5px;
}

.paddlepay-table thead {
    background-color: #f8f9fa;
}

.paddlepay-table th,
.paddlepay-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
table thead:first-child tr:first-child th {
	border-block-start: 1px solid #e5e7eb!important;
}

td.pwpc-actions {
    width: 255px;
    vertical-align: middle;
}

.paddlepay-table th {
    font-weight: 600;
    color: #333;
}

.paddlepay-table td code {
    background-color: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.pwpc-product-name {
    font-weight: 500;
    font-size: 16px;
    color: #191822;
    line-height: 1.1;
    margin-bottom: 4px;
}

.pwpc-plan-name,
.pwpc-status-date {
    font-weight: 500;
    font-size: 14px;
    color: #7d7d7e;
    margin-top: 13px;
}


.pwpc-status {
    display: inline-flex;
    padding: 3px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-style: normal;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    line-height: normal;
}
.pwpc-status.trialing{
    color: #07bfe4;
    background: rgba(7, 191, 228, 0.1);
}

.pwpc-status.active {
    color: #09af67;
    background: rgba(9, 175, 103, 0.1);
}

.pwpc-status.canceled {
    background: rgba(255, 59, 59, 0.1);
    color: #ff3b3b;
}

.pwpc-status.paused {
    background: rgba(255, 136, 0, 0.1);
    color: #f80;
}

.pwpc-status-date {
    display: inline-block;
    margin-top: 7px;
    font-size: 13px;
}

.pwpc-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 6px;
    color: #555;
}

.paddlepay-table .pwpc-actions a {
    text-decoration: none;
}

.paddlepay-table .pwpc-actions a:hover {
    color: #fff;
}

.pwpc-btn {
    display: inline-flex;
    padding: 7px 16px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: all .4s ease;
}

.pwpc-btn-manage {
    border-radius: 6px;
    border: 1px solid #5f4afe;
    color: #5f4afe;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    transition: all .4s ease;
    margin-right: 7px;
}

.pwpc-btn-manage:hover {
    background-color: #5f4afe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pwpc-btn-cancel {
    background: #ff3b3b;
    color: #fff;
    transform: translateY(2px);
}
.pwpc-btn-cancel svg{
    border: 1px solid #fff;
    border-radius: 50px;
    transition: all .4s ease;
}
.pwpc-btn-cancel svg path{
    transform: translateY(-1px) translateX(-1px);
}
.pwpc-btn-cancel:hover svg{
    border-color: transparent;
}
.pwpc-btn-cancel:hover {
    background-color: #b02a37;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .woocommerce-order-details table.shop_table {
    width: 100%;
}

.woocommerce .woocommerce-order-details table.shop_table tfoot td,
.woocommerce .woocommerce-order-details table.shop_table tfoot th {
    font-weight: 700;
    border-top: 1px solid rgba(0, 0, 0, .1);
    font-size: 16px;
}

.paddlepay-pagination {
    margin-top: 20px;
    text-align: center;
}

.paddlepay-pagination .page-numbers {
    display: inline-block;
    margin: 0;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #dfdfe0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #716f7e;
    box-shadow: 0 1px 1px 0 rgba(25, 24, 34, 0.04);
    width: 34px;
    height: 34px;
    transition: all .4s ease;
}
.paddlepay-pagination .page-numbers:hover{
    background: #5f4afe;
    color: #fff;
    border-color: #5f4afe;
}
.paddlepay-pagination .prev.page-numbers {
    width: auto;
    height: auto;
}
.paddlepay-pagination .next.page-numbers {
    width: auto;
    height: auto;
}

.paddlepay-pagination .current {
    background: #5f4afe;
    color: #fff;
    border-color: #5f4afe;
}

.paddlepay-pagination .page-numbers:focus {
    outline-width: 1px;
    outline-style: solid;
    color: #5f4afe;
    outline-color: #5f4afe;
}

.payment_method_pwpc_woo_paddle label img {
    width: 40px;
    height: auto;
}
.product-title {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #191822;
    line-height: 1.2;
}
.pwpc-download-limit{
    margin-bottom: 5px!important;
}

.pwpc-action-wrapper {
    display: flex;
    gap: 10px;
}

/* WooCommerce Order Downloads Styling */
.woocommerce-order-downloads {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 20px;
}

.woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    text-align: left;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    overflow: hidden;
}

.woocommerce-table--order-downloads thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: 2px solid #eef2f7;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.woocommerce-table--order-downloads tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #495057;
}

.woocommerce-table--order-downloads tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-table--order-downloads tbody tr:hover {
    background-color: #fcfcfc;
}

.woocommerce-table--order-downloads a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s;
    font-weight: 500;
}

.woocommerce-table--order-downloads a:hover {
    color: #0056b3;
}

/* Download Button Styling */
.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file.button.alt {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2271b1;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file.button.alt:hover {
    background-color: #135e96;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(34, 113, 177, 0.3);
}

.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file.button.alt:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .woocommerce-table--order-downloads thead {
        display: none;
    }

    .woocommerce-table--order-downloads tbody td {
        display: block;
        padding-left: 50%;
        position: relative;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .woocommerce-table--order-downloads tbody td:before {
        content: attr(data-title);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #6c757d;
        text-align: left;
    }
    
    .woocommerce-table--order-downloads tbody tr {
        border-bottom: 2px solid #eef2f7;
        display: block;
        margin-bottom: 15px;
    }
    
    .woocommerce-table--order-downloads tbody tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* Modern License Keys Table Styling */
.pwpc-license-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #ebf0f5;
}

.pwpc-section-header {
    background: #fcfdfe;
    padding: 20px 25px;
    border-bottom: 1px solid #ebf0f5;
}

.pwpc-product-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3338;
}

.pwpc-modern-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.pwpc-modern-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
}

.pwpc-modern-table th {
    background-color: #ffffff;
    padding: 15px 25px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #ebf0f5;
    text-align: left;
}

.pwpc-modern-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #ebf0f5;
    vertical-align: middle;
}

.pwpc-modern-table tr:last-child td {
    border-bottom: none;
}

.pwpc-modern-table tr:hover {
    background-color: #fcfcfc;
}

/* Key Input Group */
.pwpc-key-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    width: 100%;
    max-width: 450px;
    transition: all 0.2s ease;
}

.pwpc-key-input-group:focus-within {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.4);
}

.pwpc-key-monitor {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    color: #334155 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100%;
    min-width: 0;
    opacity: 1 !important;
    appearance: textfield !important;
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.pwpc-key-monitor:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Action Buttons */
.pwpc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.pwpc-copy-btn {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pwpc-copy-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.pwpc-copy-btn:active {
    transform: translateY(0);
    background-color: #e2e8f0;
}

.pwpc-copy-btn.copied {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.pwpc-btn-icon svg {
    width: 14px;
    height: 14px;
}

/* Status Badge */
.pwpc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.pwpc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.pwpc-status-badge.active .pwpc-status-dot {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.pwpc-status-badge.expired .pwpc-status-dot {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.pwpc-status-badge.lifetime .pwpc-status-dot {
    background-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.pwpc-status-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.pwpc-status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pwpc-status-date, 
.pwpc-status-badge.lifetime .pwpc-status-content {
    color: #334155;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pwpc-modern-table thead {
        display: none;
    }
    
    .pwpc-modern-table td {
        display: block;
        padding: 15px 20px;
        text-align: left;
    }
    
    .pwpc-modern-table td.pwpc-col-key {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .pwpc-modern-table td.pwpc-col-expiry {
        padding-top: 5px;
    }
    
    .pwpc-key-input-group {
        max-width: 100%;
    }
    
    .pwpc-status-badge {
        background: #f8fafc;
        padding: 8px 12px;
        border-radius: 6px;
        width: 100%;
        border: 1px solid #f1f5f9;
        margin-top: 10px;
    }

    .pwpc-col-actions {
        text-align: left;
        padding-top: 15px !important;
    }

    .pwpc-action-buttons {
        justify-content: flex-start;
    }
}

/* Action Buttons Group */
.pwpc-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.pwpc-secondary-btn {
    background-color: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    min-width: 60px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pwpc-secondary-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    text-decoration: none;
}