/* Randevulu teslimat (çiçek / hediye) ve kart mesajı — bütün temalarda; işaretleme yalnızca Ayarlar › Kargo › Randevulu Teslimat /
   Kart Mesajı açıkken basılır (delivery.js, product.js, checkout.js). Kapalıyken bu dosyadaki kuralların hiçbiri bir öğeye uymaz.
   - Ürün sayfası: .dlv-box > .dlv-h, .dlv-region (select ×2), .dlv-msg.is-ok|is-cargo|is-no, .dlv-days > .dlv-day (.is-on, .is-off, .dlv-cal),
     .dlv-slots[data-n] > .dlv-slot (.is-on, .is-off), .dlv-note
   - Kart / liste: .tag.tag-today (“Bugün teslim”), .tag.tag-today.is-tomorrow (“Yarın teslim”) — mevcut .tags satırında (yeni satır yok)
   - Ödeme: .co-dlv (Teslimat Zamanı kartı), .co-msg > .card-msg (.card-msg-tpl, .card-msg-count, .card-msg-from, .card-msg-anon),
     .co-rcpt-chk / .co-rcpt (alıcı telefonu); özet ve sipariş tamamlandı: .dlv-sum, .card-msg-sum
   Renkler temadan (--brand, --text, --muted, --line, --soft, --bg, --green, --green-soft, --red, --red-soft, --radius). Temalar şu değişkenleri
   :root'ta tanımlayarak özelleştirebilir: --dlv-accent (seçili çip), --dlv-soft (seçili çip zemini), --dlv-ok / --dlv-ok-soft (uygun mesajı). */

/* ---------- Ürün sayfası kutusu ---------- */
.dlv-box {
  margin-top: 20px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: min(var(--radius, 8px), 12px);
  background: var(--bg, #fff); color: var(--text); font-size: 13.5px; line-height: 1.45;
}
.live-box + .dlv-box { margin-top: 12px; }
.dlv-box + .ship-card { margin-top: 12px; }
.dlv-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.dlv-h b { font-size: 14.5px; font-weight: 600; }
.dlv-h span { color: var(--muted); font-size: 12.5px; }
.dlv-region { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dlv-region select {
  width: 100%; min-width: 0; height: 42px; padding: 0 34px 0 12px; border: 1px solid #CFCFCF; border-radius: min(var(--radius, 6px), 8px); outline: 0;
  appearance: none; -webkit-appearance: none; color: var(--text); font: inherit; font-size: 14px; text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px;
}
.dlv-region select:focus { border-color: var(--brand); }
.dlv-region select:disabled { background-color: var(--soft); color: #999; }
.dlv-msg {
  margin: 10px 0 0; padding: 9px 11px; border-radius: min(var(--radius, 6px), 8px); background: var(--soft); color: var(--text); font-size: 13px; line-height: 1.45;
}
.dlv-msg b { font-weight: 600; }
.dlv-msg.is-ok { background: var(--dlv-ok-soft, var(--green-soft, #E7F5EC)); color: var(--dlv-ok, var(--green, #1E874B)); }
.dlv-msg.is-ok b { color: inherit; }
.dlv-msg.is-no { background: var(--red-soft, #FDECEC); color: var(--red, #E0151F); }
.dlv-note { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.dlv-msg .dlv-note { display: inline; margin: 0; color: inherit; opacity: .85; }

/* ---------- Gün ve saat çipleri (ürün sayfası ve ödeme ortak) ---------- */
.dlv-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.dlv-day, .dlv-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; margin: 0;
  border: 1.5px solid var(--line); border-radius: min(var(--radius, 6px), 10px); background: #fff; color: var(--text); font: inherit; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dlv-day { height: 56px; padding: 4px 2px; }
.dlv-day small, .dlv-slot small { display: block; max-width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.dlv-day b { display: block; max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.dlv-day i { display: none; }
.dlv-day:hover:not(:disabled), .dlv-slot:hover:not(:disabled), .dlv-cal:hover { border-color: #BDBDBD; }
.dlv-day.is-on, .dlv-slot.is-on, .dlv-cal.is-on { border-color: var(--dlv-accent, var(--brand)); background: var(--dlv-soft, color-mix(in srgb, var(--dlv-accent, var(--brand)) 6%, #fff)); }
.dlv-day.is-on small, .dlv-slot.is-on small { color: var(--dlv-accent, var(--brand)); }
.dlv-day.is-off, .dlv-slot.is-off { background: var(--soft); cursor: not-allowed; opacity: .55; }
.dlv-day.is-off b, .dlv-slot.is-off b { color: var(--muted); font-weight: 500; }
.dlv-cal { overflow: hidden; }
.dlv-cal input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.dlv-cal input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; cursor: pointer; }
.dlv-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.dlv-slots[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.dlv-slots[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dlv-slots[data-n="3"], .dlv-slots[data-n="5"], .dlv-slots[data-n="6"], .dlv-slots[data-n="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dlv-slot { height: 50px; padding: 4px; }
.dlv-slot b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Ödeme: Teslimat Zamanı, alıcı telefonu, kart mesajı ---------- */
.co-dlv .dlv-days { margin-top: 0; }
.co-dlv [data-field="dlv"] { gap: 0; }
.co-dlv [data-field="dlv"] > .msg { margin-top: 8px; }
.co-dlv .dlv-note { margin-top: 10px; }
.co-dlv .dlv-msg { margin-top: 0; }
.co-rcpt-chk { margin-top: 2px; }
.card-msg-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.card-msg-tpl button {
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.card-msg-tpl button:hover { border-color: var(--dlv-accent, var(--brand)); background: var(--dlv-soft, color-mix(in srgb, var(--dlv-accent, var(--brand)) 5%, #fff)); }
.card-msg .f textarea { min-height: 104px; }
.card-msg-count { margin: -2px 0 0; color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.card-msg-from { margin-top: 14px; align-items: end; }
.card-msg-anon { align-items: center; min-height: 46px; }
.card-msg-from input:disabled { background: var(--soft); color: #999; }
.dlv-sum { font-weight: 500; color: var(--text); }
.card-msg-sum { color: var(--muted); font-style: italic; overflow-wrap: anywhere; }

/* ---------- Kart etiketi: Yarın teslim (Bugün teslim .tag-red ile aynı renkte) ---------- */
.tag.tag-today.is-tomorrow { background: var(--soft); color: var(--text); }

@media (max-width: 640px) {
  .dlv-box { padding: 12px 14px 14px; font-size: 13px; }
  .dlv-days { gap: 5px; }
  .dlv-day { height: 52px; }
  .dlv-day b { font-size: 12.5px; }
  .dlv-slots, .dlv-slots[data-n="3"], .dlv-slots[data-n="5"], .dlv-slots[data-n="6"], .dlv-slots[data-n="9"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlv-slots[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
  .card-msg-anon { min-height: 0; }
}
