:root {
    --primary-color: #21a2ff;
    --primary-color-rgb: 33, 162, 255;
    --dark-bg: #121212; /* Deep dark for page background */
    --content-bg: #1e1e1e; /* Background for main content areas, cards */
    --input-bg: #2a2a2a; /* Background for input fields */
    --border-color: #383838;
    --text-headings: #ffffff;
    --text-light: #e0e0e0;
    --text-medium: #b0b0b0;
    --link-color: var(--primary-color);
    --success-color: #00a86b; /* Adjusted Green */
    --save-tag-bg: #008060; /* Darker green for "Save" tag */
    --special-tag-bg: var(--primary-color);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Basic Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.page-header {
    padding: 10px 0;
    background-color: var(--content-bg);
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
}
.logo {
    height: 35px;
    width: auto;
}

/* Checkout Page Layout */
.checkout-page {
    padding: 30px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Adjust ratio as needed */
    gap: 30px;
}

/* Main Content (Left Column) */
.checkout-main-content, .checkout-sidebar > .sidebar-section {
    background-color: var(--content-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.checkout-sidebar > .sidebar-section:not(:last-child) {
    margin-bottom: 20px;
}

.header-logo {
    height: 50px;
    width: 50px !important;
}
.header-logo-link {
    transform-style: preserve-3d;
    padding-left: 0;
    transition: transform .3s, color .3s;
}
.w-nav-brand {
    float: left;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    font-size: 24px;
    gap: 10px;
    align-items: center;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: var(--text-headings);
    font-size: 20px;
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.3);
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-medium);
}
.privacy-notice input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-color); /* Modern way to color checkbox */
}
.privacy-notice a {
    color: var(--link-color);
    text-decoration: none;
}
.privacy-notice a:hover {
    text-decoration: underline;
}

.secure-checkout-info {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.secure-checkout-info .secure-icon {
    color: var(--success-color);
    font-weight: bold;
}

/* Payment Method Details (Content Area) */
.payment-method-details {
    padding: 20px; /* Padding for when visible, adjust top if needed */
    background-color: var(--content-bg); /* Match the main content bg or slightly different */
}

/* Payment Accordion */
/* New Payment Options Styling */
.payment-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-option {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg); /* Same as old accordion item */
    overflow: hidden; /* Important for managing details visibility if animations were added */
}

.payment-radio-input {
    display: none; /* Hide the default radio button */
}

.payment-option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative; /* For custom radio positioning */
}

.payment-option-label:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.custom-radio {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-medium);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.custom-radio::after { /* This will be the inner dot or checkmark */
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Hidden by default */
    transition: transform 0.2s ease;
}

/* Styles for when the radio button is checked */
.payment-radio-input:checked + .payment-option-label .custom-radio {
    border-color: var(--primary-color);
}

.payment-radio-input:checked + .payment-option-label .custom-radio::after {
    transform: translate(-50%, -50%) scale(1); /* Show the inner dot/check */
}

.payment-radio-input:checked + .payment-option-label {
    /* Optional: Add a stronger visual cue to the selected label itself */
    /* background-color: rgba(var(--primary-color-rgb), 0.05); */
    /* border-bottom: 1px solid var(--border-color); if details are below */
}

.payment-option-name {
    flex-grow: 1; /* Make name take available space */
    color: var(--text-light);
    font-size: 16px;
}

/* .payment-icons are already styled, should mostly work */
.payment-option-label .payment-icons {
    margin-left: auto; /* Pushes icons to the right if name takes up space */
    padding-left: 10px; /* Space between name and icons */
}



/* Specific styles for Crypto content if needed (mostly inherited or already there) */
.payment-method-details.crypto-content {
    padding-top: 20px; /* Add top padding if it feels too close after label */
}
.payment-method-details.crypto-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-headings);
}
.payment-method-details.crypto-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-medium);
}
.payment-method-details.crypto-content .terms-agreement {
    font-size: 13px;
}
.payment-method-details.crypto-content a {
    color: var(--link-color);
    text-decoration: underline;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-icons img {
    height: 20px;
    max-width: 40px; /* For wider logos like PayPal */
    object-fit: contain;
}
.accordion-chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-item.active .accordion-content {
    padding: 20px;
    /* max-height will be set by JS or use a large enough value like 500px if content varies */
}

.crypto-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-headings);
}
.crypto-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-medium);
}
.crypto-content .terms-agreement {
    font-size: 13px;
}
.crypto-content a {
    color: var(--link-color);
    text-decoration: underline;
}
.btn {
    padding: 24px 32px;
    border-radius: 48px; /* Pill shape */
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-success {
    background-color: var(--success-color);
    color: #fff;
}
.btn-success:hover {
    background-color: #008c58; /* Darker green */
    transform: translateY(-1px);
}
.btn-full-width {
    width: 100%;
    display: block;
    margin: 20px auto 0;
}

.editor-choice {
    margin-top: 30px;
    text-align: center;
    color: var(--text-medium);
    font-size: 12px;
}
.editor-choice img {
    margin-top: 5px;
    height: 25px;
}

/* Sidebar (Right Column) */
.checkout-sidebar h3 {
    font-size: 18px;
    color: var(--text-headings);
    margin-bottom: 15px;
}
.summary-item, .addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}
.summary-item .price del, .addon-price del {
    color: var(--text-medium);
    margin-right: 5px;
}
.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    margin-left: 5px;
    color: #fff;
    text-transform: uppercase;
}
.tag-save {
    background-color: var(--save-tag-bg);
}
.tag-special {
    background-color: var(--special-tag-bg);
}

