﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

/* ============================================================
   PAY-PAGE — Trendyol/Hepsiburada karışımı modern ödeme sayfası
   Tüm yeni stiller .pay-* prefix kullanır — eski class'lar (.checkout vb) hala
   dosyada var ama yeni HTML onları kullanmıyor.
   ============================================================ */

:root {
    --pay-brand: #ef5526;
    --pay-brand-dark: #d8451f;
    --pay-brand-soft: #fff5f0;
    --pay-text: #1f2937;
    --pay-text-muted: #6b7280;
    --pay-border: #e5e7eb;
    --pay-border-soft: #f1f3f5;
    --pay-bg: #ffffff;
    --pay-bg-soft: #f7f8fa;
    --pay-success: #10b981;
    --pay-success-soft: #d1fae5;
    --pay-radius: 12px;
    --pay-ease: cubic-bezier(.22, 1, .36, 1);
}

.pay-page {
    background: #f7f8fa;
    padding: 24px 0 40px;
    min-height: calc(100vh - 200px);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--pay-text);
}

.pay-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Step indicator ----- */
.pay-steps {
    margin: 0 0 22px;
}

.pay-steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pay-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.pay-steps li::after {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--pay-border);
    margin-left: 12px;
}

.pay-steps li:last-child::after { display: none; }

.pay-steps .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pay-bg);
    border: 1.5px solid var(--pay-border);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--pay-text-muted);
}

.pay-steps .lbl { line-height: 1; }

.pay-steps li.done {
    color: var(--pay-success);
}

.pay-steps li.done .num {
    background: var(--pay-success);
    border-color: var(--pay-success);
    color: #fff;
}

.pay-steps li.active {
    color: var(--pay-brand);
    font-weight: 700;
}

.pay-steps li.active .num {
    background: var(--pay-brand);
    border-color: var(--pay-brand);
    color: #fff;
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */
.pay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: flex-start;
}

.pay-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pay-aside {
    position: sticky;
    top: 20px;
}

/* ============================================================
   SECTION CARDS
   ============================================================ */
.pay-section {
    background: var(--pay-bg);
    border: 1px solid var(--pay-border);
    border-radius: var(--pay-radius);
    overflow: hidden;
    transition: box-shadow .2s var(--pay-ease);
}

.pay-section:hover {
    box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .08);
}

.pay-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--pay-border-soft);
    background: #fcfcfd;
}

.pay-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-section-title h2 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--pay-text);
    line-height: 1;
}

.pay-section-icon {
    width: 30px;
    height: 30px;
    background: var(--pay-brand-soft);
    color: var(--pay-brand);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pay-card-brands {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 22px;
}

/* ============================================================
   CHECKOUT (ADRES) — Address cards + helpers
   ============================================================ */

/* Header'daki sağ link: Değiştir, vs. */
.pay-section-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pay-brand);
    cursor: pointer;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--pay-brand-soft);
    transition: background .15s var(--pay-ease), color .15s var(--pay-ease);
}

.pay-section-action i { font-size: 10.5px; }

.pay-section-action:hover {
    background: #ffe8d8;
    color: var(--pay-brand-dark);
}

/* Adres kartı */
.pay-address-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--pay-bg-soft);
    border: 1px solid var(--pay-border);
    border-radius: 10px;
    transition: border-color .15s var(--pay-ease), background .15s var(--pay-ease);
}

.pay-address-card.pay-address-default {
    background: var(--pay-brand-soft);
    border-color: rgba(239, 85, 38, 0.25);
}

.pay-address-card:hover {
    border-color: var(--pay-brand);
}

.pay-address-badge {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pay-brand);
    font-size: 15px;
    box-shadow: 0 2px 6px -4px rgba(239, 85, 38, 0.5);
}

.pay-address-content {
    flex: 1 1 auto;
    min-width: 0;
}

.pay-address-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.pay-address-name {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--pay-text);
    line-height: 1.2;
}

.pay-address-default-pill {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--pay-brand);
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0;
    border: 1px solid rgba(239, 85, 38, .35);
}

.pay-address-line {
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.pay-address-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: var(--pay-text-muted);
    font-weight: 500;
}

