/* ─────────────────────────────────────────────────────────────
   Üyelere Özel Fiyat (Watsons modeli) — THE BATH FACTORY teması
   Çip vitrinde herkese gösterilir; fiyat sepette yalnızca giriş
   yapmış kullanıcıya uygulanır. Kaynak: ProductInformationMemberPrices
   Sinoz karşılığı: /themes/sinoz/css/sinoz/member-price.css
   ───────────────────────────────────────────────────────────── */

/* Ürün kartı çipi — TBF marka rengi (turuncu, tbfcolor.css ile uyumlu).
   TBF kart arka planı açık şeftali olduğu için dolgu rengi karta karışıyordu;
   beyaz zemin + turuncu çerçeveli "pill" ile karttan net ayrışır. */
.member-price-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #fe6908;
    border: 1px solid #ffc199;
    border-radius: 20px;
    padding: 2px 10px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* Fiyat da çip rengiyle uyumlu (renksiz kalınca siyah çıkıp tutarsız görünüyordu) */
.member-price-chip span {
    color: #fe6908;
    font-weight: 700;
}

/* Ürün detay: çipin kendi satırı — fiyat bloğu float/flex olduğu için
   çip bu kapsayıcıyla fiyatın ALTINA düşer */
.member-price-chip-row {
    clear: both;
    width: 100%;
}

/* Ürün detay (masaüstü): fiyat satırının ALTINDA kendi satırında —
   fiyatın yanına sıkışıp taşmasın diye blok seviyesinde, içerik genişliğinde */
.member-price-chip--detail {
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 4px 10px;
    margin: 8px 0 0;
    font-size: 14px;
    border: 1px solid #ffd6bd;
    white-space: nowrap;
}

/* Ürün detay (mobil): fiyat sütununun içinde, güncel fiyatın hemen altında —
   dar sütunda kelime kelime kırılmasın diye tek satır */
.member-price-chip--inline {
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 2px 8px;
    margin: 4px 0 0;
    font-size: 12px;
    border: 1px solid #ffd6bd;
    white-space: nowrap;
}

/* ── Üyelere özel fiyat TEŞVİK kutusu (sepet özeti + checkout, yalnızca misafir) ── */
.member-savings-summary {
    background: #FFEDE3;
    border: 1px solid #ffd6bd;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #8a3c07;
    font-size: 13px;
    line-height: 1.45;
}

.member-savings-summary__text b {
    color: #fe6908;
}

.member-savings-summary__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.member-savings-summary__actions a {
    display: inline-block;
    background: #fe6908;
    color: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.member-savings-summary__actions a:hover {
    background: #d95a06;
    color: #fff;
}

/* İkincil (üye ol) buton: çerçeveli, dolgusuz */
.member-savings-summary__actions a.member-savings-summary__ghost {
    background: transparent;
    color: #fe6908;
    border: 1px solid #fe6908;
}

.member-savings-summary__actions a.member-savings-summary__ghost:hover {
    background: #ffdfcc;
    color: #d95a06;
}

/* Yeni üye para puan notu (bonus yalnızca yeni üyeye verilir) */
.member-savings-summary__note {
    margin-top: 6px;
    font-size: 12px;
    color: #8a3c07;
    opacity: 0.9;
}

/* Checkout ince şerit varyantı */
.member-savings-summary--slim {
    padding: 8px 12px;
    margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────────────
   Üyelik / Hızlı Giriş modal'ları (sepet + checkout) — MODERN, MOBİL-ÖNCELİKLİ
   Marka: TheBathFactory #fe6908. member-offer-* sınıfları hem MemberOffer hem
   QuickLogin modallarınca paylaşılır.
   ───────────────────────────────────────────────────────────── */
.member-offer-modal {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.member-offer-modal .modal-body {
    padding: 26px 24px 22px;
    text-align: center;
    /* Uzun içerik (üyelik formu) görünüm alanını taşmasın; modal içinde kaydırılsın */
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Üst ikon rozeti */
.member-offer-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: #fff1e6;
    color: #fe6908;
}

.member-offer-icon svg { width: 28px; height: 28px; }

.member-offer-title {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 6px;
    line-height: 1.25;
}

.member-offer-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px;
}

.member-offer-highlight {
    color: #fe6908;
    font-size: 17px;
    font-weight: 700;
}

/* Girişler: dokunmatik-dostu, iOS zoom'u önlemek için 16px */
.member-offer-modal .form-control {
    height: 52px;
    font-size: 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.member-offer-modal .form-control:focus {
    border-color: #fe6908;
    box-shadow: 0 0 0 3px rgba(254, 105, 8, .12);
    outline: none;
}

/* Textarea (ör. ürün değerlendirme) sabit yüksekliğe ezilmesin */
.member-offer-modal textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
    text-align: left;
    line-height: 1.5;
}

/* Birincil buton */
.member-offer-modal .btn,
.member-offer-modal .btn-fill-out {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #fe6908;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 0;
    transition: background .15s ease;
}

.member-offer-modal .btn:hover,
.member-offer-modal .btn-fill-out:hover {
    background: #e15c04;
    color: #fff;
}

/* Kod girişi: büyük, aralıklı, ortalı */
.member-offer-code-input {
    height: 58px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    max-width: 240px;
    margin: 0 auto 14px;
}

/* Sözleşme onayı */
.member-offer-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    text-align: left;
    margin: 4px 0 16px;
    cursor: pointer;
    line-height: 1.4;
}

.member-offer-consent input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #fe6908;
    position: static;
    opacity: 1;
    transform: none;
}

