/* ============================================================
   AYZ HOME — Checkout & Başarı Sayfası Stilleri
   Bağımlılık: style.css, components.css
   ============================================================ */

/* ── Adım Göstergesi ─────────────────────────────────────── */
.co-steps {
  background:    var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding:       16px 0;
}

.co-steps__list {
  display:     flex;
  align-items: center;
  gap:         0;
  max-width:   480px;
}

.co-step {
  display:     flex;
  align-items: center;
  gap:         8px;
  flex-shrink: 0;
}

.co-step__num {
  width:           28px;
  height:          28px;
  border-radius:   50%;
  background:      var(--color-bg);
  border:          2px solid var(--color-border);
  font-size:       12px;
  font-weight:     700;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--color-text-muted);
  flex-shrink:     0;
}

.co-step__label { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }

.co-step--active .co-step__num  { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.co-step--active .co-step__label { color: var(--color-text); font-weight: 700; }

.co-step--done .co-step__num   { background: var(--color-success); border-color: var(--color-success); color: #fff; }

.co-step__sep {
  flex:          1;
  height:        2px;
  background:    var(--color-border);
  margin:        0 12px;
  min-width:     32px;
}

/* ── Genel Layout ─────────────────────────────────────────── */
.co-section { padding: 40px 0 80px; }

.co-layout {
  display:               grid;
  grid-template-columns: 1fr 380px;
  gap:                   40px;
  align-items:           start;
}

/* ── Kart ─────────────────────────────────────────────────── */
.co-card {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding:       24px;
  margin-bottom: 16px;
}

.co-card__title {
  display:       flex;
  align-items:   center;
  gap:           10px;
  font-size:     16px;
  font-weight:   700;
  margin-bottom: 20px;
  color:         var(--color-dark);
}

.co-card__title svg { color: var(--color-accent); flex-shrink: 0; }


/* ── Alanlar ──────────────────────────────────────────────── */
.co-fields {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
}

.co-fields--mt { margin-top: 16px; }

.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field--full { grid-column: 1 / -1; }

.co-field__label {
  font-size:   13px;
  font-weight: 600;
  color:       var(--color-text-muted);
}

.co-field__label span { color: var(--color-accent); margin-left: 2px; }

.co-field__input {
  height:        44px;
  padding:       0 14px;
  border:        1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size:     16px; /* iOS auto-zoom önlemek için 16px minimum */
  color:         var(--color-text);
  background:    var(--color-bg);
  outline:       none;
  transition:    border-color var(--transition), box-shadow var(--transition);
  width:         100%;
  box-sizing:    border-box;
}

.co-field__input:focus {
  border-color: var(--color-dark);
  box-shadow:   0 0 0 3px rgba(42,35,25,.08);
}

.co-field__textarea {
  height:     auto;
  padding:    10px 14px;
  resize:     vertical;
  min-height: 80px;
  line-height: 1.6;
  font-size:  16px; /* iOS auto-zoom önlemek için */
}

.co-field--error .co-field__input { border-color: var(--color-error); }
.co-field--error .co-field__input:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }

.co-field__error {
  font-size: 12px;
  color:     var(--color-error);
  margin-top: 2px;
}

/* ── Giriş Uyarısı ───────────────────────────────────────── */
.co-login-notice {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       14px 16px;
  background:    rgba(212,170,120,.1);
  border:        1px solid rgba(212,170,120,.3);
  border-radius: var(--radius-md);
  font-size:     14px;
  color:         var(--color-text-muted);
  margin-bottom: 16px;
}

.co-login-notice svg { color: var(--color-accent); flex-shrink: 0; }
.co-login-notice a   { color: var(--color-accent); font-weight: 600; }

/* ── Fatura Toggle ───────────────────────────────────────── */

.co-checkbox {
  display:     flex;
  align-items: center;
  gap:         10px;
  cursor:      pointer;
  font-size:   14px;
  color:       var(--color-text-muted);
  user-select: none;
}

/* Görsel olarak gizli ama klavyeyle erişilebilir (Tab + Boşluk) */
.co-checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.co-checkbox input:focus-visible + .co-checkbox__box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.co-checkbox { position: relative; }
.co-checkbox--agreement { cursor: default; align-items: flex-start; }
.co-checkbox--agreement .co-checkbox__box { cursor: pointer; margin-top: 2px; }
.co-checkbox__label { cursor: pointer; color: var(--color-text); }

.co-checkbox__box {
  width:         18px;
  height:        18px;
  border:        2px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-shrink:   0;
  transition:    border-color var(--transition), background var(--transition);
  position:      relative;
}

.co-checkbox input:checked + .co-checkbox__box {
  background:    var(--color-dark);
  border-color:  var(--color-dark);
}

.co-checkbox input:checked + .co-checkbox__box::after {
  content:    '';
  position:   absolute;
  top:        2px;
  left:       5px;
  width:      5px;
  height:     9px;
  border:     2px solid #fff;
  border-top: none;
  border-left: none;
  transform:  rotate(45deg);
}

/* ── Özet Paneli ─────────────────────────────────────────── */
.co-summary {
  position:      sticky;
  top:           calc(var(--header-h) + 20px);
}

.co-summary__inner {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding:       24px;
}

.co-summary__title {
  font-family:   var(--font-serif);
  font-size:     18px;
  font-weight:   700;
  margin-bottom: 16px;
}

.co-summary__items {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  margin-bottom:  16px;
  padding-bottom: 16px;
  border-bottom:  1px solid var(--color-border);
  max-height:     280px;
  overflow-y:     auto;
}

.co-summary__item {
  display:     flex;
  align-items: center;
  gap:         12px;
}

.co-summary__item-img {
  width:         56px;
  height:        56px;
  object-fit:    cover;
  border-radius: var(--radius-md);
  flex-shrink:   0;
  background:    var(--color-bg);
  border:        1px solid var(--color-border);
}

.co-summary__item-img--empty {
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       22px;
}

.co-summary__item-info { flex: 1; min-width: 0; }

.co-summary__item-name {
  font-size:     13px;
  font-weight:   600;
  line-height:   1.3;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.co-summary__item-opts {
  font-size: 11px;
  color:     var(--color-text-muted);
  margin-top: 2px;
}

.co-summary__item-qty {
  font-size: 11px;
  color:     var(--color-text-light);
  margin-top: 2px;
}

.co-summary__item-price {
  font-size:   13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Toplamlar */
.co-summary__totals {
  display:        flex;
  flex-direction: column;
  gap:            8px;
  margin-bottom:  12px;
  padding-bottom: 12px;
  border-bottom:  1px solid var(--color-border);
}

.co-summary__row {
  display:         flex;
  justify-content: space-between;
  font-size:       13px;
  color:           var(--color-text-muted);
}

.co-free { color: var(--color-success); font-weight: 600; }

.co-summary__total {
  display:         flex;
  justify-content: space-between;
  font-size:       18px;
  font-weight:     700;
  margin-bottom:   20px;
}

/* Güven */



/* Submit */
.co-submit {
  width:         100%;
  padding:       16px;
  font-size:     15px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  gap:           8px;
  margin-bottom: 12px;
  position:      relative;
  overflow:      hidden;
}

.co-submit:disabled {
  opacity:        .7;
  cursor:         not-allowed;
  pointer-events: none;
}

/* Loading spinner — submit'e eklenir */
.co-submit.is-loading svg:not(.co-submit__spinner) { display: none; }

.co-submit__spinner {
  display:          none;
  width:            18px;
  height:           18px;
  border:           2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius:    50%;
  animation:        coSpinner .7s linear infinite;
}

.co-submit.is-loading .co-submit__spinner { display: block; }

@keyframes coSpinner {
  to { transform: rotate(360deg); }
}

.co-submit-note {
  font-size:  12px;
  color:      var(--color-text-light);
  text-align: center;
  line-height: 1.6;
}

.co-submit-note a { color: var(--color-accent); }

/* ── BAŞARI SAYFASI ──────────────────────────────────────── */
.co-success { padding: 64px 0 96px; }

.co-success__card {
  max-width:     560px;
  margin:        0 auto;
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding:       48px 40px;
  text-align:    center;
}

.co-success__icon {
  width:           80px;
  height:          80px;
  border-radius:   50%;
  background:      rgba(34,197,94,.1);
  color:           var(--color-success);
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin:          0 auto 24px;
}

.co-success__title {
  font-family:    var(--font-serif);
  font-size:      clamp(24px, 3vw, 30px);
  font-weight:    700;
  margin-bottom:  10px;
}

.co-success__sub {
  font-size:     15px;
  color:         var(--color-text-muted);
  margin-bottom: 28px;
}

.co-success__spam {
  display:    block;
  margin-top: 6px;
  font-size:  13px;
}

.co-success__order-no {
  display:       flex;
  flex-direction: column;
  gap:           4px;
  padding:       16px;
  background:    var(--color-bg);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.co-success__order-label {
  font-size: 12px;
  color:     var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.co-success__order-val {
  font-size:   20px;
  font-weight: 700;
  letter-spacing: .05em;
  color:       var(--color-accent);
}

.co-success__details {
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow:      hidden;
  margin-bottom: 24px;
  text-align:    left;
}

.co-success__detail-row {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         12px 16px;
  font-size:       14px;
  border-bottom:   1px solid var(--color-border);
}

.co-success__detail-row:last-child { border-bottom: none; }
.co-success__detail-row span { color: var(--color-text-muted); }

.co-success__total { font-size: 16px; color: var(--color-accent); }
.co-success__status { color: var(--color-warning, #f59e0b); }

.co-success__info {
  display:       flex;
  align-items:   flex-start;
  gap:           10px;
  padding:       14px 16px;
  background:    rgba(212,170,120,.08);
  border:        1px solid rgba(212,170,120,.25);
  border-radius: var(--radius-md);
  font-size:     13px;
  color:         var(--color-text-muted);
  text-align:    left;
  line-height:   1.6;
  margin-bottom: 20px;
}

.co-success__info svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.co-success__whatsapp {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         12px 20px;
  background:      #25d366;
  color:           #fff;
  border-radius:   var(--radius-md);
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  margin-bottom:   24px;
  transition:      background var(--transition);
}

.co-success__whatsapp:hover { background: #1dbb5a; }

/* ── Input focus ring standardı ──────────────────────────── */
.co-field__input:focus,
.co-field__select:focus {
  border-color: var(--color-dark);
  box-shadow:   0 0 0 3px rgba(26,26,26,.08);
  background:   var(--color-surface);
}

/* ── Kupon Alanı ─────────────────────────────────────────── */
.co-coupon {
  border:        1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding:       14px 16px;
  margin-bottom: 12px;
  background:    var(--color-bg);
}

.co-coupon__label {
  display:       block;
  font-size:     12px;
  font-weight:   600;
  color:         var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.co-coupon__row {
  display: flex;
  gap:     8px;
}

.co-coupon__input {
  flex:          1;
  height:        40px;
  padding:       0 12px;
  border:        1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size:     14px;
  font-family:   monospace;
  font-weight:   600;
  letter-spacing: .05em;
  color:         var(--color-dark);
  background:    var(--color-surface);
  transition:    border-color var(--transition);
}

.co-coupon__input:focus {
  outline:      none;
  border-color: var(--color-accent);
  box-shadow:   0 0 0 3px rgba(193,138,90,.12);
}

.co-coupon__btn {
  height:        40px;
  padding:       0 16px;
  background:    var(--color-accent);
  color:         #fff;
  border:        none;
  border-radius: var(--radius-sm);
  font-size:     13px;
  font-weight:   600;
  cursor:        pointer;
  white-space:   nowrap;
  transition:    background var(--transition), opacity var(--transition);
}

.co-coupon__btn:hover    { background: var(--color-accent-dark, #a8744a); }
.co-coupon__btn:disabled { opacity: .6; cursor: not-allowed; }

.co-coupon__error {
  font-size:   12px;
  color:       var(--color-error, #dc2626); /* DENETIM-MUSTERI: tanımsız --co-success yerine hata rengi */
  margin-top:  6px;
  min-height:  16px;
}
/* Kupon uygulandığında (form gizli) boş hata satırı kutunun altında boşluk bırakmasın */
#couponForm[hidden] + .co-coupon__error:empty { display: none; }

/* Kupon uygulandı durumu */
.co-coupon__applied {
  display:     flex;
  align-items: center;
  justify-content: space-between;
}

.co-coupon__applied-info {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   14px;
  color:       #15803d;
}

.co-coupon__applied-info svg { color: #16a34a; flex-shrink: 0; }

.co-coupon__code {
  font-family:   monospace;
  font-weight:   700;
  letter-spacing: .05em;
}


.co-coupon__remove {
  width:         28px;
  height:        28px;
  border:        1px solid var(--color-border);
  border-radius: 50%;
  background:    var(--color-surface);
  cursor:        pointer;
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--color-text-muted);
  transition:    border-color var(--transition), color var(--transition);
  flex-shrink:   0;
}

.co-coupon__remove:hover {
  border-color: var(--co-danger, #ef4444);
  color:        var(--co-danger, #ef4444);
}

/* İndirim satırı */
.co-summary__row--discount {
  padding-top: 4px;
}

/* Mobil */
@media (max-width: 480px) {
  .co-coupon__btn { padding: 0 12px; font-size: 12px; }
}
/* Kupon kutusu (input'un doğal genişliği) ızgara sütununu ~350 px'e zorluyordu → 320–360 px telefonda
   ödeme sayfası yatay taşıyor, tarayıcı sayfayı uzaklaştırıyordu */
.co-coupon__input { min-width: 0; }
.co-layout > * { min-width: 0; }

/* Select custom ok ikonu */
.co-field__select {
  height:        44px;
  padding:       0 40px 0 14px;
  border:        1.5px solid var(--color-border);
  border-radius: var(--radius-base);
  font-size:     14px;
  color:         var(--color-text);
  background:    var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance:    none;
  outline:       none;
  transition:    border-color var(--transition), box-shadow var(--transition);
  width:         100%;
  box-sizing:    border-box;
  cursor:        pointer;
}

/* Adım stepper premium ── */
.co-steps {
  padding:        24px 0 32px;
  display:        flex;
  justify-content: center;
}

.co-steps__list {
  display:     flex;
  align-items: center;
  gap:         0;
}

.co-step {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  position:       relative;
}

/* Bağlayıcı çizgi */
.co-step:not(:last-child)::after {
  content:    '';
  position:   absolute;
  top:        16px;
  left:       calc(50% + 16px);
  width:      calc(100% - 32px + 40px);
  height:     2px;
  background: var(--color-border);
  z-index:    0;
}

.co-step--done:not(:last-child)::after  { background: var(--color-accent); }
.co-step--active:not(:last-child)::after { background: var(--color-border); }

.co-step__num {
  width:           32px;
  height:          32px;
  border-radius:   50%;
  background:      var(--color-bg);
  border:          2px solid var(--color-border);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       13px;
  font-weight:     700;
  color:           var(--color-text-light);
  position:        relative;
  z-index:         1;
  transition:      background var(--transition), border-color var(--transition), color var(--transition);
}

.co-step--done .co-step__num {
  background:   var(--color-accent);
  border-color: var(--color-accent);
  color:        #fff;
}

.co-step--active .co-step__num {
  background:   var(--color-dark);
  border-color: var(--color-dark);
  color:        #fff;
  box-shadow:   0 0 0 4px rgba(26,26,26,.12);
}

.co-step__label {
  font-size:   12px;
  font-weight: 600;
  color:       var(--color-text-light);
  white-space: nowrap;
}

.co-step--active .co-step__label { color: var(--color-dark); }
.co-step--done .co-step__label   { color: var(--color-accent); }

.co-success__actions {
  display:  flex;
  gap:      12px;
  flex-wrap: wrap;
  justify-content: center;
}

.co-success__actions .btn { flex: 1; min-width: 160px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
}

@media (max-width: 640px) {
  .co-section        { padding: 24px 0 56px; }
  .co-card           { padding: 18px; }
  .co-fields         { grid-template-columns: 1fr; }
  .co-field--full    { grid-column: 1; }
  .co-steps__list    { gap: 0; }
  .co-step__label    { display: none; }
  .co-success__card  { padding: 28px 20px; }
  .co-success__actions .btn { min-width: 120px; }
}

/* ── Stepper 320px overflow düzeltmesi ───────────────────── */
@media (max-width: 375px) {
  /* Bağlayıcı çizgiyi kısalt */
  .co-step:not(:last-child)::after {
    width: calc(100% - 20px + 20px);
    left:  calc(50% + 14px);
  }

  .co-step__num { width: 28px; height: 28px; font-size: 12px; }
  .co-card      { padding: 14px; }
  .co-field__input,
  .co-field__select { height: 48px; } /* iOS touch alanı */
}

@media (max-width: 320px) {
  /* Stepper yalnız sayı — tamamen kompakt */
  .co-steps__list { gap: 0; overflow: hidden; }
  .co-step        { flex: 1; }
  .co-step:not(:last-child)::after {
    width:  100%;
    left:   50%;
    right:  auto;
  }
  .co-step__num   { width: 26px; height: 26px; font-size: 11px; }
  .co-card        { padding: 12px; border-radius: var(--radius-base); }
  .co-section     { padding: 16px 0 40px; }
}
/* ============================================================
   Ödeme v2 — bölüm numaraları, adres seçimi, fatura tipi,
   ödeme yöntemleri, sözleşmeler, havale bilgileri
   ============================================================ */
ol.co-steps__list { list-style: none; margin: 0; padding: 0; }
fieldset.co-card { border: 1px solid var(--color-border); min-width: 0; margin: 0 0 20px; }
fieldset.co-card > legend.co-card__title { float: left; width: 100%; padding: 0; margin-bottom: 18px; }
fieldset.co-card > legend + * { clear: both; }
.co-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-dark); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px;
}
.co-opt { font-weight: 400; color: var(--color-text-light); font-size: 12px; }
.co-field__hint { margin: 6px 0 0; font-size: 12px; color: var(--color-text-light); line-height: 1.5; }
.co-field__select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b6560' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.co-field--error .co-field__input { border-color: var(--color-error); }
.co-card.co-field--error { border-color: var(--color-error); }
.co-checkbox--mt { margin-top: 18px; }
.co-checkbox--small { font-size: 13px; color: var(--color-text-muted); margin-top: 10px; }

.co-saved-addresses { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.co-saved-address {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-base);
  background: var(--color-surface); cursor: pointer; font: inherit; text-align: left;
  transition: border-color var(--transition), background var(--transition);
}
.co-saved-address span { font-size: 12px; color: var(--color-text-muted); }
.co-saved-address.is-active, .co-saved-address:hover { border-color: var(--color-accent); background: var(--color-accent-bg); }

.co-segment { display: inline-flex; padding: 4px; background: var(--color-bg); border-radius: var(--radius-full); gap: 4px; }
.co-segment__opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-segment__opt span {
  display: block; padding: 8px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  color: var(--color-text-muted); cursor: pointer; transition: all var(--transition);
}
.co-segment__opt input:checked + span { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.co-segment__opt input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.co-pay-methods { display: grid; gap: 12px; }
.co-pay-method { position: relative; display: block; cursor: pointer; }
.co-pay-method input { position: absolute; top: 20px; left: 18px; accent-color: var(--color-dark); width: 18px; height: 18px; }
.co-pay-method__body {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 50px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md); transition: all var(--transition);
}
.co-pay-method input:checked + .co-pay-method__body { border-color: var(--color-dark); background: var(--color-bg); }
.co-pay-method__title { font-weight: 600; font-size: 15px; }
.co-pay-method__desc  { font-size: 13px; color: var(--color-text-muted); }
.co-pay-method__logos { font-size: 11px; letter-spacing: .06em; color: var(--color-text-light); text-transform: uppercase; margin-top: 2px; }
.co-empty-note { color: var(--color-warning); font-size: 14px; }

.co-summary__count { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--color-text-light); margin-left: 6px; }
dl.co-summary__totals { margin: 0; }
dl.co-summary__totals dt, dl.co-summary__totals dd { margin: 0; }
.co-summary__vat { margin: 6px 0 18px; font-size: 12px; color: var(--color-text-light); text-align: right; }
.co-coupon__applied-info { font-size: 13px; }
.co-coupon__remove { background: none; border: 0; color: var(--color-error); font-size: 13px; cursor: pointer; text-decoration: underline;
  width: auto; height: auto; min-width: 44px; min-height: 40px; padding: 0 6px; margin: -6px -6px -6px 0; border-radius: 6px; } /* dokunma alanı ≥40px (görünüm aynı) */

.co-agreements { padding: 14px; border-radius: var(--radius-base); background: var(--color-bg); margin-bottom: 16px; font-size: 13px; line-height: 1.55; }
.co-agreements a { color: var(--color-accent-dark); text-decoration: underline; }
.co-agreements.co-field--error { outline: 1.5px solid var(--color-error); }
.co-agreements__kvkk { margin: 10px 0 0; color: var(--color-text-muted); font-size: 12px; }
.co-delivery-note { margin-top: 12px; font-size: 12px; color: var(--color-text-muted); text-align: center; }

.co-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.co-dialog::backdrop { background: rgba(20, 18, 15, .55); }
.co-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: #fff; }
.co-dialog__head h2 { margin: 0; font-family: var(--font-serif); font-size: 20px; }
.co-dialog__close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--color-text-muted); }
.co-dialog__body { padding: 20px 24px; overflow-y: auto; max-height: calc(100vh - 210px); }
.co-dialog__foot { padding: 14px 24px; border-top: 1px solid var(--color-border); text-align: right; position: sticky; bottom: 0; background: #fff; }

.legal-doc { font-size: 13.5px; line-height: 1.65; color: var(--color-text); }
.legal-doc h3 { font-family: var(--font-serif); font-size: 18px; margin: 0 0 12px; text-align: center; }
.legal-doc h4 { font-size: 14px; margin: 18px 0 8px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.legal-doc th, .legal-doc td { border: 1px solid var(--color-border); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal-doc__kv th { width: 34%; background: var(--color-bg); font-weight: 600; }
.legal-doc__lines thead th, .legal-doc__lines tfoot th { background: var(--color-bg); }

.co-success__icon--pending { color: var(--color-warning); background: var(--color-warning-bg); }
.co-success__icon--error   { color: var(--color-error);   background: var(--color-error-bg); }
.co-success__status.is-paid { color: var(--color-success); }
.co-success__items { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--color-border); }
.co-success__items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; text-align: left; }
.co-success__items img { border-radius: var(--radius-sm); object-fit: cover; }
.co-success__item-name { flex: 1; }
.co-success__item-name small { display: block; color: var(--color-text-light); font-size: 12px; }
.co-success__register { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--color-accent-bg); border-radius: var(--radius-base); margin-bottom: 16px; text-align: left; font-size: 13px; }
.co-success__register p { margin: 0; }

.co-bank { text-align: left; border: 1.5px solid var(--color-accent); border-radius: var(--radius-md); padding: 18px; margin: 0 0 20px; background: var(--color-accent-bg); }
.co-bank__title { font-family: var(--font-serif); font-size: 18px; margin: 0 0 8px; }
.co-bank__lead { font-size: 14px; margin: 0 0 12px; }
.co-bank__acc { background: #fff; border-radius: var(--radius-base); padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 6px; font-size: 13px; }
.co-bank__acc div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.co-bank__acc span { color: var(--color-text-muted); min-width: 52px; }
.co-bank__iban strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.co-bank__copy { margin-left: auto; padding: 4px 10px; font-size: 12px; border: 1px solid var(--color-border-dark); border-radius: var(--radius-full); background: #fff; cursor: pointer; }
.co-bank__note { font-size: 12px; color: var(--color-text-muted); margin: 8px 0 0; }

.co-pay-frame { max-width: 760px; }
.co-pay-frame__head h1 { font-family: var(--font-serif); font-size: 26px; margin: 0 0 6px; }
.co-pay-frame__head p { color: var(--color-text-muted); margin: 0 0 18px; }
.co-pay-frame__iframe { width: 100%; min-height: 600px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.co-pay-frame__note { font-size: 12px; color: var(--color-text-light); text-align: center; margin-top: 10px; }
.co-test-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); background: var(--color-warning-bg); color: var(--color-warning); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

@media (max-width: 640px) {
  .co-segment { display: flex; }
  .co-segment__opt { flex: 1; text-align: center; }
  .co-success__register { flex-direction: column; align-items: flex-start; }
  .co-dialog__body { padding: 16px; }
}

.co-dialog { margin: auto; inset: 0; }
.co-dialog[open] { display: flex; flex-direction: column; }


/* ── Sipariş sayfası: ilerleme adımları + teslimat bilgisi ─────────── */
.ord-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.ord-steps::before { content: ''; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--color-border); }
.ord-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ord-steps__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--color-surface, #fff); border: 2px solid var(--color-border); color: var(--color-text-muted, #888); position: relative; z-index: 1; }
.ord-steps__item.is-done .ord-steps__dot { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.ord-steps__item.is-current .ord-steps__dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.ord-steps__label { font-size: 12px; color: var(--color-text-muted, #888); line-height: 1.3; }
.ord-steps__item.is-done .ord-steps__label { color: var(--color-text); font-weight: 600; }
.co-ship { border: 1px solid var(--color-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; background: var(--color-bg, #faf8f5); }
.co-ship__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.co-ship__row span { color: var(--color-text-muted, #888); }
.co-ship__row a { color: var(--color-accent); text-decoration: underline; }
@media (max-width: 420px) { .ord-steps__label { font-size: 11px; } }

/* İlçe seçimi: il seçilmeden pasif, yer tutucu soluk */
.co-field__select:disabled { opacity: .55; cursor: not-allowed; background-color: var(--color-bg); }
.co-field__select.is-placeholder { color: var(--color-text-light); }
.co-field__select option { color: var(--color-text); }


/* ══ UX-MAGAZA (2026-10-12) ═════════════════════════════════════════════
   1) Adım göstergesi: iki ayrı çizgi sistemi (.co-step::after + .co-step__sep) üst üste çiziliyordu
      (biri daireye değmiyor, diğeri dairelerin altından geçiyordu) → tek çizgi: .co-step__sep, daire merkezinde,
      daireden daireye; tamamlanan adımın ardından marka renginde. */
.co-step:not(:last-child)::after { content: none; }
.co-steps__list { max-width: none; }
.co-step { width: 132px; }
.co-step__sep {
  flex: 0 0 156px; min-width: 0; height: 2px; align-self: flex-start;
  margin: 15px -50px 0; background: var(--color-border); position: relative; z-index: 0;
}
.co-step--done + .co-step__sep { background: var(--color-accent); }
@media (max-width: 640px) {
  .co-step { width: auto; }
  .co-step__sep { flex: 0 0 56px; margin: 15px 8px 0; }
}
@media (max-width: 375px) { .co-step__sep { margin-top: 13px; } }
@media (max-width: 320px) { .co-steps__list { overflow: visible; } .co-step { flex: 0 0 auto; } .co-step__sep { flex-basis: 44px; margin-top: 12px; } }

/* 2) Kupon alanı: yer tutucu "Kupon  kodu" eş aralıklı (monospace) yazıyla dağınık görünüyordu;
      yazılan kod yine eş aralıklı kalır, yer tutucu sayfanın yazı tipiyle */
.co-coupon__input::placeholder { font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; color: var(--color-text-light); }

/* 3) Sipariş tamamlandı: yeşil "WhatsApp ile bize ulaşın" düğmesi sayfanın en baskın öğesiydi (beyaz yazı #25d366
      üstünde 2,0:1 — okunmuyordu) ve asıl sonraki adım "Siparişi Görüntüle" ile yarışıyordu → sakin ikincil düğme */
.co-success__whatsapp {
  background: #f0fdf4; color: #166534; border: 1.5px solid #bbf7d0;
  padding: 11px 20px; margin-bottom: 16px;
}
.co-success__whatsapp:hover { background: #dcfce7; color: #14532d; }

/* 4) 12 px altı bilgi yazıları (KOL-SON SON-10'dan devralındı): sipariş özeti adedi, sipariş adımları (≤420 px) */
.co-summary__item-qty { font-size: 12px; }
@media (max-width: 420px) { .ord-steps__label { font-size: 12px; } }
/* ══ UX-MAGAZA — sahip onayı (2026-10-12) ══════════════════════════════
   A) Sade ödeme üst/alt bilgisi (layouts/checkout-header.php, checkout-footer.php; body.page-checkout) */
body.page-checkout { padding-top: 0 !important; }
.co-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.co-header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.co-header__logo { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-dark); }
.co-header__logo .site-logo__mark { color: var(--color-accent-dark, #84522b); display: inline-flex; }
.co-header__logo .site-logo__text { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: .5px; color: var(--color-dark); }
.co-header__logo .site-logo__home { color: var(--color-accent); letter-spacing: 2.5px; font-weight: 500; }
.co-header__secure { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 600; color: #166534; white-space: nowrap; }
.co-header__help { display: inline-flex; align-items: center; gap: 6px; padding-left: 20px; border-left: 1px solid var(--color-border); }
.co-header__help-label { font-size: 13px; color: var(--color-text-muted); margin-right: 4px; }
.co-header__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--color-border); color: var(--color-dark); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.co-header__link:hover { border-color: var(--color-dark); background: var(--color-bg); }
.co-header__link--wa svg { color: #107a3f; }
@media (max-width: 860px) { .co-header__help-label { display: none; } .co-header__help { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) {
  .co-header__inner { gap: 8px; min-height: 60px; }
  .co-header__logo .site-logo__text { font-size: 18px; }
  .co-header__logo .site-logo__mark svg { width: 28px; height: 28px; }
  .co-header__secure { font-size: 13px; }
  .co-header__link { width: 44px; padding: 0; justify-content: center; }
  .co-header__link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 420px) { .co-header__secure span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .co-header__logo .site-logo__text { font-size: 16px; } }
.co-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); margin-top: 24px; }
.co-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-size: 13px; color: var(--color-text-muted); }
.co-footer__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.co-footer__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--color-text-muted); text-decoration: none; }
.co-footer__link:hover { color: var(--color-dark); text-decoration: underline; }
.co-footer__btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }

/* B) Telefonda/tablette (≤900 px, özet formun altına düşünce) formun üstünde açılır özet şeridi; masaüstünde yok */
.co-mini-sum { display: none; }
@media (max-width: 900px) {
  .co-mini-sum { display: block; margin-bottom: 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); }
  .co-mini-sum__bar {
    display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none;
    font-size: 14px; color: var(--color-text);
  }
  .co-mini-sum__bar::-webkit-details-marker { display: none; }
  .co-mini-sum__title { font-weight: 700; }
  .co-mini-sum__count { color: var(--color-text-muted); }
  .co-mini-sum__total { margin-left: auto; font-size: 16px; font-weight: 800; color: var(--color-dark); white-space: nowrap; }
  .co-mini-sum__chev { flex-shrink: 0; transition: transform .2s ease; color: var(--color-text-muted); }
  .co-mini-sum[open] .co-mini-sum__chev { transform: rotate(180deg); }
  .co-mini-sum__bar:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-card); }
  .co-mini-sum__body { padding: 4px 16px 14px; border-top: 1px solid var(--color-border); }
  .co-mini-sum__items { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-direction: column; gap: 10px; }
  .co-mini-sum__items li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
  .co-mini-sum__items img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
  .co-mini-sum__name { flex: 1; min-width: 0; }
  .co-mini-sum__name small { display: block; font-size: 12px; color: var(--color-text-muted); }
  .co-mini-sum__price { font-weight: 700; white-space: nowrap; }
  .co-mini-sum__totals { margin: 6px 0 0; padding-top: 10px; border-top: 1px dashed var(--color-border); display: flex; flex-direction: column; gap: 6px; }
  .co-mini-sum__totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--color-text-muted); }
  .co-mini-sum__totals > div[hidden] { display: none; }
  .co-mini-sum__totals dd { margin: 0; color: var(--color-text); }
  .co-mini-sum__grand { padding-top: 6px; font-weight: 800; }
  .co-mini-sum__grand dt, .co-mini-sum__grand dd { color: var(--color-dark) !important; font-size: 16px; }
  .co-mini-sum__vat { margin: 6px 0 0; font-size: 12px; color: var(--color-text-light); text-align: right; }
}

/* C) Tüm "Uygula" düğmeleri aynı ikincil görünüm (birincil yalnız Sepete Ekle / Siparişi Onayla): çerçeveli, yanındaki
      kutuyla aynı yükseklik. Kupon: kutu ile düğme aynı satırda, birlikte uzar. */
.co-coupon__row { align-items: stretch; }
.co-coupon__btn {
  height: auto; min-height: 40px; background: var(--color-surface); color: var(--color-dark);
  border: 1.5px solid var(--color-border-dark); border-radius: var(--radius-sm);
}
.co-coupon__btn:hover { background: var(--color-bg); border-color: var(--color-dark); color: var(--color-dark); }
/* KOL-KARAR2: ödeme alt bilgisindeki "Satıcı:" etiketi */
.co-footer__label { color: var(--color-text-muted); font-weight: 400; }

/* 2026-10-19: Hesabım ile aynı 5 adımlı durum çizgisi (Alındı → Onaylandı → Hazırlanıyor → Kargoda → Teslim edildi) */
.ord-steps--5 { grid-template-columns: repeat(5, 1fr); }
.ord-steps--5::before { left: 10%; right: 10%; }
@media (max-width: 420px) { .ord-steps--5 .ord-steps__label { font-size: 10.5px; } .ord-steps--5 .ord-steps__dot { width: 28px; height: 28px; } .ord-steps--5::before { top: 13px; } }
