/* Sipariş akışı (ekip C): sepet, teslimat, ödeme, onay, takip, dosya kontrolü, prova.
   tasarim.css'in atomik sınıflarının yapamadığı şeyler: mobil düzen (Mobil* ekranlar), seçili kart görünümü,
   alt sabit düğme çubuğu, hata ve bildirim kutuları. */

/* ---------- bildirim kutuları (sayfanın üstünde) ---------- */
.yd-sp-bildirim { padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.yd-sp-iyi { background: #DDF5E8; color: #0B5A36; }
.yd-sp-hata { background: #FEF3F2; color: #7A271A; border: 1px solid #F3B8B2; }
.yd-sp-nokta-hata { background: #B42318; }
.yd-sp-kupon-hata { color: #FFD0CA; }

/* ---------- görseller ---------- */
.yd-sp-kucuk { object-fit: contain; }
.yd-sp-kapla { object-fit: cover; }
.yd-sp-onizleme { max-width: 100%; max-height: 484px; width: auto; height: auto; }
.yd-sp-onizleme-yok { width: 120px; height: 160px; }
.yd-sp-paytr { min-height: 620px; border-radius: 12px; }

/* ---------- seçilebilir kartlar (fatura türü, kargo, ödeme yöntemi) ---------- */
.yd-sp-secim:has(input:checked) { border: 2px solid #5B4BE8; background: #F5F3FF; }
.yd-sp-secim:has(input:focus-visible) { outline: 2px solid #5B4BE8; outline-offset: 2px; }
.yd-sp-yontem:has(input[name="odeme"]:checked) { border: 2px solid #5B4BE8; }
.yd-sp-yontem:not(:has(input[name="odeme"]:checked)) { border: 1px solid #E4E3EE; }
.yd-sp-yontem:has(input:disabled) { opacity: .72; }

/* kurumsal alanlar yalnız kurumsal seçiliyken; fatura adresi yalnız "aynı" işaretli değilken */
.yd-sp-fatura:has(input[name="fatura_turu"][value="bireysel"]:checked) .yd-sp-kurumsal { display: none; }
.yd-sp-fatura:has(input[name="fatura_ayni"]:checked) .yd-sp-fatura-adres { display: none; }

/* ---------- prova: düzeltme nedenleri ---------- */
.yd-sp-neden:has(input:checked) { background: #0C1538; color: #FFFFFF; border-color: #0C1538; }
.yd-sp-neden:has(input:focus-visible) { outline: 2px solid #5B4BE8; outline-offset: 2px; }

/* ---------- dosya bırakma alanı ---------- */
.yd-sp-birak:has(input:focus-visible) { outline: 2px solid #5B4BE8; outline-offset: 2px; }
.yd-sp-birak.surukle { background: #F5F3FF; }

/* ---------- geçersiz alan (tarayıcıdaki denetim de bu sınıfı kullanır) ---------- */
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid #B42318; }

/* ---------- mobil (Mobil* ekranları) ---------- */
@media (max-width: 760px) {
  .yd-sp-ana { padding-top: 16px; padding-bottom: 0; gap: 16px; }
  .yd-sp-ana > .yd-masa + .yd-mobil, .yd-sp-ana > .d-flex { gap: 16px; }
  /* alt sabit düğme çubuğu: tasarımdaki "mt-auto … bt-1_5px" bölümü */
  .yd-sp-alt { position: sticky; bottom: 0; z-index: 5; margin: 8px -16px 0; flex: 0 0 auto; width: calc(100% + 32px);
               box-sizing: border-box; }
  .yd-sp-form section, .yd-sp-onay section, .yd-sp-yazilar { padding: 16px; gap: 12px; border-radius: 16px; }
  .yd-sp-form h2, .yd-sp-onay h2, .yd-sp-yazilar h2 { font-size: 19px; }
  .yd-sp-form label { font-size: 13px; gap: 4px; }
  .yd-sp-form .yd-sp-yontem .ff-bas { font-size: 19px; }
  .yd-sp-iki { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .yd-sp-form .yd-sp-tur { min-height: 48px; align-items: center; justify-content: center; text-align: center; font-size: 16px; }
  .yd-sp-form label.mnh-44px { font-size: 14px; }
  .yd-sp-tur-alt { display: none; }
  .yd-sp-onay .yd-sp-sonra li { padding: 12px 0; }
  .yd-sp-onay .yd-sp-sonra li > span:first-child { flex: 0 0 28px; height: 28px; font-size: 12px; }
  .yd-sp-onay h1, .yd-sp-ana h1 { font-size: 30px; line-height: 1.08; }
  .yd-sp-sonuc { padding: 14px 16px; }
  .yd-sp-dosya { gap: 16px; }
  .yd-sp-dosya-sol { flex-basis: 100%; }
  .yd-sp-prova-sol { flex-basis: 100%; }
  .yd-sp-prova-sol img { width: 62%; margin: 0 auto; }
  .yd-sp-paytr { min-height: 560px; }
}
.yd-sp-satirici { display: inline; }
/* bilesen.css'teki .yd-baglanti-dugme { font: inherit } kalınlığı da sıfırlar; düğme görünümlü bağlantılar tasarımda 600 */
.yd-baglanti-dugme.fw-600 { font-weight: 600; }
.yd-baglanti-dugme.c-4b5275 { color: #4B5275; }
.yd-baglanti-dugme.c-5b4be8 { color: #5B4BE8; }
@media (max-width: 760px) {
  .yd-sp-onay .yd-sp-sonra li .fw-700 { font-size: 15px; }
  .yd-sp-onay .yd-sp-sonra li .fs-14px { font-size: 13px; }
}
.yd-sp-mini { width: 64px; min-width: 0; }