/* İkincil geçiş linki (üye ol ↔ telefonla giriş) — buton görünümlü çerçeveli */
.member-offer-alt {
    display: block;
    width: 100%;
    background: #fff;
    border: 1.5px solid #e2e2e2;
    border-radius: 12px;
    height: 48px;
    line-height: 45px;
    color: #fe6908;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
}

.member-offer-alt:hover {
    background: #fff8f2;
    color: #fe6908;
    text-decoration: none;
}

/* Vazgeç: sade metin link */
.member-offer-skip {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    margin-top: 14px;
    cursor: pointer;
}

.member-offer-skip:hover { color: #666; }

/* İnce ayraç ("veya") */
.member-offer-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin: 16px 0 6px;
}
.member-offer-divider::before,
.member-offer-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}
.member-offer-divider::before { margin-right: 10px; }
.member-offer-divider::after { margin-left: 10px; }

.member-offer-step-hidden {
    display: none;
}

/* Hızlı Üyelik: Google ile üye ol butonu */
.quick-register-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 1.5px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.quick-register-google:hover { background: #f7f7f7; color: #333; text-decoration: none; }
.quick-register-google img { width: 20px; height: 20px; }

/* Hızlı Üyelik: kanal sekmeleri (Telefon / E-posta) */
.member-offer-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: #f4f4f4;
    border-radius: 12px;
    padding: 4px;
}
.member-offer-tab {
    flex: 1;
    padding: 10px 8px;
    background: none;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    transition: background .15s ease, color .15s ease;
}
.member-offer-tab.active {
    background: #fff;
    color: #fe6908;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Mobil ince ayar */
@media (max-width: 576px) {
    /* modal-fixes.css custom-modal'a 1rem !important padding veriyor; bu modalda
       boşluğu tek kaynaktan (modal-body) yönetmek için nötrle */
    .custom-modal .modal-dialog .modal-content.member-offer-modal { padding: 0 !important; }
    .member-offer-modal .modal-body { padding: 24px 18px 20px; }
    .member-offer-title { font-size: 18px; }
    .member-offer-icon { width: 54px; height: 54px; }
}

/* Checkout: misafir "tek tık üyelik" şifre alanı (varsayılan gizli, checkbox JS ile açar) */
.membership-password-group {
    display: none;
    margin-top: 8px;
}

/* Sipariş sonrası (Done) üyelik doğrulama kutusu */
.membership-verify-box {
    max-width: 560px;
    margin: 10px auto 40px;
}

.membership-verify-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.membership-verify-card .membership-verify-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.membership-verify-code-group {
    display: none;
    margin-top: 14px;
}

.membership-verify-code-input {
    font-size: 20px;
    letter-spacing: 4px;
    max-width: 220px;
    margin: 0 auto 10px;
}