.pay-address-phone i {
    font-size: 11px;
    color: var(--pay-brand);
}

/* "Yeni adres ekle" linki */
.pay-add-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pay-brand);
    text-decoration: none;
    border: 1px dashed rgba(239, 85, 38, 0.45);
    border-radius: 8px;
    transition: all .15s var(--pay-ease);
}

.pay-add-link i {
    width: 18px;
    height: 18px;
    background: var(--pay-brand-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.pay-add-link:hover {
    background: var(--pay-brand-soft);
    border-style: solid;
    color: var(--pay-brand-dark);
}

/* Empty state — adres yoksa */
.pay-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    background: var(--pay-bg-soft);
    border: 1px dashed var(--pay-border);
    border-radius: 10px;
    text-align: center;
}

.pay-empty-state > i {
    font-size: 28px;
    color: var(--pay-brand);
    opacity: .4;
}

.pay-empty-state p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--pay-text-muted);
}

.pay-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--pay-brand);
    color: #ffffff !important;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 12px -4px rgba(239, 85, 38, .55);
    transition: background .15s var(--pay-ease), transform .15s var(--pay-ease);
}

.pay-empty-cta:hover {
    background: var(--pay-brand-dark);
    transform: translateY(-1px);
}

.pay-empty-cta i { font-size: 11px; }

/* Bilgilendirme banner'ı (info notu) */
.pay-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #1e40af;
    line-height: 1.5;
}

.pay-info-banner > i {
    font-size: 14px;
    color: #3b82f6;
    flex: 0 0 auto;
    margin-top: 1px;
}

/* Order summary item quantity (× 2) */
.pay-item-qty {
    color: var(--pay-text-muted);
    font-weight: 500;
    margin-left: 4px;
    font-size: 11.5px;
}

/* "Ücretsiz Kargo" yeşil pill (free shipping highlight) */
.pay-free-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--pay-success-soft);
    color: var(--pay-success);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 999px;
}

/* Dinamik algılanan marka logoları (VISA, Mastercard, Troy, World, Bonus, vb) */
.pay-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid var(--pay-border-soft);
    border-radius: 6px;
    line-height: 1;
    transition: transform .15s var(--pay-ease), border-color .15s var(--pay-ease);
}

.pay-brand-logo:hover {
    transform: translateY(-1px);
    border-color: var(--pay-border);
}

.pay-brand-logo svg,
.pay-brand-logo img {
    display: block;
    object-fit: contain;
    /* width/height inline style'dan veya HTML attribute'tan gelir — CSS zorlama yok */
}

/* Eski statik pill — yeni HTML'de yok ama varsa fallback */
.pay-brand-pill {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 8px;
    background: var(--pay-bg-soft);
    color: var(--pay-text-muted);
    border-radius: 999px;
}

.pay-section-body {
    padding: 16px 18px 18px;
}

/* ============================================================
   CARD INPUTS LAYOUT — left form + right small preview
   ============================================================ */
.pay-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: start;
}

.pay-card-inputs {
    min-width: 0;
}

.pay-field {
    margin-bottom: 12px;
}

.pay-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.pay-help i {
    color: #9ca3af;
    font-size: 12px;
}

.pay-field input[type="text"],
.pay-field input[type="number"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--pay-text);
    background: var(--pay-bg);
    border: 1px solid var(--pay-border);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s var(--pay-ease), box-shadow .15s var(--pay-ease), background .15s var(--pay-ease);
}

.pay-field input:hover {
    border-color: #d1d5db;
}

.pay-field input:focus {
    border-color: var(--pay-brand);
    box-shadow: 0 0 0 3px rgba(239, 85, 38, .12);
    background: #fff;
}

.pay-input-icon {
    position: relative;
}

.pay-input-icon > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.pay-input-icon input {
    padding-left: 36px !important;
}

.pay-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 3D Secure check */
.pay-secure-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--pay-bg-soft);
    border: 1px solid var(--pay-border-soft);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    color: #4b5563;
    user-select: none;
}

.pay-secure-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex: 0 0 16px;
    transition: all .15s var(--pay-ease);
}

