/* --- LuxAlgo Style Checkout Redesign --- */

.smrt-checkout-page {
    box-sizing: border-box;
    font-family: "Inter", sans-serif !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    min-height: 100vh;
}
.smrt-checkout-page, .smrt-checkout-page * {
    box-sizing: border-box;
    font-family: "Inter", sans-serif !important;
}

html, body {
    background-color: #000000 !important; 
    margin: 0 !important;
    padding: 0 !important;
}

header, nav, footer, #masthead, #site-navigation, .site-header, .site-footer, .page-header, #page-header, .entry-header, .page-title, .entry-title, .masthead, .before-header, .top-navigation { 
    display: none !important; 
}

.row, .columns, #page, #content, #primary, #main, article, .site-content, .entry-content { 
    background-color: transparent !important; 
    color: #ffffff !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    border: none !important; 
    box-shadow: none !important;
    max-width: 100% !important;
}
.smrtalgo-legal-footer { display: none !important; } /* Just in case */

/* Hide PMPro Password Strength Meter */
#pass-strength-result, .pass-strength-result, #pmpro_password_strength { 
    display: none !important; 
    opacity: 0 !important; 
    visibility: hidden !important; 
    height: 0 !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    overflow: hidden !important; 
}

/* Global overrides for PMPro messages */
#pmpro_message { display: block; background-color: rgba(220, 38, 38, 0.1) !important; color: #ef4444 !important; border: 1px solid rgba(220, 38, 38, 0.3); padding: 15px !important; border-radius: 8px !important; margin-top: 15px !important; margin-bottom: 20px !important; text-align: center; font-size: 14px !important; }
#pmpro_message.pmpro_success { background-color: rgba(16, 185, 129, 0.1) !important; color: #10B981 !important; border-color: rgba(16, 185, 129, 0.3); }

@keyframes smrt-spin {
    to { transform: rotate(360deg); }
}

#pmpro_processing_message {
    display: none !important;
}

/* --- HEADER --- */
.smrt-checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
}
.smrt-logo img {
    height: 24px;
    width: auto;
}
.smrt-back-link {
    color: #a0a0a0 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: 0.2s;
}
.smrt-back-link:hover {
    color: #fff !important;
}

/* --- GRID LAYOUT --- */
.smrt-checkout-grid {
    display: flex !important;
    max-width: 1140px !important;
    margin: 40px auto !important;
    padding: 0 24px !important;
    gap: 48px !important;
    align-items: flex-start !important;
    background: transparent !important;
    border: none !important;
}
.smrt-checkout-left {
    flex: 1.15;
    position: sticky;
    top: 40px;
    min-width: 460px;
}
.smrt-checkout-right {
    flex: 1.25;
}

/* --- LEFT COLUMN: SUMMARY CARD --- */
.smrt-summary-card {
    background: #050505 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}
.smrt-summary-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}
.smrt-summary-icon img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}
.smrt-summary-title h3 {
    margin: 0 0 4px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}
.smrt-summary-title p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #888 !important;
}

.smrt-summary-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.smrt-price-large {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
}
.smrt-price-period {
    color: #888 !important;
    font-size: 14px !important;
}

.smrt-summary-breakdown {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    margin-bottom: 16px;
}
.smrt-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 14px;
}
.smrt-breakdown-row:last-child {
    margin-bottom: 0;
}
.smrt-breakdown-row.smrt-discount-row {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.smrt-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(141, 55, 254, 0.16);
    border: 1px solid rgba(141, 55, 254, 0.5);
    border-radius: 9999px;
    padding: 4px 9px 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.02em;
    box-shadow: 0 0 12px rgba(141, 55, 254, 0.2);
    transition: all 0.2s ease;
}
.smrt-discount-badge:hover {
    border-color: rgba(141, 55, 254, 0.8);
    box-shadow: 0 0 16px rgba(141, 55, 254, 0.35);
}
.smrt-badge-tag-icon {
    display: inline-block;
    color: #d103f6;
    flex-shrink: 0;
}
.smrt-badge-code {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.03em;
}
.smrt-badge-remove {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}
.smrt-badge-remove:hover {
    color: #ffffff;
    transform: scale(1.15);
}
.smrt-saved-row {
    color: #10B981;
}

.smrt-summary-total {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 15px;
}

