/*
 * Katalog fiyat bileşenleri (FINAL-DESIGN §11.1): modül yapılandırıcısı, paket
 * tablosu, "Modüller" bölümü, ana sayfa paket kartı eki, "başlayan" fiyat etiketleri,
 * çevrilmiş fiyatın "Liste fiyatı" satırı ve "≈" notu; catalog_v3 yapılandırıcısı (dönem çipleri,
 * plan seçimi, ekler, adet, bakiye tutarı, "Bugün / Sonra" özeti). Statik dosya (npm build yok);
 * sayfaya ?v=filemtime ile, yalnız bu bileşenler çizildiğinde eklenir.
 */

/* Görünürlük sınıfla ([hidden] Bootstrap'ta ezilebiliyor). */
.wl-cfg .is-off, .wl-plans .is-off, .wl-cfg-list.is-off, .wl-plan-price.is-off, .wl-plan-buy.is-off { display: none !important; }

/* ---------------------------------------------------------------- fiyat kartı */
.wl-cfg .prod-price { margin-bottom: 8px; }
.wl-cfg-list { font-size: 12px; color: var(--goog-on-surface-muted); margin: 0 0 14px; }
.wl-cfg-list span { font-weight: 600; color: var(--goog-on-surface); }
.wl-cfg-note { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.45; color: var(--goog-on-surface-muted); background: var(--goog-surface-2); border-radius: 10px; padding: 8px 10px; margin: 0 0 14px; }
.wl-cfg-note i { color: var(--goog-blue); margin-top: 1px; }
.wl-cfg .prod-billing { margin-top: 12px; }

.wl-cfg-modules { border: 0; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wl-cfg-legend { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--goog-on-surface-subtle); margin: 0 0 6px; padding: 0; float: none; width: auto; }
.wl-cfg-module { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; padding: 10px 12px; border: 1px solid var(--goog-border); border-radius: 12px; cursor: pointer; background: var(--goog-surface); transition: border-color .15s, background .15s; }
.wl-cfg-module:has(input:checked) { border-color: var(--goog-green-dark); background: rgba(0,165,80,.06); }
.wl-cfg-module input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--goog-green-dark); }
.wl-cfg-module-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-cfg-module-name { font-size: 13.5px; font-weight: 600; color: var(--goog-on-surface); }
.wl-cfg-module-name i { color: var(--goog-green-dark); }
.wl-cfg-module-sum { font-size: 12px; line-height: 1.4; color: var(--goog-on-surface-muted); }
.wl-cfg-module-price { font-size: 13px; font-weight: 700; color: var(--goog-green-dark); white-space: nowrap; text-align: right; }
.wl-cfg-module-price small { display: block; font-weight: 500; color: var(--goog-on-surface-muted); font-size: 11.5px; }

.wl-cfg-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0 6px; border-top: 1px dashed var(--goog-border); margin-bottom: 6px; }
.wl-cfg-total-label { font-size: 13px; font-weight: 600; color: var(--goog-on-surface-muted); }
.wl-cfg-total-amount { text-align: right; }
.wl-cfg-total-amount b { font-size: 22px; font-weight: 800; color: var(--goog-on-surface); letter-spacing: -.4px; }
.wl-cfg-total-amount small { font-size: 12.5px; color: var(--goog-on-surface-muted); }