.pay-secure-check input[type="checkbox"]:checked {
    background: var(--pay-brand);
    border-color: var(--pay-brand);
}

.pay-secure-check input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 9px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pay-secure-mark { display: none; }

/* ============================================================
   CARD VISUALIZATION (smaller, on the side)
   ============================================================ */
.pay-card-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6px;
}

.pay-card-preview .credit-card-box {
    width: 220px !important;
    height: 138px !important;
    margin: 0 !important;
    perspective: 1000px;
}

.pay-card-preview .credit-card-box .flip,
.pay-card-preview .credit-card-box .front,
.pay-card-preview .credit-card-box .back {
    width: 220px !important;
    height: 138px !important;
}

.pay-card-preview .credit-card-box .chip {
    transform: scale(.55);
    transform-origin: top left;
}

.pay-card-preview .credit-card-box .number {
    top: auto !important;
    bottom: 48px !important;
    left: 18px !important;
    right: 18px !important;
    font-size: 14px !important;
    letter-spacing: 1.4px !important;
    color: #fff !important;
}

.pay-card-preview .credit-card-box .card-holder,
.pay-card-preview .credit-card-box .card-expiration-date {
    top: auto !important;        /* eski top:178px override */
    bottom: 14px !important;
    font-size: 11px !important;
}

.pay-card-preview .credit-card-box .card-holder {
    left: 18px !important;
    max-width: 55% !important;
}

.pay-card-preview .credit-card-box .card-expiration-date {
    right: 18px !important;
    left: auto !important;
    text-align: right !important;
}

.pay-card-preview .credit-card-box .card-holder label,
.pay-card-preview .credit-card-box .card-expiration-date label {
    font-size: 7.5px !important;
    opacity: .65;
    margin-bottom: 2px !important;
    display: block;
}

.pay-card-preview .credit-card-box .card-holder div,
.pay-card-preview .credit-card-box .card-expiration-date div {
    font-size: 11px !important;
    color: #fff !important;
    letter-spacing: .5px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pay-card-preview .credit-card-box .strip {
    margin-top: 14px !important;
    height: 30px !important;
}

/* Strip & CCV — küçültülmüş kart (220×138) için yeniden konumlandırılıyor.
   Orijinal .ccv top:110 height:38 değerleri 246px kart için → 138px kartta dışarı taşıyor. */
.pay-card-preview .credit-card-box .strip {
    top: 16px !important;
    height: 26px !important;
    margin-top: 0 !important;
}

.pay-card-preview .credit-card-box .ccv {
    top: 56px !important;          /* strip altı (16+26+14 padding) */
    height: 28px !important;
    width: 86% !important;
    padding: 4px 10px !important;
    margin: 0 auto !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2) !important;
}

.pay-card-preview .credit-card-box .ccv label {
    font-size: 7.5px !important;
    margin: -18px 0 6px !important;
    display: block;
}

.pay-card-preview .credit-card-box .ccv div {
    height: 18px !important;
    line-height: 18px !important;
    font-size: 12px !important;
    color: #000 !important;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
    text-align: right;
}

/* Back face logo (troy badge vb) küçük kartta CCV altına yerleştir */
.pay-card-preview .credit-card-box .back .logo {
    top: auto !important;
    bottom: 8px !important;
    right: 10px !important;
}

/* ============================================================
   INSTALLMENTS
   ============================================================ */
.pay-bank-icon {
    height: 22px;
}

.pay-bank-icon img {
    height: 22px;
    width: auto;
}

.pay-installment-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--pay-bg-soft);
    border: 1px dashed var(--pay-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--pay-text-muted);
}

.pay-installment-spinner i { color: var(--pay-brand); }

.pay-installment-hint { flex: 1; }

/* .pay-installment-options sadece marker — gerçek grid stillemesi
   payment.js tarafından oluşturulan .option-box öğeleri için aşağıdaki
   `.instalment-container .options` rule'larında tanımlı (3-col grid). */
.pay-installment-options {
    margin-top: 6px;
}

/* ============================================================
   TERMS & CHECKS
   ============================================================ */
.pay-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
}

