/* Ana sayfa · online barkod başvurusu (bsv-). Tanıtım sayfasının değişkenlerini kullanır: --red, --ink, --line, --grey, --muted, --f-head. */
.bsv [hidden] { display: none !important; }
.bsv .sec-head { max-width: 760px; }
.bsv-bilgi { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; font-size: .92rem; color: var(--ink-2); }
.bsv-bilgi b { color: var(--ink); }
.bsv-bilgi .i { color: var(--red); margin-top: 2px; }
#bsv-uygulama { min-height: 420px; }
.bsv-hata { padding: 18px; background: var(--red-soft); color: var(--red-d); border-radius: 10px; }
.bsv-hata p + p { margin-top: 6px; }
.bsv-hata .btn { margin-top: 14px; }

/* adım çubuğu */
.bsv-adimlar { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: a; }
.bsv-adimlar li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; color: var(--muted); min-width: 0; }
.bsv-adimlar li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--grey); font-weight: 700; color: var(--ink-2); }
.bsv-adimlar li b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsv-adimlar li[data-durum='simdi'] { border-color: var(--red); color: var(--ink); box-shadow: 0 0 0 3px var(--red-soft); }
.bsv-adimlar li[data-durum='simdi'] span { background: var(--red); color: #fff; }
.bsv-adimlar li[data-durum='bitti'] span { background: var(--ok); color: #fff; }

/* düzen */
.bsv-duzen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bsv-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow); min-width: 0; }
.bsv-adim { border: 0; margin: 0; padding: 0; min-width: 0; }
.bsv-adim > legend { font: 600 1.35rem var(--f-head); color: var(--ink); padding: 0; margin-bottom: 14px; }
.bsv-form h4 { font: 600 1rem var(--f-head); margin: 24px 0 10px; color: var(--ink); }
.bsv-giris, .bsv-ipucu-p { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.bsv-satir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.bsv-alan { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; position: relative; align-content: start; }
.bsv-alan > label, .bsv-etiket, .bsv-cipler legend { font-weight: 600; font-size: .9rem; color: var(--ink); }
.bsv-zorunlu { color: var(--red); }
.bsv-istege { color: var(--muted); font-weight: 400; font-size: .82rem; }
.bsv-alan input:not([type='checkbox']):not([type='radio']), .bsv-alan select, .bsv-alan textarea {
  width: 100%; min-height: 46px; border: 1px solid #d5d7dd; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; }
.bsv-alan textarea { min-height: 84px; resize: vertical; }
.bsv-alan input:focus, .bsv-alan select:focus, .bsv-alan textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.bsv-alan select:disabled { background: var(--grey); color: var(--muted); }
.bsv-ipucu { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.bsv-canli { font-size: .82rem; font-weight: 600; }
.bsv-canli[data-durum='ok'] { color: var(--ok); }
.bsv-canli[data-durum='hata'] { color: var(--warn); }
.bsv-alan--hata input, .bsv-alan--hata select, .bsv-alan--hata textarea { border-color: var(--red) !important; }
.bsv-alan--hata.bsv-kartlar, .bsv-alan--hata.bsv-cipler, .bsv-alan--hata.bsv-onay { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 10px; }
.bsv-hata-yazi { display: block; color: var(--red-d); font-size: .82rem; font-weight: 600; grid-column: 1 / -1; }
.bsv-sayilar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.bsv-gtin-sonuc { padding: 12px 14px; background: var(--grey); border-radius: 10px; font-size: .95rem; margin-bottom: 4px; }
.bsv-gtin-sonuc b { color: var(--ink); }
.bsv-uyari-kucuk { color: var(--warn); font-size: .86rem; }
p.bsv-uyari-kucuk { background: var(--warn-soft); padding: 10px 12px; border-radius: 8px; margin-top: 10px; }
.bsv-secimler { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; }

/* seçim kartları */
.bsv-kartlar { display: grid; gap: 10px; }
.bsv-kartlar--tur { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.bsv-kartlar--iki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsv-kartlar--onek { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsv-kartlar--paket { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.bsv-kart, .bsv-onek, .bsv-paket { position: relative; display: block; cursor: pointer; }
.bsv-kart input, .bsv-onek input, .bsv-paket input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bsv-kart-ic, .bsv-onek-ic, .bsv-paket-ic { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.bsv-kart-ic b, .bsv-onek-ic b, .bsv-paket-ic b { font-weight: 600; font-size: .94rem; color: var(--ink); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bsv-kart-ic small, .bsv-onek-ic small, .bsv-paket-ic small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.bsv-kart:hover .bsv-kart-ic, .bsv-onek:hover .bsv-onek-ic, .bsv-paket:hover .bsv-paket-ic { border-color: #f0a29c; }
.bsv-kart input:checked + .bsv-kart-ic, .bsv-onek input:checked + .bsv-onek-ic, .bsv-paket input:checked + .bsv-paket-ic { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: #fffafa; }
.bsv-kart input:focus-visible + .bsv-kart-ic, .bsv-onek input:focus-visible + .bsv-onek-ic, .bsv-paket input:focus-visible + .bsv-paket-ic { outline: 2px solid var(--red); outline-offset: 2px; }
.bsv-onek-ic strong, .bsv-paket-ic strong { font: 600 1.1rem var(--f-head); color: var(--ink); margin-top: 4px; }
.bsv-onek--yetmez { cursor: not-allowed; }
.bsv-onek--yetmez .bsv-onek-ic { opacity: .45; background: var(--grey); }
.bsv-onek--yetmez input { cursor: not-allowed; }
.bsv-rozet { justify-self: start; display: inline-block; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--red); border-radius: 999px; padding: 2px 8px; }
.bsv-paket-ic ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .82rem; color: var(--ink-2); }
.bsv-paket-ic .bsv-rozet { justify-self: start; }

.bsv-onay { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: 10px 0; cursor: pointer; }
.bsv-onay input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.bsv-onay--satir { margin: 8px 0; }
.bsv-onay b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.bsv-cipler { border: 0; padding: 0; margin: 0 0 14px; }
.bsv-cipler > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bsv-cip { position: relative; cursor: pointer; }
.bsv-cip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bsv-cip span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .86rem; background: #fff; }
.bsv-cip input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-d); font-weight: 600; }
.bsv-cip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.bsv-fatura { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 14px; }
.bsv-bal { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* gezinme */
.bsv-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.bsv-nav .btn-red { margin-left: auto; }
.bsv-adim-yazi { color: var(--muted); font-size: .86rem; }
.bsv-mesaj { margin: 16px 0 0; padding: 12px 14px; background: var(--red-soft); color: var(--red-d); border-radius: 8px; font-weight: 600; font-size: .9rem; }
.bsv-link { background: none; border: 0; color: var(--red); font: 600 .9rem var(--f-body); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* özet adımı */
.bsv-ozet-liste dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0 0 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bsv-ozet-liste dt, .bsv-ozet-liste dd { padding: 9px 12px; border-top: 1px solid var(--line); font-size: .88rem; margin: 0; }
.bsv-ozet-liste dt { color: var(--muted); background: #fafafb; }
.bsv-ozet-liste dd { overflow-wrap: anywhere; }
.bsv-ozet-liste dt:first-of-type, .bsv-ozet-liste dt:first-of-type + dd { border-top: 0; }
.bsv-belgeler { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: b; }
.bsv-belgeler li { display: grid; gap: 2px; padding: 10px 12px 10px 42px; border: 1px solid var(--line); border-radius: 10px; position: relative; font-size: .88rem; color: var(--muted); counter-increment: b; }
.bsv-belgeler li::before { content: counter(b); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-soft); color: var(--red-d); font-weight: 700; font-size: .74rem; display: grid; place-items: center; }
.bsv-belgeler b { color: var(--ink); font-weight: 600; }
.bsv-metinler { display: grid; gap: 8px; margin-bottom: 8px; }
.bsv-metin { border: 1px solid var(--line); border-radius: 10px; background: #fafafb; }
.bsv-metin summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: .9rem; }
.bsv-metin > div { padding: 0 14px 12px; max-height: 260px; overflow-y: auto; font-size: .84rem; color: var(--ink-2); }
.bsv-metin p { margin: 0 0 8px; }
.bsv-taslak { color: var(--warn); font-weight: 600; }

/* fiyat özeti */
.bsv-ozet { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.bsv-ozet h3 { font: 600 1.15rem var(--f-head); margin-bottom: 12px; }
.bsv-kalemler { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bsv-kalemler li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bsv-kalemler li small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.bsv-kalemler li b { white-space: nowrap; color: var(--ink); }
.bsv-kalemler li.bsv-ayrica { opacity: .7; }
.bsv-toplam { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; font-weight: 600; }
.bsv-toplam b { font: 700 1.45rem var(--f-head); color: var(--red); white-space: nowrap; }
.bsv-toplam--ayrica b { font-size: 1.05rem; color: var(--ink); }
.bsv-notlar { margin: 16px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* sonuç */
.bsv-sonuc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow-lg); outline: none; }
.bsv-sonuc-ust { display: flex; gap: 16px; align-items: flex-start; }
.bsv-sonuc h3 { font: 600 1.5rem var(--f-head); margin-bottom: 6px; }
.bsv-tik { width: 46px; height: 46px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.bsv-takip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; padding: 14px; background: var(--grey); border-radius: 10px; }
.bsv-takip code { flex: 1 1 100%; font-family: var(--f-mono); font-size: .8rem; overflow-wrap: anywhere; color: var(--ink-2); }
.bsv-odeme-kutu { padding: 16px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 10px; justify-items: start; }
.bsv-odeme-kutu code { font-family: var(--f-mono); }

@media (max-width: 1080px) {
  .bsv-duzen { grid-template-columns: minmax(0, 1fr); }
  .bsv-ozet { position: static; }
  .bsv-adimlar li b { display: none; }
  .bsv-adimlar li { justify-content: center; }
  .bsv-adimlar li[data-durum='simdi'] b { display: inline; }
  .bsv-adimlar { grid-template-columns: repeat(5, auto); justify-content: start; }
}
@media (max-width: 760px) {
  .bsv-form { padding: 18px 16px; }
  .bsv-satir, .bsv-kartlar--iki, .bsv-kartlar--paket { grid-template-columns: minmax(0, 1fr); }
  .bsv-kartlar--onek, .bsv-sayilar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bsv-ozet-liste dl { grid-template-columns: minmax(0, 1fr); }
  .bsv-ozet-liste dd { border-top: 0; padding-top: 0; }
  .bsv-adimlar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bsv-adimlar li { padding: 8px 4px; }
  .bsv-adimlar li[data-durum='simdi'] b { display: none; }
  .bsv-nav { flex-wrap: wrap; }
  .bsv-sonuc { padding: 20px 16px; }
}