.included-free {
    color: var(--text-medium);
    cursor: pointer; /* If it's a dropdown */
}
.included-free .secure-icon {
    color: var(--success-color);
    margin-right: 5px;
}
.small-chevron {
    font-size: 10px;
}
.country-info {
    font-size: 13px;
    color: var(--text-medium);
    margin-top: 10px;
    margin-bottom: 15px;
}
.sidebar-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}
.summary-total h4 {
    color: var(--text-headings);
}
.total-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-headings);
}

.optional-addons .addon-item {
    align-items: flex-start; /* For multi-line text */
}
.addon-info span {
    font-weight: bold;
    color: var(--text-light);
}
.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--text-medium);
    color: var(--content-bg);
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    cursor: help;
    margin-left: 3px;
}
.addon-info p {
    font-size: 12px;
    color: var(--text-medium);
}
.discount-tag {
    color: var(--save-tag-bg); /* Using green for discount text */
    font-weight: bold;
}
.addon-price {
    text-align: right;
}
.addon-price strong {
    font-size: 18px;
}
.addon-details {
    font-size: 13px;
    color: var(--text-medium);
    margin-top: -5px; /* Adjust based on .addon-item margin */
}

.money-back-guarantee {
    display: flex;
    align-items: center;
    gap: 15px;
}
.guarantee-badge {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
}
.guarantee-badge span {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}
.guarantee-badge p {
    font-size: 12px;
    line-height: 1;
}
.guarantee-text h4 {
    font-size: 15px;
    color: var(--text-headings);
    margin-bottom: 3px;
}
.guarantee-text p {
    font-size: 13px;
    color: var(--text-medium);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .checkout-sidebar {
        order: -1; /* Move sidebar to top on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }
    .checkout-main-content, .checkout-sidebar > .sidebar-section {
        padding: 20px;
    }
    .form-section h2 {
        font-size: 18px;
    }
    .accordion-header {
        font-size: 15px;
        padding: 12px;
    }
    .payment-icons img { height: 18px; }
    .sidebar-section h3 { font-size: 17px; }
    .total-price { font-size: 18px; }
    .btn { font-size: 15px; padding: 10px 18px;}
}

/* Upsell Screens Section */
.upsell-screens h3 {
    /* Inherits from .sidebar-section h3, or style specifically */
    margin-bottom: 15px;
}

.upsell-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 0; /* Add some vertical padding */
    border-bottom: 1px solid var(--border-color); /* Optional: separator line */
    margin-bottom: 10px;
}

.upsell-info {
    flex-grow: 1;
}

.upsell-info span {
    font-weight: bold;
    color: var(--text-light);
    display: block;
    font-size: 15px;
}

.upsell-info .screen-price-tier-description {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 2px;
}

.upsell-controls {
    display: flex;
    align-items: center;
    gap: 15px; /* Gap between quantity selector and price */
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Make it pill-shaped */
    overflow: hidden; /* Clip button edges */
    background: #2a2a2a;
}

.quantity-btn {
    background-color: var(--input-bg); /* Or transparent */
    color: var(--primary-color); /* Use primary color for +/- */
    border: none;
    padding: 6px 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: rgba(var(--primary-color-rgb), 0.15);
}

.quantity-btn:disabled {
    color: var(--text-medium);
    cursor: not-allowed;
    background-color: var(--input-bg); /* Keep consistent with non-disabled */
}
.quantity-btn.minus-btn {
    border-right: 1px solid var(--border-color);
}
.quantity-btn.plus-btn {
    border-left: 1px solid var(--border-color);
}


.quantity-display {
    padding: 6px 15px; /* More horizontal padding for the number */
    font-size: 15px;
    font-weight: bold;
    color: var(--text-light);
    min-width: 20px; /* Ensure some space for the number */
    text-align: center;
    background-color: var(--input-bg);
}

.upsell-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-headings);
    min-width: 70px; /* Ensure enough space for price like +$00.00 */
    text-align: right;
}

.upsell-details {
    font-size: 13px;
    color: var(--text-medium);
    margin-top: 5px;
}