.pay-terms-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    flex: 0 0 18px;
    cursor: pointer;
    position: relative;
    transition: all .15s var(--pay-ease);
}

.pay-terms-check input[type="checkbox"]:checked {
    background: var(--pay-brand);
    border-color: var(--pay-brand);
}

.pay-terms-check input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pay-terms-check input[type="checkbox"]:disabled {
    background: #f1f3f5;
    border-color: var(--pay-border);
    cursor: not-allowed;
}

.pay-terms-mark { display: none; }

.pay-terms-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #4b5563;
}

.pay-terms-text .brand-open {
    color: var(--pay-brand);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}

.pay-terms-text .brand-open:hover {
    color: var(--pay-brand-dark);
}

.pay-info-link {
    margin: 4px 0 8px 28px;
}

.pay-info-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pay-brand);
    text-decoration: none;
    font-weight: 500;
}

.pay-info-link a:hover { text-decoration: underline; }

/* ============================================================
   ORDER SUMMARY (RIGHT)
   ============================================================ */
.pay-summary {
    background: var(--pay-bg);
    border: 1px solid var(--pay-border);
    border-radius: var(--pay-radius);
    padding: 18px;
}

.pay-summary-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pay-border-soft);
}

.pay-summary-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--pay-text);
}

.pay-order-id {
    font-size: 11.5px;
    color: var(--pay-text-muted);
    font-weight: 500;
}

.pay-summary-block {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pay-border-soft);
}

.pay-summary-block:last-of-type {
    border-bottom: none;
    padding-bottom: 8px;
}

.pay-summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pay-text-muted);
    margin-bottom: 6px;
    letter-spacing: 0;
}

.pay-summary-label i {
    color: var(--pay-brand);
    font-size: 13px;
}

.pay-summary-count {
    color: #9ca3af;
    font-weight: 500;
    text-transform: none;
}

.pay-summary-value {
    margin: 0;
    font-size: 12.5px;
    color: #374151;
    line-height: 1.5;
}

.pay-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pay-items-list::-webkit-scrollbar { width: 4px; }
.pay-items-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.pay-items-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 12.5px;
    border-bottom: 1px solid var(--pay-border-soft);
}

.pay-items-list li:last-child { border-bottom: none; }

