/**
 * HIZLI SİPARİŞ POPUP'I (.ce-qo)
 *
 * Kart dilinin devamı: beyaz panel, lacivert başlık/fiyat, tema yeşili
 * seçimler ve butonlar. Masaüstü: ortalanmış ~500px modal.
 * Mobil: temanın bottom-sheet deseni (alttan tam genişlik).
 */

.ce-qo {
	--card-primary: #2e3a59;
	--card-accent: var(--ce-green, #12a150);
	--card-accent-dark: var(--ce-green-dark, #0d7d3e);
	--card-accent-soft: var(--ce-green-light, #e7f6ee);
	--card-muted: #8a94a6;
	--card-border: #e9ebf0;
}

.ce-qo:not([hidden]) {
	position: fixed;
	inset: 0;
	/* Konum bottom-sheet'i (100002) bunun ÜSTÜNDE açılır. */
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ce-qo__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 40, 0.55);
}

.ce-qo__panel {
	position: relative;
	width: 100%;
	max-width: 500px;
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(15, 22, 41, 0.3);
	overflow: hidden;
	/* Hafif açılış: içerik zaten gömülü olduğundan animasyon kısa tutulur. */
	animation: ce-qo-in 0.13s ease-out;
}

@keyframes ce-qo-in {
	from { transform: scale(0.98); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* ---------- Üst: görsel + ad + fiyat + X ---------- */
.ce-qo__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--card-border);
	flex-shrink: 0;
}

.ce-qo__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ce-bg-soft, #f7f7f7);
	line-height: 0;
	display: block;
}

.ce-qo__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ce-qo__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ce-qo__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--card-primary);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ce-qo__pricerow {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.ce-qo__old {
	font-size: 13px;
	color: var(--card-muted);
	text-decoration: line-through;
	white-space: nowrap;
}

.ce-qo__old .woocommerce-Price-amount {
	text-decoration: inherit;
}

.ce-qo__price {
	font-size: 19px;
	font-weight: 800;
	color: var(--card-primary);
	white-space: nowrap;
}

.ce-qo__price .woocommerce-Price-amount {
	color: inherit;
}

.ce-qo__close {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
}

.ce-qo__close:hover {
	background: #f2f4f8;
}

.ce-qo__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #6b7488;
	stroke-width: 1.9;
	stroke-linecap: round;
}

/* ---------- Yükleniyor / hata ----------
   Popup tıklama anında AÇILIR, veri sonra dolar: buton hiçbir koşulda düz
   link gibi davranmaz. Veri gelmezse popup açık kalır ve hata görünür. */
.ce-qo__loading {
	display: none;
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	font-size: 14px;
	color: var(--card-muted);
}

.ce-qo.is-loading .ce-qo__loading {
	display: block;
}

.ce-qo.is-loading .ce-qo__body,
.ce-qo.is-loading .ce-qo__foot {
	display: none;
}

