/* --- 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); }

/* --- SPINNER FOR SUBMIT BUTTON --- */
#pmpro_btn-submit:disabled {
    background: #1a1a24 !important;
    color: transparent !important;
    position: relative;
    cursor: not-allowed !important;
}

#pmpro_btn-submit:disabled::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smrt-spin 1s linear infinite;
}

@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: 1000px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    gap: 40px !important;
    align-items: flex-start !important;
    background: transparent !important;
    border: none !important;
}
.smrt-checkout-left {
    flex: 1;
    position: sticky;
    top: 40px;
    min-width: 380px;
}
.smrt-checkout-right {
    flex: 1.3;
}

/* --- 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;
}
.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-discount-row {
    color: #fff;
}
.smrt-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

.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-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; }

.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-btn-primary {
    background: #fff !important;
    color: #000 !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: 0.2s !important;
    box-shadow: none !important;
}
.smrt-btn-primary:hover {
    background: #e0e0e0 !important;
    color: #000 !important;
}

/* --- FOOTER --- */
.smrt-checkout-footer {
    max-width: 1000px;
    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;
    }
    .smrt-checkout-left {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px !important;
    }
    .smrt-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
}