.pay-item-name {
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.pay-item-price {
    color: var(--pay-text);
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Totals */
.pay-totals {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed var(--pay-border);
}

.pay-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #4b5563;
}

.pay-total-row .pay-free {
    color: var(--pay-success);
    font-weight: 700;
    background: var(--pay-success-soft);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
}

.pay-shipping-info {
    margin: 4px 0 8px;
    font-size: 11px;
    color: var(--pay-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pay-shipping-info i { color: var(--pay-brand); }

.pay-total-row.pay-grand {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--pay-border);
    font-size: 16px;
    font-weight: 700;
}

.pay-total-row.pay-grand > :last-child {
    color: var(--pay-brand);
    font-size: 18px;
}

/* Submit button */
.pay-submit {
    width: 100%;
    margin-top: 16px;
    padding: 0 18px;
    height: 50px;
    background: var(--pay-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px -6px rgba(239, 85, 38, .55);
    transition: background .15s var(--pay-ease), transform .15s var(--pay-ease), box-shadow .15s var(--pay-ease), opacity .15s ease;
    text-transform: none;
    text-shadow: none;
}

.pay-submit:hover:not(:disabled) {
    background: var(--pay-brand-dark);
    box-shadow: 0 10px 22px -8px rgba(239, 85, 38, .55);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

    .pay-submit:hover:not(:disabled) i,
    .pay-submit:hover:not(:disabled) span {
        color: #fff !important;
    }

/* `<a class="pay-submit">` kullanıldığında Wolmart'ın a:hover rengini ezmek için */
a.pay-submit,
a.pay-submit:link,
a.pay-submit:visited,
a.pay-submit:hover,
a.pay-submit:active {
    color: #fff !important;
    text-decoration: none !important;
}

.pay-submit:active:not(:disabled) { transform: translateY(0); }

.pay-submit:disabled {
    opacity: .5 !important;
    cursor: not-allowed;
    transform: none !important;
}

.pay-submit i { font-size: 13px; }

/* Trust badges */
.pay-trust {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pay-border-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--pay-text-muted);
}

.pay-trust-item i {
    color: var(--pay-success);
    font-size: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .pay-grid {
        grid-template-columns: 1fr;
    }
    .pay-aside {
        position: static;
    }
    .pay-card-layout {
        grid-template-columns: 1fr;
    }
    .pay-card-preview {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .pay-page { padding: 16px 0 32px; }
    .pay-container { padding: 0 12px; }
    .pay-steps li::after { width: 20px; }
    .pay-steps .lbl { display: none; }
    .pay-section-body { padding: 12px 14px 14px; }
    .pay-field-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pay-card-preview .credit-card-box,
    .pay-card-preview .credit-card-box .flip,
    .pay-card-preview .credit-card-box .front,
    .pay-card-preview .credit-card-box .back {
        width: 200px !important;
        height: 125px !important;
    }
}

/* ============================================================
   ESKI KODLAR — aşağıdaki .checkout / .payment-section vb stiller
   yeni HTML tarafından kullanılmıyor, sadece bir başka view fallback olarak
   referans ediyorsa diye dosyada kalıyor.
   ============================================================ */

.checkout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 1px auto;
    max-width: 1200px;
    padding: 6px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
}

.payment-section,
.order-summary-section {
    flex: 1;
    margin: 20px;
}

.payment-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .payment-section form {
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
    }

@media (max-width: 768px) {
    .checkout {
        flex-direction: column;
        align-items: center;
    }

    .payment-section,
    .order-summary-section {
        width: 104%;
        margin: 10px 0;
    }

    .credit-card-box {
        width: 100%;
        height: auto;
    }
}

.credit-card-box {
    perspective: 1200px;
    width: 400px;
    height: 246px;
    margin: 0 auto;
    position: relative;
}

    .credit-card-box:hover .flip,
    .credit-card-box.hover .flip {
        transform: rotateY(180deg);
    }

    .credit-card-box .flip {
        transition: 0.7s cubic-bezier(.4, 0, .2, 1);
        transform-style: preserve-3d;
        position: relative;
        width: 100%;
        height: 100%;
    }

    .credit-card-box .front,
    .credit-card-box .back {
        width: 400px;
        height: 246px;
        border-radius: 18px;
        backface-visibility: hidden;
        position: absolute;
        color: #fff;
        top: 0;
        left: 0;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(15, 31, 60, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .credit-card-box .front {
        z-index: 2;
        transform: rotateY(0deg);
        background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12) 0, transparent 45%), radial-gradient(circle at 80% 110%, rgba(239, 85, 38, 0.55) 0, transparent 55%), linear-gradient(135deg, #0f1f3c 0%, #1b3a6b 55%, #2a5298 100%);
    }

    .credit-card-box .back {
        transform: rotateY(180deg);
        background: radial-gradient(circle at 80% 90%, rgba(239, 85, 38, 0.4) 0, transparent 50%), linear-gradient(135deg, #0f1f3c 0%, #1b3a6b 100%);
    }

    .credit-card-box .front::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -20%;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(239, 85, 38, 0.45), transparent 70%);
        filter: blur(20px);
        pointer-events: none;
    }

    .credit-card-box .front::after {
        content: '';
        position: absolute;
        bottom: -40%;
        left: -10%;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
        pointer-events: none;
    }

    .credit-card-box .chip {
        position: absolute;
        width: 52px;
        height: 40px;
        top: 24px;
        left: 24px;
        background: linear-gradient(135deg, #f7d488 0%, #c69a4c 50%, #f7d488 100%);
        border-radius: 7px;
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

        .credit-card-box .chip::before {
            content: '';
            position: absolute;
            inset: 5px;
            border: 1px solid rgba(0, 0, 0, 0.25);
            border-radius: 4px;
        }

    .credit-card-box .logo {
        position: absolute;
        top: 18px;
        right: 22px;
        min-width: 160px;
        z-index: 2;
        text-align: right;
    }

        .credit-card-box .logo svg {
            height: auto;
            max-width: 100%;
        }

    .credit-card-box .number {
        position: absolute;
        top: 110px;
        left: 24px;
        right: 24px;
        font-size: 22px;
        letter-spacing: 2px;
        font-family: 'OCR A Std', 'Courier New', monospace;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        min-height: 30px;
        white-space: nowrap;
        overflow: hidden;
        z-index: 1;
    }

    .credit-card-box label {
        font-size: 9px;
        letter-spacing: 1.5px;
        text-shadow: none;
        text-transform: uppercase;
        font-weight: 500;
        opacity: 0.6;
        display: block;
        margin-bottom: 4px;
    }

    .credit-card-box .card-holder {
        position: absolute;
        top: 178px;
        left: 24px;
        font-size: 15px;
        text-transform: uppercase;
        font-family: 'Share Tech Mono', monospace;
        color: #fff;
        letter-spacing: 1px;
        max-width: 60%;
        z-index: 1;
    }

    .credit-card-box .card-expiration-date {
        position: absolute;
        top: 178px;
        right: 24px;
        font-size: 15px;
        text-transform: uppercase;
        font-family: 'Share Tech Mono', monospace;
        color: #fff;
        letter-spacing: 1px;
        text-align: right;
        z-index: 1;
    }

    .credit-card-box .back .logo {
        top: auto;
        bottom: 18px;
        right: 20px;
    }

    .credit-card-box .strip {
        background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
        position: absolute;
        width: 100%;
        height: 50px;
        top: 30px;
        left: 0;
    }

    .credit-card-box .ccv {
        height: 38px;
        background: #fff;
        width: 86%;
        border-radius: 5px;
        top: 110px;
        left: 0;
        right: 0;
        position: absolute;
        margin: 0 auto;
        color: #000;
        text-align: right;
        padding: 10px 14px;
        font-family: 'Share Tech Mono', monospace;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    }

        .credit-card-box .ccv label {
            margin: -26px 0 14px;
            color: #fff;
        }

    .credit-card-box .card-type {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
    }

@media (max-width: 768px) {
    .credit-card-box .flip {
        transform: none !important;
    }

    .credit-card-box .number {
        font-size: 20px;
        letter-spacing: 1.5px;
        top: 100px;
    }
}

@media (max-width: 600px) {
    .credit-card-box,
    .credit-card-box .front,
    .credit-card-box .back {
        width: 343px;
        height: 220px;
    }

        .credit-card-box .number {
            font-size: 18px;
            letter-spacing: 1px;
            top: 95px;
        }

        .credit-card-box .card-holder,
        .credit-card-box .card-expiration-date {
            top: 158px;
            font-size: 13px;
        }
}

.form fieldset {
    border: none;
    padding: 10px 0;
    position: relative;
    clear: both;
}

    .form fieldset.fieldset-expiration {
        float: left;
        width: 60%;
    }

    .form fieldset.fieldset-ccv {
        clear: none;
        float: right;
        width: 86px;
    }

    .form fieldset label {
        display: block;
        text-transform: capitalize;
        font-size: 1.4rem;
        color: rgba(0, 0, 0, 0.7);
        margin-bottom: 5px;
        font-weight: 600;
    }

    .form fieldset input {
        width: 100%;
        height: 38px;
        color: #333;
        padding: 10px;
        font-size: 15px;
        outline: none !important;
        border: 1px solid rgba(0, 0, 0, 0.5);
        border-radius: 4px;
    }

.form button {
    width: 100%;
    outline: none !important;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.card-inputs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.skt-ccv-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#card-expiration {
    width: 100%;
}

#payment-button {
    color: white;
    background: #ef5526;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    #payment-button:hover {
        background: #d94717;
    }

    #payment-button:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.instalment-container {
    display: flex;
    flex-direction: column;
}

    .instalment-container h1 {
        font-size: 1.5rem !important;
        font-weight: 600;
        color: #333;
    }

    .instalment-container .info {
        display: flex;
        justify-content: left;
        gap: 30px;
        margin-bottom: 10px;
    }

        .instalment-container .info .bank-info-wrap {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

#business-card-icon {
    visibility: hidden;
}

.instalment-container .options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 10px;
}

    .instalment-container .options .option-box {
        padding: 10px;
        border: 1px solid rgba(0, 0, 0, .5);
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        transition: 0.3s ease-in-out;
        cursor: pointer;
    }

        .instalment-container .options .option-box:hover {
            background: #eaeaea;
        }

        .instalment-container .options .option-box h1 {
            margin-bottom: 0;
        }

        .instalment-container .options .option-box .option-select-box {
            background: transparent;
            width: 15px;
            height: 15px;
            border: 1px solid black;
            border-radius: 50%;
            margin: 5px 0;
        }

#installment-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#installment-spinner {
    display: block !important;
    position: absolute;
    right: -20px;
}

@media (max-width: 600px) {
    .instalment-container .options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 375px) {
    .instalment-container .options {
        grid-template-columns: 1fr;
    }
}

.order-summary-wrapper {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-left: 20px;
}

.order-summary .order-table {
    width: 100%;
    border-collapse: collapse;
}

    .order-summary .order-table th,
    .order-summary .order-table td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        font-weight: 600;
    }

    .order-summary .order-table th {
        background: white;
    }

    .order-summary .order-table .product-name {
        text-align: left;
    }

    .order-summary .order-table .product-total {
        text-align: right;
    }

    .order-summary .order-table .order-total th,
    .order-summary .order-table .order-total td {
        font-weight: 600;
        background: white;
    }

    .order-summary .order-table .order-total td {
        text-align: right;
    }