/* ---------------------------------------------------------------- paket tablosu */
.wl-plans { background: var(--goog-surface-2); border-top: 1px solid var(--goog-border); border-bottom: 1px solid var(--goog-border); }
.wl-plans, .wl-mods, .wl-mod, .wl-plan { scroll-margin-top: 96px; }
.wl-plans-seg { display: flex; width: fit-content; gap: 4px; padding: 4px; margin: 0 auto 24px; background: var(--goog-surface); border: 1px solid var(--goog-border); border-radius: 999px; }
.wl-plans-seg-opt { margin: 0; cursor: pointer; }
.wl-plans-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wl-plans-seg-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--goog-on-surface-muted); transition: background .15s, color .15s; }
.wl-plans-seg-opt input:checked + span { background: var(--goog-on-surface); color: #fff; }
.wl-plans-seg-opt input:focus-visible + span { outline: 2px solid var(--goog-blue); outline-offset: 2px; }
.wl-plans-save { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,165,80,.14); color: var(--goog-green-dark); }
.wl-plans-seg-opt input:checked + span .wl-plans-save { background: rgba(255,255,255,.2); color: #fff; }

.wl-plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wl-plan { display: flex; flex-direction: column; background: var(--goog-surface); border: 1px solid var(--goog-border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-xs, none); transition: box-shadow .2s, transform .2s, border-color .2s; }
.wl-plan.is-featured { border-color: var(--goog-green-dark); box-shadow: 0 10px 28px rgba(0,165,80,.14); }
.wl-plan.is-picked { outline: 3px solid rgba(66,133,244,.45); outline-offset: 2px; }
.wl-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wl-plan-name { font-size: 18px; font-weight: 700; margin: 0; color: var(--goog-on-surface); }
.wl-plan-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,165,80,.12); color: var(--goog-green-dark); white-space: nowrap; }
.wl-plan-prices { min-height: 58px; margin-bottom: 16px; }
.wl-plan-amount { font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--goog-on-surface); }
.wl-plan-price small { font-size: 13px; color: var(--goog-on-surface-muted); }
.wl-plan-list { display: block; font-size: 12px; color: var(--goog-on-surface-muted); margin-top: 4px; }
.wl-plan-na { font-size: 13px; color: var(--goog-on-surface-muted); }
.wl-plan-limits { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wl-plan-limits li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--goog-on-surface); }
.wl-plan-limits i { color: var(--goog-green-dark); font-size: 16px; }
.wl-plan .wl-plan-buy { margin-top: auto; width: 100%; }
.wl-plans-note { margin-top: 18px; display: inline-flex; }