.ce-qo__error {
	margin: 0;
	padding: 14px 16px;
	font-size: 13.5px;
	color: var(--ce-danger, #e0234e);
	background: #fdf2f4;
	border-bottom: 1px solid var(--card-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ce-qo__error[hidden] {
	display: none;
}

/* Yalnız VERİ YÜKLEME hatasında çıkar (ekleme hatasında çıkmaz) */
.ce-qo__retry {
	flex-shrink: 0;
	padding: 6px 12px;
	border: 1px solid var(--ce-danger, #e0234e);
	background: #fff;
	color: var(--ce-danger, #e0234e);
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.ce-qo__retry:hover {
	background: var(--ce-danger, #e0234e);
	color: #fff;
}

/* ---------- Gövde ---------- */
.ce-qo__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ce-qo__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ce-qo__label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--card-primary);
}

.ce-qo__label i {
	font-style: normal;
	color: var(--card-accent);
}

.ce-qo__label svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: var(--card-muted);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* ---------- Konum satırı ---------- */
.ce-qo__loc {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	background: #f7f9fc;
	border: 1px solid var(--card-border);
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ce-qo__loc:hover {
	border-color: #ccd2de;
}

.ce-qo__loc-pin {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--card-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ce-qo__loc-pin svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: var(--card-muted);
	stroke-width: 1.7;
}

.ce-qo__loc-txt {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ce-qo__loc-txt em {
	font-style: normal;
	font-size: 11.5px;
	color: var(--card-muted);
}

.ce-qo__loc-txt strong {
	font-size: 14px;
	font-weight: 500;
	color: var(--card-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ce-qo__loc-chev {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--card-muted);
	stroke-width: 1.9;
	stroke-linecap: round;
}

/* ---------- Gömülü bölge bölümü (ayrı pencere YOK) ----------
   Açılma animasyonu takvimle aynı desen: grid-template-rows 0fr → 1fr. */
.ce-qo__locpanel {
	display: grid;
	grid-template-rows: 0fr;
	/* Kapanış seçim sonucunu geciktirmesin: kısa tutuldu. */
	transition: grid-template-rows 0.15s ease, margin-top 0.15s ease;
	margin-top: 0;
}

/* Tıklanan öğe ANINDA seçili görünür (sonuç beklenmeden) */
.ce-qo__loc-result.is-picking,
.ce-qo__loc-item.is-picking {
	background: var(--card-accent-soft);
	border-color: var(--card-accent);
	color: var(--card-accent-dark);
}

.ce-qo__locpanel.is-open {
	grid-template-rows: 1fr;
	margin-top: 10px;
}

.ce-qo__locpanel-inner {
	overflow: hidden;
	min-height: 0;
}

.ce-qo__locpanel.is-open .ce-qo__locpanel-inner {
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 12px;
}

/* Bölge dışı seçim uyarısı — metin sunucudan (cicekevi_zones_message) */
.ce-qo__loc-warn {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdf2f4;
	border: 1px solid #f3c2cb;
	color: var(--ce-danger, #e0234e);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.ce-qo__loc-search {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--card-accent);
	border-radius: 10px;
	padding: 11px 12px;
}

.ce-qo__loc-search svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--card-accent);
	stroke-width: 1.8;
}

.ce-qo__loc-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	font-family: inherit;
	font-size: 14px;
	color: var(--card-primary);
}

/* Öneriler: input'un HEMEN ALTINDA, akış içinde (pencere yok) */
.ce-qo__loc-results {
	display: none;
}

.ce-qo__loc-results.is-open {
	display: block;
	border: 1px solid var(--card-border);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	max-height: 240px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ce-qo__loc-result {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--card-border);
	background: none;
	padding: 10px 12px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.ce-qo__loc-result:last-child {
	border-bottom: 0;
}

.ce-qo__loc-result:hover {
	background: var(--card-accent-soft);
}

.ce-qo__loc-result strong {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--card-primary);
}

.ce-qo__loc-result span {
	font-size: 12px;
	color: var(--card-muted);
}

.ce-qo__loc-hint {
	margin: 8px 0 12px;
	font-size: 12px;
	color: var(--card-muted);
	line-height: 1.5;
}

.ce-qo__loc-saved h4 {
	margin: 0 0 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--card-primary);
}

/* Kompakt kayıtlı adres listesi */
.ce-qo__loc-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	border: 1px solid var(--card-border);
	border-radius: 10px;
	background: #fff;
	padding: 9px 11px;
	margin-bottom: 7px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ce-qo__loc-item:hover {
	border-color: var(--card-accent);
	background: var(--card-accent-soft);
}

.ce-qo__loc-item strong {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--card-primary);
}

.ce-qo__loc-item span {
	font-size: 12px;
	color: var(--card-muted);
	line-height: 1.4;
}

.ce-qo__loc-empty {
	margin: 0;
	font-size: 13px;
	color: var(--card-muted);
	line-height: 1.5;
}

.ce-qo__loc-empty a {
	color: var(--card-accent);
	font-weight: 600;
	text-decoration: none;
}

/* Konum seçili: yeşil durum */
.ce-qo__loc.is-selected {
	background: var(--card-accent-soft);
	border-color: var(--card-accent);
}

.ce-qo__loc.is-selected .ce-qo__loc-pin {
	border-color: var(--card-accent);
}

.ce-qo__loc.is-selected .ce-qo__loc-pin svg,
.ce-qo__loc.is-selected .ce-qo__loc-chev {
	stroke: var(--card-accent);
}

/* ---------- Çip satırları (tarih / saat / seçenek) ---------- */
.ce-qo__times,
.ce-qo__variants {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Tarih satırı: 4 kutu (Bugün / Yarın / öbür gün / Tarih Seç) satırın TAM
   genişliğini EŞİT paylaşır. */
.ce-qo__dates {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	align-items: stretch;
}

.ce-qo__date,
.ce-qo__time,
.ce-qo__variant {
	min-width: 0;
	padding: 9px 14px;
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: 10px;
	cursor: pointer;
	font-size: 13px;
	color: var(--card-primary);
	line-height: 1.25;
	text-align: center;
	transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.ce-qo__time,
.ce-qo__variant {
	flex: 0 0 auto;
}

/* Dört kutu da AYNI ölçü: "Tarih Seç" dahil (yalnız kenarlığı kesikli). */
.ce-qo__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 52px;
	padding: 8px 6px;
	overflow: hidden;
}

.ce-qo__date:hover:not(:disabled),
.ce-qo__time:hover,
.ce-qo__variant:hover:not(:disabled) {
	border-color: var(--card-accent);
}

.ce-qo__variant strong {
	display: block;
	font-weight: 600;
	font-size: 13px;
}

/* Gün adı / kısa tarih: TEK satır, taşma yerine ellipsis (alt satıra kırılmaz) */
.ce-qo__date strong,
.ce-qo__date span {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ce-qo__date strong {
	font-weight: 600;
	font-size: 12.5px;
}

.ce-qo__date span {
	font-size: 11.5px;
	color: var(--card-muted);
	margin: 0;
}

/* Seçili çip: tema yeşili */
.ce-qo__date.is-active,
.ce-qo__time.is-active,
.ce-qo__variant.is-active {
	background: var(--card-accent-soft);
	border-color: var(--card-accent);
	color: var(--card-accent-dark);
}

.ce-qo__date.is-active span,
.ce-qo__variant.is-active .ce-qo__variant-price {
	color: var(--card-accent-dark);
}

.ce-qo__date.is-disabled,
.ce-qo__variant.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	border-style: dashed;
}

/* "Tarih Seç": ÖLÇÜSÜ diğerleriyle birebir aynı, yalnız kenarlığı kesikli. */
.ce-qo__date--cal {
	border-style: dashed;
}

.ce-qo__date--cal svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--card-muted);
	stroke-width: 1.6;
}

.ce-qo__date--cal.is-active svg {
	stroke: var(--card-accent-dark);
}

.ce-qo__date--cal span {
	font-size: 11.5px;
	color: var(--card-primary);
}

.ce-qo__date--cal.is-active span {
	color: var(--card-accent-dark);
}

/* ---------- Gömülü takvim ----------
   Açılma animasyonu grid-template-rows 0fr → 1fr ile yapılır: JS'te yükseklik
   ölçmeye gerek kalmaz, panel içeriği kadar açılır ve modal yüksekliği
   birlikte uzar. */
.ce-qo__cal {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s ease, margin-top 0.28s ease;
	margin-top: 0;
}

.ce-qo__cal.is-open {
	grid-template-rows: 1fr;
	margin-top: 10px;
}

.ce-qo__cal-inner {
	overflow: hidden;
	min-height: 0;
}

.ce-qo__cal.is-open .ce-qo__cal-inner {
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 12px;
}

.ce-qo__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.ce-qo__cal-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--card-primary);
	text-align: center;
	flex: 1 1 auto;
}

.ce-qo__cal-nav {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: 1px solid var(--card-border);
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.16s ease, opacity 0.16s ease;
}

.ce-qo__cal-nav:hover:not(:disabled) {
	border-color: var(--card-accent);
}

.ce-qo__cal-nav svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--card-primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* İçinde bulunulan aydan geriye gidilemez */
.ce-qo__cal-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.ce-qo__cal-wd,
.ce-qo__cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.ce-qo__cal-wd {
	margin-bottom: 6px;
}

.ce-qo__cal-wd span {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--card-muted);
	padding: 2px 0;
}