.hb-terms {
    margin-top: 18px;
}

.terms-container {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    user-select: none;
    position: relative;
    z-index: 5;
}

.hb-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

    .hb-check * {
        pointer-events: auto;
    }

.hb-native {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.hb-box {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 6px;
    border: 2px solid #cfd3da;
    background: #fff;
    position: relative;
    flex: 0 0 22px;
    transition: all .18s ease;
}

.hb-check:hover .hb-box {
    border-color: #9aa3b2;
}

.hb-native:checked + .hb-box {
    background: #ef5526;
    border-color: #ef5526;
}

    .hb-native:checked + .hb-box::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 6px;
        height: 11px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: translate(-50%, -60%) rotate(45deg);
    }

.hb-native:focus-visible + .hb-box {
    box-shadow: 0 0 0 4px rgba(239, 85, 38, .18);
    border-color: #ef5526;
}

.hb-text {
    color: #2b2f36;
    font-size: 14px;
    line-height: 1.35;
}

.brand-open {
    color: #ef5526;
    cursor: pointer;
    font-weight: 600;
}

.hb-info-link a {
    color: #ef5526;
    text-decoration: underline;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #fff;
    margin: 40px auto;
    padding: 26px;
    width: 92%;
    max-width: 920px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content .close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

    .modal-content .close:hover {
        color: #000;
    }

.modal-content h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0 18px;
    color: #333;
}