/* Discount Entry */
.smrt-discount-entry {
    margin-top: 16px;
    padding: 0 10px;
}
#other_discount_code_toggle {
    background: none !important;
    border: none !important;
    color: #888 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 13px !important;
    padding: 0 !important;
}
#other_discount_code_toggle:hover { color: #fff !important; }
.smrt-discount-fields {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.smrt-discount-fields input[type="text"] {
    flex: 1;
    background: #050505 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}
.smrt-discount-fields input[type="button"] {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

/* --- RIGHT COLUMN: TABS & FORM --- */
.smrt-payment-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.smrt-tab-btn {
    flex: 1;
    background: #050505 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #888 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: 0.2s;
}
.smrt-tab-btn:hover {
    background: #111111 !important;
    color: #fff !important;
}
.smrt-tab-btn.active {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

.smrt-form-section {
    background: #050505 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
}
.smrt-fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.smrt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.smrt-section-header h3 {
    margin: 0 !important;
}
.smrt-login-link {
    font-size: 13px;
    color: #888;
}
.smrt-login-link a {
    color: #c084fc !important;
    text-decoration: underline !important;
    font-weight: 500;
    transition: color 0.15s ease;
}
.smrt-login-link a:hover {
    color: #d103f6 !important;
}
.smrt-form-section h3 {
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.smrt-logged-in-text {
    font-size: 13px !important;
    color: #ccc !important;
    margin-bottom: 20px;
}
.smrt-logged-in-text a {
    color: #888 !important;
    text-decoration: underline !important;
    margin-left: 8px;
}

/* Form Inputs */
.smrt-form-group {
    margin-bottom: 16px;
}
.smrt-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #e0e0e0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.smrt-checkout-page input[type="text"],
.smrt-checkout-page input[type="email"],
.smrt-checkout-page input[type="password"],
.smrt-checkout-page select,
.smrt-checkout-page div.smrt-stripe-div {
    width: 100% !important;
    background: #0a0a0a !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: 0.2s !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.smrt-checkout-page input:focus,
.smrt-checkout-page select:focus {
    border-color: #666 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #111111 !important;
}
.smrt-checkout-page input::placeholder { color: #666 !important; }

/* Field Error Highlight & Helper */
.smrt-checkout-page input.smrt-input-error,
.smrt-checkout-page input[type="text"].smrt-input-error,
.smrt-checkout-page input[type="email"].smrt-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.smrt-field-error-msg {
    display: block;
    font-size: 13px;
    color: #ef4444;
    margin-top: 8px;
    line-height: 1.4;
}
.smrt-error-login-link {
    color: #c084fc !important;
    text-decoration: underline !important;
    font-weight: 600;
}
.smrt-error-login-link:hover {
    color: #d103f6 !important;
}

.smrt-form-row {
    display: flex;
    gap: 16px;
}
.smrt-form-group.half {
    flex: 1;
}
.smrt-date-wrap {
    display: flex;
    gap: 8px;
}
.smrt-date-wrap select {
    flex: 1;
}

/* Card Subtabs (Visual only) */
.smrt-card-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
}
.smrt-subtab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 12px;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}
.smrt-subtab.active {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: #111111;
}

/* Terms and Checkboxes */
.smrt-terms-checkboxes {
    margin: 24px 0;
}
.smrt-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    cursor: pointer;
}
.smrt-checkbox-label a {
    color: #ccc !important;
    text-decoration: underline !important;
}
.smrt-checkbox-label input[type="checkbox"] {
    margin-top: 2px !important;
    accent-color: #fff !important;
    width: 16px !important;
    height: 16px !important;
    background: #0a0a0a !important;
    border: 1px solid #222 !important;
    border-radius: 4px !important;
}
.smrt-risk-text {
    font-size: 11px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}
.smrt-risk-text a {
    color: #888;
    text-decoration: underline;
}

/* Submit Button */
.smrt-submit-wrap {
    margin-bottom: 10px;
}
.smrt-checkout-page #pmpro_btn-submit,
.pmpro_form #pmpro_btn-submit,
#pmpro_btn-submit,
.smrt-btn-primary {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    width: 100% !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}
.smrt-checkout-page #pmpro_btn-submit:hover,
.pmpro_form #pmpro_btn-submit:hover,
#pmpro_btn-submit:hover,
.smrt-btn-primary:hover {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    opacity: 0.9 !important;
    filter: none !important;
    transform: none !important;
}
.smrt-checkout-page #pmpro_btn-submit:active,
.pmpro_form #pmpro_btn-submit:active,
#pmpro_btn-submit:active,
.smrt-btn-primary:active {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    opacity: 0.75 !important;
    transform: scale(0.99) !important;
    filter: none !important;
}

/* Loading & Disabled State with Right-Aligned Spinner */
.smrt-checkout-page #pmpro_btn-submit:disabled,
.smrt-checkout-page #pmpro_btn-submit.smrt-btn-loading,
.pmpro_form #pmpro_btn-submit:disabled,
.pmpro_form #pmpro_btn-submit.smrt-btn-loading,
#pmpro_btn-submit:disabled,
#pmpro_btn-submit.smrt-btn-loading {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    position: relative !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.75 !important;
    box-shadow: none !important;
    border: none !important;
}

.smrt-checkout-page #pmpro_btn-submit:disabled::after,
.smrt-checkout-page #pmpro_btn-submit.smrt-btn-loading::after,
.pmpro_form #pmpro_btn-submit:disabled::after,
.pmpro_form #pmpro_btn-submit.smrt-btn-loading::after,
#pmpro_btn-submit:disabled::after,
#pmpro_btn-submit.smrt-btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 20px;
    left: auto;
    margin-top: -10px;
    margin-left: 0;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: smrt-spin 0.8s linear infinite;
}

/* --- FOOTER --- */
.smrt-checkout-footer {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    font-size: 12px;
    color: #888;
}
.smrt-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.smrt-footer-right a {
    color: #888;
    text-decoration: none;
}
.smrt-footer-right a:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .smrt-checkout-header {
        padding: 20px;
    }
    .smrt-checkout-grid {
        flex-direction: column !important;
        margin: 20px auto !important;
    }
    .smrt-checkout-left, .smrt-checkout-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .smrt-checkout-left {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px !important;
    }
    .smrt-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
}

@media (max-width: 520px) {
    .smrt-summary-title h3 {
        white-space: normal !important;
    }
}