.ce-qo__cal-day {
	aspect-ratio: 1 / 1;
	min-height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	background: transparent;
	border-radius: 9px;
	font-size: 13px;
	color: var(--card-primary);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ce-qo__cal-day:hover:not(:disabled) {
	background: var(--card-accent-soft);
}

/* Ayın dışındaki boş hücreler */
.ce-qo__cal-day--empty {
	visibility: hidden;
	cursor: default;
}

/* Geçmiş günler: soluk + üstü çizili, tıklanamaz */
.ce-qo__cal-day--past {
	color: var(--card-muted);
	opacity: 0.5;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* Teslimata uygun olmayan (kapalı gün / saat kalmamış) günler */
.ce-qo__cal-day--off {
	color: var(--card-muted);
	opacity: 0.4;
	cursor: not-allowed;
}

.ce-qo__cal-day--past:hover,
.ce-qo__cal-day--off:hover {
	background: transparent;
}

/* Bugün: ince çerçeve */
.ce-qo__cal-day--today {
	border-color: var(--card-accent);
}

/* Seçili gün: dolu tema yeşili + beyaz rakam */
.ce-qo__cal-day.is-active,
.ce-qo__cal-day.is-active:hover {
	background: var(--card-accent);
	border-color: var(--card-accent);
	color: #fff;
	font-weight: 700;
}

/* Varyasyon çipi: ad + fiyat */
.ce-qo__variant {
	text-align: left;
}

.ce-qo__variant-price {
	display: block;
	font-size: 12px;
	color: var(--card-muted);
	margin-top: 2px;
}

/* Saat alanı bilgi metni */
.ce-qo__hint {
	margin: 0;
	font-size: 13px;
	color: var(--card-muted);
}

/* ---------- Zorunlu alan uyarısı (ürün sayfasıyla AYNI desen) ---------- */
.ce-qo .ce-validate-msg {
	margin-top: 2px;
}

.ce-qo .ce-invalid {
	outline: 2px solid var(--ce-danger, #e0234e);
	outline-offset: 3px;
	border-radius: 10px;
}

/* ---------- Alt butonlar ---------- */
.ce-qo__foot {
	flex-shrink: 0;
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-top: 1px solid var(--card-border);
	background: #fff;
}

.ce-qo__btn {
	flex: 1 1 0;
	min-width: 0;
	height: 46px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.ce-qo__btn--cart {
	background: #fff;
	color: var(--card-accent);
	border: 1px solid var(--card-accent);
}

.ce-qo__btn--cart:hover {
	background: var(--card-accent-soft);
	color: var(--card-accent-dark);
	border-color: var(--card-accent-dark);
}

.ce-qo__btn--buy {
	background: var(--card-accent);
	color: #fff;
	border: 1px solid var(--card-accent);
}

.ce-qo__btn--buy:hover {
	background: var(--card-accent-dark);
	border-color: var(--card-accent-dark);
}

/* Tasarlanabilir ürün: tam genişlik tek dolu yeşil buton */
.ce-qo__foot--design {
	display: flex;
}

.ce-qo__foot--design[hidden],
.ce-qo__foot--normal[hidden] {
	display: none;
}

.ce-qo__btn--design {
	flex: 1 1 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--card-accent);
	color: #fff;
	border: 1px solid var(--card-accent);
}

.ce-qo__btn--design:hover {
	background: var(--card-accent-dark);
	border-color: var(--card-accent-dark);
}

.ce-qo__btn--design svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-qo__btn.is-busy {
	opacity: 0.65;
	pointer-events: none;
}

.ce-qo__btn--cart.is-done {
	background: var(--card-accent);
	color: #fff;
	border-color: var(--card-accent);
}

/* Arka plan kaydırma kilidi (mevcut desenle aynı mantık) */
body.ce-qo-open {
	overflow: hidden;
}

/* ---------- Gizli konum seçici barındırıcısı ----------
   Sayfada konum seçici yoksa (anasayfa vb.) modalın kullanabilmesi için
   bileşen footer'a basılır. Sıfır ölçü + overflow:hidden ile AKIŞTAKİ her
   şey kırpılır (kutu, panel, adres çubuğu ve JS'in sonradan eklediği bölge
   notları dahil); bottom-sheet paneli position:fixed olduğundan bu
   kırpmadan etkilenmez ve normal çalışır. */
.ce-qo-lochost {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Google Autocomplete'in kendi öneri kutusu (masaüstü inline input, ürün
   sayfası akışı) body seviyesinde açılır ve varsayılan z-index'i 1000'dir;
   yapışkan/katmanlı öğelerin altında kalmasın. */
.pac-container {
	z-index: 100010 !important;
}

/* ============================================================
   MASAÜSTÜ ÖLÇÜLERİ (≥769px) — mobil bottom-sheet ETKİLENMEZ.
   Kart 700px genişlik / ~630px temel yükseklik; iç boşluklar ve
   bölüm araları bu ölçüye orantılı büyür.
   ============================================================ */
@media (min-width: 769px) {
	/* ---- MASAÜSTÜ DİKEY RİTİM (tek kaynak) ----
	   Yalnız bu kırılımda tanımlıdır: mobil bottom-sheet düzeni ve
	   checkout Adım 1'in kendi ölçeği etkilenmez. */
	.ce-qo {
		--qo-pad-y: 24px;      /* gövde üst/alt iç boşluğu            */
		--qo-pad-x: 22px;      /* yanlar: mevcut değer korunuyor      */
		--qo-gap-section: 20px;/* bölüm -> bölüm (Bölge/Tarih/Saat)   */
		--qo-gap-label: 10px;  /* bölüm başlığı -> kendi içeriği      */
		--qo-gap-icon: 8px;    /* başlık ikonu -> metin               */
		--qo-gap-foot: 24px;   /* son bölüm -> buton satırı           */
	}

	.ce-qo:not([hidden]) {
		padding: 24px;
	}

	.ce-qo__panel {
		max-width: 700px;
		/* min-height KALDIRILDI: 630px'lik taban, gövdeyi içerikten
		   bağımsız uzatıyordu ve artan yükseklik space-between ile bölüm
		   aralarına dağıldığı için boşluklar ölçekten sapıyordu. Panel
		   artık içeriği kadar; max-height scroll güvencesi duruyor. */
		min-height: 0;
		max-height: calc(100vh - 48px);
	}

	/* Üst ürün özeti biraz daha ferah */
	.ce-qo__head {
		gap: 16px;
		padding: 18px 22px;
	}

	.ce-qo__thumb {
		width: 72px;
		height: 72px;
		border-radius: 12px;
	}

	.ce-qo__name {
		font-size: 17px;
	}

	.ce-qo__price {
		font-size: 22px;
	}

	.ce-qo__old {
		font-size: 14px;
	}

	.ce-qo__close {
		width: 38px;
		height: 38px;
	}

	/* Bölümler SABİT ölçekle dizilir. (Eskiden justify-content:space-between
	   ile artan yükseklik aralara dağılıyordu; panel min-height'i kalkınca
	   buna gerek kalmadı ve boşluklar ölçüldüğü gibi kalıyor.) İçerik
	   taşarsa .ce-qo__body kendi scroll'unu kullanır, alt butonlar sabit. */
	.ce-qo__body {
		padding: var(--qo-pad-y) var(--qo-pad-x) var(--qo-gap-foot);
		gap: var(--qo-gap-section);
		justify-content: flex-start;
	}

	.ce-qo__field {
		gap: var(--qo-gap-label);
	}

	/* Sapmanın asıl kaynağı: blok içindeki ilk/son elemanın kendi marjı
	   (ör. .ce-qo__loc-hint'in 8px/12px'i) bölüm boşluğuna EKLENİYORDU. */
	.ce-qo__field > :first-child {
		margin-top: 0;
	}

	.ce-qo__field > :last-child {
		margin-bottom: 0;
	}

	.ce-qo__label {
		font-size: 15px;
		gap: var(--qo-gap-icon);
	}

	.ce-qo__loc {
		padding: 14px 16px;
	}

	/* 4'lü tarih grid'i ve saat çipleri tam genişliği kullanmaya devam eder */
	.ce-qo__date {
		min-height: 58px;
	}

	.ce-qo__date strong {
		font-size: 13.5px;
	}

	.ce-qo__date span,
	.ce-qo__date--cal span {
		font-size: 12.5px;
	}

	.ce-qo__time,
	.ce-qo__variant {
		padding: 10px 16px;
		font-size: 13.5px;
	}

	.ce-qo__foot {
		gap: 14px;
		padding: 16px 22px;
	}

	.ce-qo__btn {
		height: 50px;
		font-size: 16px;
	}
}

/* ============================================================
   MASAÜSTÜ İNLİNE TAKVİM — KOMPAKT (≥1024px)
   Temel kuralda hücreler aspect-ratio:1/1 olduğundan 700px panelde
   sütun genişliği kadar (~87px) YÜKSEK oluyordu; takvim açılınca kart
   gereksiz uzayıp scroll'a düşüyordu. Burada oran bırakılıp sabit,
   BASIK yükseklik veriliyor. Stil (seçili/bugün/pasif görünümü)
   DEĞİŞMEZ — yalnız ölçüler küçülür.
   ============================================================ */
@media (min-width: 1024px) {
	.ce-qo__cal.is-open .ce-qo__cal-inner {
		padding: 10px;
	}

	.ce-qo__cal-head {
		gap: 6px;
		margin-bottom: 8px;
	}

	.ce-qo__cal-title {
		font-size: 13px;
	}

	.ce-qo__cal-nav {
		width: 26px;
		height: 26px;
		border-radius: 7px;
	}

	.ce-qo__cal-nav svg {
		width: 13px;
		height: 13px;
	}

	.ce-qo__cal-wd,
	.ce-qo__cal-grid {
		gap: 3px;
	}

	.ce-qo__cal-wd {
		margin-bottom: 4px;
	}

	.ce-qo__cal-wd span {
		font-size: 10.5px;
		padding: 0;
	}

	/* Kare oran YOK: sabit basık yükseklik. Genişlik sütundan geldiği için
	   tıklama alanı (~87×35px) rahat kalır. */
	.ce-qo__cal-day {
		aspect-ratio: auto;
		height: 35px;
		min-height: 0;
		font-size: 12.5px;
		border-radius: 8px;
	}
}

/* ---------- Mobil: bottom-sheet deseni ---------- */
@media (max-width: 768px) {
	.ce-qo:not([hidden]) {
		align-items: flex-end;
		padding: 0;
	}

	.ce-qo__panel {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		animation: ce-qo-up 0.15s ease-out;
	}

	.ce-qo__head {
		padding: 12px 14px;
	}

	.ce-qo__thumb {
		width: 48px;
		height: 48px;
	}

	.ce-qo__name {
		font-size: 14px;
	}

	.ce-qo__price {
		font-size: 17px;
	}

	.ce-qo__body {
		padding: 14px;
		gap: 16px;
	}

	.ce-qo__dates,
	.ce-qo__times,
	.ce-qo__variants {
		gap: 6px;
	}

	.ce-qo__time,
	.ce-qo__variant {
		padding: 8px 11px;
		font-size: 12.5px;
	}

	/* Mobil: yine 4 EŞİT sütun; yazı orantılı küçülür, taşma/kırılma yok. */
	.ce-qo__date {
		min-height: 48px;
		padding: 7px 4px;
	}

	.ce-qo__date strong {
		font-size: 11.5px;
	}

	.ce-qo__date span,
	.ce-qo__date--cal span {
		font-size: 10.5px;
	}

	.ce-qo__date--cal svg {
		width: 15px;
		height: 15px;
	}

	/* Takvim hücreleri dokunmaya uygun boyutta kalır */
	.ce-qo__cal-day {
		min-height: 40px;
		font-size: 14px;
		border-radius: 10px;
	}

	.ce-qo__cal.is-open .ce-qo__cal-inner {
		padding: 10px 8px;
	}

	.ce-qo__cal-wd,
	.ce-qo__cal-grid {
		gap: 3px;
	}

	.ce-qo__cal-nav {
		width: 34px;
		height: 34px;
	}

	.ce-qo__foot {
		padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
		gap: 10px;
	}

	.ce-qo__btn {
		height: 44px;
		font-size: 14px;
	}
}

@keyframes ce-qo-up {
	from { transform: translateY(12%); opacity: 0.7; }
	to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ce-qo__panel {
		animation: none;
	}

	.ce-qo__cal,
	.ce-qo__locpanel {
		transition: none;
	}
}