#pdfViewerContainer {
    padding: 0;
    border: none;
    background: transparent;
    max-height: 62vh;
    overflow-y: auto;
}

.pdf-canvas-container canvas {
    max-width: 100%;
    width: 820px;
    height: auto;
    display: block;
    margin: 18px auto;
    border: none;
    background: transparent;
    box-shadow: none;
}

.modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 14px 0 0;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}

.accept-btn {
    background: #ef5526;
    color: #fff;
    border: none;
    padding: 12px 34px;
    font-size: 16px;
    border-radius: 26px;
    cursor: pointer;
    font-weight: 600;
    transition: filter .2s;
}

    .accept-btn:hover {
        filter: brightness(.95);
    }

/* ============================================================
   COMPACT PAYMENT REDESIGN
   Hepsiburada-style: küçük kart, sıkı form, ödeme butonu fold içinde
   ============================================================ */

.checkout {
    max-width: 1240px !important;
    padding: 16px !important;
    gap: 18px !important;
    align-items: flex-start !important;
}

.payment-section {
    flex: 1.4 !important;
    margin: 0 !important;
    padding: 18px 22px !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    align-items: stretch !important;
}

.order-summary-section {
    flex: 0 0 340px !important;
    margin: 0 !important;
}

/* ----- Credit card visualization (küçültüldü) ----- */
.credit-card-box {
    width: 260px !important;
    height: 162px !important;
    margin: 0 auto 12px !important;
}