/* ---------------------------------------------------------------- Modüller bölümü */
.wl-mods .wl-mod { background: var(--goog-surface); border: 1px solid var(--goog-border); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.wl-mod-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; margin-bottom: 18px; }
.wl-mod-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(0,165,80,.12); color: var(--goog-green-dark); }
.wl-mod-title { font-size: 19px; font-weight: 700; margin: 2px 0 6px; color: var(--goog-on-surface); }
.wl-mod-summary { font-size: 14.5px; line-height: 1.6; color: var(--goog-on-surface-muted); margin: 0; max-width: 680px; }
.wl-mod-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wl-mod-price { font-size: 17px; font-weight: 800; color: var(--goog-green-dark); white-space: nowrap; }
.wl-mod-price small { font-size: 12.5px; font-weight: 500; color: var(--goog-on-surface-muted); }
.wl-mod-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--goog-green-dark); color: var(--goog-green-dark); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.wl-mod-add:hover { background: var(--goog-green-dark); color: #fff; text-decoration: none; }
.wl-mod-features { margin-bottom: 18px; }
.wl-mod-faq-title { font-size: 15px; font-weight: 700; margin: 6px 0 12px; color: var(--goog-on-surface); }

/* ---------------------------------------------------------------- kartlar */
.ep-card .ep-plus { display: block; font-size: 13px; font-weight: 600; color: var(--goog-green-dark); margin-top: 2px; }
.wl-from { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: var(--goog-on-surface-muted); margin-right: 4px; }
.wl-mod-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0,165,80,.12); color: var(--goog-green-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.feat-pkg-plus { display: block; font-size: 12px; font-weight: 600; color: var(--goog-green-dark); }

/* ---------------------------------------------------------------- catalog_v3 yapılandırıcı */
.wl-cfg-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--goog-on-surface); }
.wl-cfg-facts i { color: var(--goog-green-dark); }
.wl-cfg-setup { font-size: 12.5px; color: var(--goog-on-surface-muted); margin: -2px 0 10px; }
.wl-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 8px 0 14px; background: var(--goog-surface-2); border: 1px solid var(--goog-border); border-radius: 12px; }
.wl-seg-opt { flex: 1 1 auto; margin: 0; cursor: pointer; min-width: 0; }
.wl-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wl-seg-opt span { display: block; text-align: center; padding: 7px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--goog-on-surface-muted); white-space: nowrap; transition: background .15s, color .15s; }
.wl-seg-opt input:checked + span { background: var(--goog-surface); color: var(--goog-on-surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wl-seg-opt input:focus-visible + span { outline: 2px solid var(--goog-blue); outline-offset: 2px; }

.wl-cfg-plans { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wl-cfg-plan { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--goog-border); border-radius: 12px; cursor: pointer; background: var(--goog-surface); margin: 0; }
.wl-cfg-plan:has(input:checked) { border-color: var(--goog-green-dark); background: rgba(0,165,80,.06); }
.wl-cfg-plan input { width: 16px; height: 16px; accent-color: var(--goog-green-dark); margin: 0; }
.wl-cfg-plan-name { font-size: 14px; font-weight: 600; color: var(--goog-on-surface); min-width: 0; overflow-wrap: anywhere; }
.wl-cfg-plan-price { font-size: 13px; font-weight: 700; color: var(--goog-on-surface); white-space: nowrap; }
.wl-cfg-plan.is-na { opacity: .55; cursor: not-allowed; }
.wl-cfg-plan.is-na .wl-cfg-plan-price { font-weight: 500; color: var(--goog-on-surface-muted); white-space: normal; text-align: right; }

.wl-cfg-extra { grid-template-columns: auto 1fr auto; }
.wl-cfg-extra .wl-cfg-module-body { cursor: pointer; margin: 0; }
.wl-cfg-extra-ctl { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wl-cfg-select { font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--goog-border); border-radius: 8px; background: var(--goog-surface); color: var(--goog-on-surface); max-width: 100%; }
.wl-cfg-req { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--goog-surface-2); color: var(--goog-on-surface-muted); font-size: 11px; font-weight: 700; vertical-align: middle; }
.wl-cfg-grant { display: block; font-size: 12px; color: var(--goog-green-dark); }
.wl-qty { display: inline-flex; align-items: center; gap: 4px; }
.wl-qty-btn { width: 30px; height: 30px; border: 1px solid var(--goog-border); border-radius: 8px; background: var(--goog-surface); color: var(--goog-on-surface); font-size: 16px; line-height: 1; cursor: pointer; }
.wl-qty-btn:focus-visible { outline: 2px solid var(--goog-blue); outline-offset: 1px; }
.wl-qty-input { width: 56px; height: 30px; text-align: center; border: 1px solid var(--goog-border); border-radius: 8px; font-size: 13px; background: var(--goog-surface); color: var(--goog-on-surface); -moz-appearance: textfield; }
.wl-qty-input::-webkit-outer-spin-button, .wl-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wl-qty-unit { font-size: 12px; color: var(--goog-on-surface-muted); }

.wl-cfg-topup { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.wl-cfg-amount { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--goog-border); border-radius: 10px; font-size: 15px; font-weight: 600; background: var(--goog-surface); color: var(--goog-on-surface); }
.wl-cfg-amount:focus { outline: 2px solid var(--goog-blue); outline-offset: 1px; }
.wl-cfg-net { font-size: 12.5px; color: var(--goog-on-surface-muted); }
.wl-cfg-net b { color: var(--goog-on-surface); }
.wl-cfg-disclosure i { color: var(--goog-green-dark); }
.wl-cfg-later { font-size: 13px; color: var(--goog-on-surface-muted); margin: 0 0 12px; }
.wl-cfg-later span { font-weight: 600; color: var(--goog-on-surface); }
.wl-cfg-error { font-size: 12.5px; color: var(--goog-red, #d93025); margin: 0 0 12px; }

.wl-plan-summary { font-size: 14px; line-height: 1.55; color: var(--goog-on-surface-muted); margin: 0 0 14px; }
.wl-plan-note { font-size: 13px; color: var(--goog-on-surface-muted); margin: 0 0 16px; display: flex; gap: 6px; align-items: baseline; }
.wl-mod-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--goog-on-surface-muted); }
.wl-mod-facts i { color: var(--goog-green-dark); }

@media (max-width: 991.98px) {
    .wl-plans-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .wl-mod-head { grid-template-columns: auto 1fr; }
    .wl-mod-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
    /* Denetim 30.09: 390 px'te "+1.800,00 ₺ tek seferlik · adet başına" + düğme kartı 27 px taşırıyordu. */
    .wl-mod-side .wl-mod-price { white-space: normal; min-width: 0; }
    .wl-mod-side .wl-mod-price small { white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .wl-plans-seg { width: 100%; flex-wrap: wrap; border-radius: 16px; }
    .wl-plans-seg-opt { flex: 1; }
    .wl-plans-seg-opt span { justify-content: center; width: 100%; padding: 8px 10px; }
    .wl-mods .wl-mod, .wl-plan { padding: 18px; }
    .wl-cfg-module { grid-template-columns: auto 1fr; }
    .wl-cfg-module-price { grid-column: 2; text-align: left; }
    .wl-cfg-module-price small { display: inline; }
    .wl-cfg-extra-ctl { grid-column: 1 / -1; }
    .wl-seg-opt span { padding: 7px 6px; font-size: 12.5px; }
}
