/* ── Checkout Wrapper ──────────────────────────────────── */
.adv-checkout-wrap {
    max-width: 1050px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.adv-checkout-wrap *,
.adv-checkout-wrap *::before,
.adv-checkout-wrap *::after {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.adv-checkout-wrap h1,
.adv-checkout-wrap h2,
.adv-checkout-wrap h3,
.adv-checkout-wrap h4,
.adv-checkout-wrap h5,
.adv-checkout-wrap h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.adv-checkout-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.adv-checkout-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ── Grid ──────────────────────────────────────────────── */
.adv-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .adv-checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive Design ───────────────────────────────────── */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .adv-checkout-wrap {
        margin: 40px auto;
        padding: 0 16px;
    }

    .adv-summary-card {
        padding: 28px 24px;
    }

    .adv-summary-plan-name {
        font-size: 1.5rem;
    }

    .adv-summary-amount {
        font-size: 3rem;
    }

    .adv-checkout-card {
        padding: 28px 24px;
    }

    .adv-checkout-heading {
        font-size: 1.25rem;
    }

    .adv-checkout-user-info {
        padding: 12px 16px;
    }

    .adv-user-avatar {
        width: 40px;
        height: 40px;
    }

    .adv-coupon-row {
        flex-direction: column;
    }

    .adv-coupon-row input {
        width: 100%;
    }

    .adv-coupon-row button {
        width: 100%;
    }

    .adv-order-summary {
        margin-bottom: 20px;
    }

    .adv-checkout-btn {
        padding: 14px 18px;
    }

    .adv-payment-option {
        padding: 12px 14px;
    }

    .adv-pm-icon {
        font-size: 1.2rem;
    }

    .adv-quantity-picker {
        width: 100%;
    }

    .adv-qty-input {
        flex: 1;
    }
}

/* Mobile (520px and below) */
@media (max-width: 520px) {
    .adv-checkout-wrap {
        margin: 30px auto;
        padding: 0 12px;
    }

    .adv-summary-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .adv-summary-plan-name {
        font-size: 1.3rem;
    }

    .adv-summary-plan-desc {
        font-size: 0.85rem;
    }

    .adv-summary-amount {
        font-size: 2.5rem;
    }

    .adv-summary-period {
        font-size: 0.9rem;
    }

    .adv-summary-features li {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .adv-summary-meta {
        padding: 14px 16px;
    }

    .adv-summary-meta-row {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .adv-checkout-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .adv-checkout-heading {
        font-size: 1.15rem;
        margin-bottom: 20px;
    }

    .adv-checkout-user-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .adv-user-avatar {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .adv-checkout-coupon-section {
        margin-bottom: 20px;
    }

    .adv-checkout-coupon-label {
        font-size: 0.85rem;
    }

    .adv-coupon-row input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .adv-coupon-row button {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .adv-coupon-msg {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .adv-order-row {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .adv-order-total {
        font-size: 0.9rem;
    }

    .adv-order-total strong {
        font-size: 1rem;
    }

    .adv-checkout-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .adv-checkout-back {
        font-size: 0.85rem;
    }

    .adv-payment-option {
        padding: 12px;
        gap: 10px;
    }

    .adv-pm-icon {
        font-size: 1.1rem;
    }

    .adv-pm-text strong {
        font-size: 0.85rem;
    }

    .adv-pm-text small {
        font-size: 0.75rem;
    }

    .adv-bank-info {
        border-radius: 10px;
    }

    .adv-bank-info-header {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .adv-bank-info-row {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .adv-bank-note {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .adv-quantity-picker {
        width: 100%;
    }

    .adv-qty-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .adv-qty-input {
        font-size: 1rem;
    }

    .adv-qty-hint {
        font-size: 0.75rem;
    }

    .adv-summary-qty-breakdown {
        font-size: 0.8rem;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .adv-checkout-wrap {
        margin: 20px auto;
        padding: 0 10px;
    }

    .adv-summary-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .adv-summary-plan-name {
        font-size: 1.15rem;
    }

    .adv-summary-amount {
        font-size: 2.2rem;
    }

    .adv-summary-features {
        padding-top: 20px;
    }

    .adv-checkout-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .adv-checkout-heading {
        font-size: 1.1rem;
    }

    .adv-checkout-user-info {
        padding: 14px;
    }

    .adv-user-avatar {
        width: 44px;
        height: 44px;
    }

    .adv-coupon-row input {
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .adv-coupon-row button {
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .adv-order-row {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .adv-checkout-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .adv-payment-option {
        padding: 10px;
    }

    .adv-pm-icon {
        font-size: 1rem;
    }

    .adv-bank-info-header {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .adv-bank-info-row {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .adv-bank-note {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .adv-qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .adv-qty-input {
        font-size: 0.95rem;
    }
}

/* ── Plan Summary Card ─────────────────────────────────── */
.adv-summary-card {
    background: #0D0D0D;
    border-radius: 20px;
    padding: 36px 32px;
    color: #F4F1EE;
    position: relative;
    overflow: hidden;
}

.adv-summary-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.adv-summary-badge {
    display: inline-block;
    background: rgba(244, 241, 238, 0.15);
    backdrop-filter: blur(8px);
    color: #F4F1EE;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.adv-summary-plan-name {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #F4F1EE !important;
}

.adv-summary-plan-desc {
    font-size: 0.9rem;
    color: rgba(244, 241, 238, 0.75);
    margin: 0 0 28px;
    line-height: 1.6;
}

.adv-summary-price-block {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 28px;
}

.adv-summary-currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(244, 241, 238, 0.8);
    align-self: flex-start;
    margin-top: 6px;
}

.adv-summary-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #F4F1EE;
    line-height: 1;
}

.adv-summary-period {
    font-size: 1rem;
    color: rgba(244, 241, 238, 0.6);
    margin-left: 4px;
}

/* ── Features list ─────────────────────────────────────── */
.adv-summary-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    border-top: 1px solid rgba(244, 241, 238, 0.15);
    padding-top: 24px;
}

.adv-summary-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(244, 241, 238, 0.85);
    padding: 7px 0;
    border-bottom: 1px solid rgba(244, 241, 238, 0.08);
}

.adv-summary-features li:last-child {
    border-bottom: none;
}

.adv-summary-check {
    color: #a5f3fc;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Meta rows ─────────────────────────────────────────── */
.adv-summary-meta {
    background: rgba(244, 241, 238, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
}

.adv-summary-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 0;
    color: rgba(244, 241, 238, 0.8);
    border-bottom: 1px solid rgba(244, 241, 238, 0.08);
}

.adv-summary-meta-row:last-child {
    border-bottom: none;
}

.adv-summary-meta-row strong {
    color: #F4F1EE;
}

.adv-checkout-secure {
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 20px;
    line-height: 1.5;
}

/* ── Actions Card ─────────────────────────────────────── */
.adv-checkout-card {
    background: #F4F1EE;
    border: 2px solid #A07949;
    border-radius: 20px;
    padding: 36px 32px;
}

.adv-checkout-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 24px;
}

/* ── User Info Block ───────────────────────────────────── */
.adv-checkout-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.adv-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #A07949;
    border: 2px solid #A07949;
    color: #F4F1EE;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-checkout-user-info>div p {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 2px 0 0;
}

/* ── Coupon Section ───────────────────────────────────── */
.adv-checkout-coupon-section {
    margin-bottom: 28px;
}

.adv-checkout-coupon-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.adv-coupon-row {
    display: flex;
    gap: 8px;
}

.adv-coupon-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fff;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adv-coupon-row input:focus {
    outline: none;
    border-color: #A07949;
    box-shadow: 0 0 0 3px rgba(160, 121, 73, 0.1);
}

.adv-coupon-row input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.adv-coupon-row button {
    padding: 10px 18px;
    background: #000;
    color: #F4F1EE;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.adv-coupon-row button:hover:not(:disabled) {
    background: #A07949;
}

.adv-coupon-row button:disabled {
    background: #22c55e;
    cursor: default;
}

.adv-coupon-msg {
    margin-top: 8px;
    font-size: 0.82rem;
    padding: 7px 12px;
    border-radius: 8px;
}

.adv-coupon-msg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.adv-coupon-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ── Order Summary ─────────────────────────────────────── */
.adv-order-summary {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.adv-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.adv-order-row:last-child {
    border-bottom: none;
}

.adv-order-discount {
    background: #f0fdf4;
    color: #166534;
}

.adv-order-total {
    background: #f9fafb;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.adv-order-total strong {
    font-size: 1.05rem;
    color: #A07949;
}

/* ── CTA Button ────────────────────────────────────────── */
.adv-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: #A07949;
    color: #F4F1EE !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(160, 121, 73, 0.35);
    margin-bottom: 14px;
}

.adv-checkout-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.adv-checkout-back {
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
}

.adv-checkout-back:hover {
    color: #374151;
}

/* ── Payment Method Selector ───────────────────────────── */
.adv-payment-methods {
    margin-bottom: 20px;
}

.adv-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.adv-payment-option input[type="radio"] {
    display: none;
}

.adv-payment-option:hover {
    border-color: #A07949;
    background: #F4F1EE;
}

.adv-payment-option.adv-payment-active {
    border-color: #A07949;
    background: #F4F1EE;
}

.adv-pm-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.adv-pm-text {
    flex: 1;
    line-height: 1.3;
}

.adv-pm-text strong {
    display: block;
    font-size: 0.9rem;
    color: #111827;
}

.adv-pm-text small {
    font-size: 0.78rem;
    color: #6b7280;
}

.adv-pm-check {
    font-size: 1rem;
    color: #A07949;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s;
}

.adv-payment-option.adv-payment-active .adv-pm-check {
    opacity: 1;
}

/* ── Bank Transfer Info Box ────────────────────────────── */
/* ═══ BANK TRANSFER STYLES — TEST ONLY — remove when no longer needed ═══ */
.adv-bank-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}

.adv-bank-info-header {
    background: #A07949;
    color: #F4F1EE;
    padding: 11px 16px;
    font-size: 0.875rem;
    font-weight: 700;
}

.adv-bank-info-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0f2fe;
    color: #374151;
}

.adv-bank-info-row:last-of-type {
    border-bottom: none;
}

.adv-bank-info-row strong {
    color: #000;
    font-weight: 700;
}

.adv-bank-note {
    background: #fef9c3;
    border-top: 1px solid #fde68a;
    color: #854d0e;
    font-size: 0.78rem;
    padding: 10px 16px;
    margin: 0;
    line-height: 1.5;
}

/* ═══ END BANK TRANSFER STYLES ═══ */

/* ── Quantity Selector Section ───────────────────────────── */
.adv-checkout-quantity-section {
    margin-bottom: 24px;
}

.adv-quantity-picker {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    margin-top: 6px;
}

.adv-qty-btn {
    width: 42px;
    height: 42px;
    background-color: #000 !important;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv-qty-btn:hover {
    background: #A07949;
    color: #F4F1EE;
}

.adv-qty-btn:active {
    background: #000;
}

.adv-qty-input {
    width: 60px;
    height: 42px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    background: #fff;
    appearance: textfield;
    -moz-appearance: textfield;
}

.adv-qty-input::-webkit-outer-spin-button,
.adv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.adv-qty-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

.adv-summary-qty-breakdown {
    font-size: 0.88rem;
    color: rgba(244, 241, 238, 0.85);
    margin-top: -20px;
    margin-bottom: 24px;
}

/* ── Success alert ─────────────────────────────────────── */
.adv-checkout-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

/* ── SVG Icons ─────────────────────────────────────────── */
.adv-alert-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.adv-badge-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.adv-summary-check svg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-secure-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.adv-coupon-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.adv-discount-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.adv-pm-icon svg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-pm-check svg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-bank-header-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.adv-bank-note-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}