.credit-card-box .flip,
.credit-card-box .front,
.credit-card-box .back {
    width: 260px !important;
    height: 162px !important;
}

.credit-card-box .chip {
    transform: scale(.65);
    transform-origin: top left;
}

.credit-card-box .number {
    font-size: 15px !important;
    letter-spacing: 1.5px !important;
    bottom: 56px !important;
}

.credit-card-box .card-holder {
    bottom: 18px !important;
}

.credit-card-box .card-holder label,
.credit-card-box .card-expiration-date label {
    font-size: 8.5px !important;
}

.credit-card-box .card-holder div,
.credit-card-box .card-expiration-date div {
    font-size: 11px !important;
}

.credit-card-box .card-expiration-date {
    bottom: 18px !important;
}

.credit-card-box .strip {
    margin-top: 18px !important;
    height: 36px !important;
}

.credit-card-box .ccv {
    margin-top: 18px !important;
}

.credit-card-box .ccv label {
    font-size: 9px !important;
}

.credit-card-box .ccv div {
    height: 26px !important;
    line-height: 26px !important;
    font-size: 12px !important;
}

/* ----- Form fields compact ----- */
.payment-section form { width: 100% !important; }

.form fieldset {
    padding: 5px 0 !important;
    margin: 0 !important;
}

.form fieldset label,
.form label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
    display: block;
}

.form input[type="text"],
.form input[type="number"] {
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form input[type="text"]:focus,
.form input[type="number"]:focus {
    border-color: #ef5526 !important;
    box-shadow: 0 0 0 3px rgba(239, 85, 38, .12) !important;
}

.card-inputs {
    margin: 0 !important;
    padding: 0 !important;
}

.skt-ccv-container {
    display: flex !important;
    gap: 12px !important;
    margin-top: 4px;
}

.skt-ccv-container .fieldset-expiration,
.skt-ccv-container .fieldset-ccv {
    flex: 1 !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

/* ----- Installments compact ----- */
/* Eski compact override'lar kaldırıldı — yeni .pay-section kendi border/background'ını veriyor.
   Sadece .options grid'i için scroll constraint koruyalım. */
.pay-section.instalment-container .options {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 4px 0;
}

.pay-section.instalment-container .options::-webkit-scrollbar { width: 5px; }
.pay-section.instalment-container .options::-webkit-scrollbar-thumb {
    background: #cbd5e1; border-radius: 999px;
}

/* ----- Terms compact ----- */
.terms-container {
    margin-top: 10px !important;
    padding: 0 !important;
}

.hb-check {
    padding: 6px 0 !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
}

.hb-text { font-size: 12.5px !important; }

.brand-open {
    color: #ef5526 !important;
    cursor: pointer;
    font-weight: 600 !important;
}

.hb-info-link {
    margin: 4px 0 !important;
    font-size: 11.5px !important;
}

/* ----- Payment submit button ----- */
#payment-button,
.form button#payment-button {
    width: 100% !important;
    height: 46px !important;
    margin-top: 12px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: #ef5526 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px -4px rgba(239, 85, 38, .55);
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
    text-shadow: none !important;
    text-transform: none !important;
}

#payment-button:hover:not(:disabled) {
    background: #d8451f !important;
    transform: translateY(-1px);
}

#payment-button:disabled {
    opacity: .5 !important;
    cursor: not-allowed;
    transform: none;
}

/* ----- Order summary compact ----- */
.order-summary-wrapper {
    padding: 16px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb;
}

.order-summary-wrapper h3.title {
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

.order-table th,
.order-table td {
    padding: 6px 4px !important;
    font-size: 12.5px !important;
}

.order-table tfoot .order-total th,
.order-table tfoot .order-total td {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ef5526 !important;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .checkout {
        flex-direction: column !important;
    }
    .payment-section,
    .order-summary-section {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .credit-card-box,
    .credit-card-box .flip,
    .credit-card-box .front,
    .credit-card-box .back {
        width: 240px !important;
        height: 150px !important;
    }
}
