/* ============================================================
   SİPARİŞ ASİSTANI
   Header pill butonu + sağ altta açılan sohbet penceresi.
   Overlay YOK: kullanıcı pencere açıkken arkada gezinebilir.
   ============================================================ */

:root {
	--ce-assist-dark: #1e2740;
	--ce-assist-dark-hi: #2e3a59;
	--ce-assist-radius: 16px;
}

/* ---------- Header butonu ---------- */
.ce-assist-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	background: var(--ce-assist-dark);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-assist-btn:hover,
.ce-assist-btn:focus-visible {
	background: var(--ce-assist-dark-hi);
	color: #fff;
}

.ce-assist-btn svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Pencere ---------- */
.ce-assist {
	position: fixed;
	z-index: 10000;
	right: 24px;
	bottom: 24px;
	width: 420px;
	max-width: calc(100vw - 32px);
	height: 640px;
	max-height: calc(100vh - 48px);
}

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

.ce-assist__panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--ce-assist-radius);
	box-shadow: 0 18px 48px rgba(23, 32, 56, 0.28);
	overflow: hidden;
	transform: translateY(12px);
	opacity: 0;
	transition: transform 0.14s ease, opacity 0.14s ease;
}

.ce-assist.is-open .ce-assist__panel {
	transform: none;
	opacity: 1;
}

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

/* ---------- Başlık şeridi ---------- */
.ce-assist__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 14px 14px 16px;
	background: var(--ce-assist-dark);
	color: #fff;
}

.ce-assist__avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
}

.ce-assist__avatar svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

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

.ce-assist__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.ce-assist__sub {
	font-size: 12px;
	line-height: 1.25;
	opacity: 0.75;
}

.ce-assist__close {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-assist__close:hover {
	background: rgba(255, 255, 255, 0.14);
}

.ce-assist__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
	stroke-linecap: round;
}

/* ---------- Gövde: mesaj balonları ---------- */
.ce-assist__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
	background: var(--ce-bg-soft, #f6f7f9);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ce-assist__msg {
	display: flex;
}

.ce-assist__msg--user {
	justify-content: flex-end;
}

.ce-assist__bubble {
	max-width: 82%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
}

.ce-assist__msg--bot .ce-assist__bubble {
	background: #fff;
	color: #2e3a59;
	border-bottom-left-radius: 5px;
	box-shadow: 0 1px 3px rgba(23, 32, 56, 0.08);
}

.ce-assist__msg--user .ce-assist__bubble {
	background: var(--ce-green, #12a150);
	color: #fff;
	border-bottom-right-radius: 5px;
}

/* ---------- Seçenekler ---------- */
.ce-assist__actions {
	flex: 0 0 auto;
	padding: 0 16px;
	background: var(--ce-bg-soft, #f6f7f9);
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 46%;
	overflow-y: auto;
}

/* Adım görünürlüğü tek yerden: kök öğedeki data-step. */
.ce-assist__when {
	display: none;
	flex-direction: column;
	gap: 8px;
}

.ce-assist[data-step="zone"] .ce-assist__when[data-when="zone"],
.ce-assist[data-step="when"] .ce-assist__when[data-when="when"],
.ce-assist[data-step="who"] .ce-assist__when[data-when="who"],
.ce-assist[data-step="product"] .ce-assist__when[data-when="product"],
.ce-assist[data-step="variant"] .ce-assist__when[data-when="variant"],
.ce-assist[data-step="extras"] .ce-assist__when[data-when="extras"],
.ce-assist[data-step="s_confirm"] .ce-assist__when[data-when="s_confirm"],
.ce-assist[data-step="s_email"] .ce-assist__when[data-when="s_email"],
.ce-assist[data-step="express"] .ce-assist__when[data-when="express"],
.ce-assist[data-step="note"] .ce-assist__when[data-when="note"],
.ce-assist[data-step="note_tpl"] .ce-assist__when[data-when="note_tpl"],
.ce-assist[data-step="note_from"] .ce-assist__when[data-when="note_from"],
.ce-assist[data-step="summary"] .ce-assist__when[data-when="summary"],
.ce-assist[data-step="done"] .ce-assist__when[data-when="done"] {
	display: flex;
}

/* Açık adres adımında seçenek alanı boştur; yalnız metin girişi kullanılır. */
.ce-assist[data-step="addr"] .ce-assist__actions {
	padding-bottom: 0;
}

.ce-assist__opt,
.ce-assist__chip {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 10px 14px;
	background: #fff;
	color: #2e3a59;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ce-assist__opt:hover,
.ce-assist__chip:hover {
	border-color: var(--ce-green, #12a150);
	background: var(--ce-green-light, #e7f6ee);
}

.ce-assist__saved {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ce-assist__chip {
	width: auto;
	min-height: 36px;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 12px;
}

/* Öneriler + bölge listesi */
.ce-assist__sugs,
.ce-assist__drilllist {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 190px;
	overflow-y: auto;
}

.ce-assist__sugs[hidden],
.ce-assist__drill[hidden] {
	display: none;
}

.ce-assist__sug {
	display: block;
	width: 100%;
	padding: 9px 12px;
	background: #fff;
	color: #2e3a59;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.ce-assist__sug:hover {
	border-color: var(--ce-green, #12a150);
	background: var(--ce-green-light, #e7f6ee);
}

.ce-assist__drill {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ce-assist__drillhead {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ce-assist__drillback {
	padding: 5px 9px;
	background: #fff;
	border: 1px solid #e2e6ee;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #2e3a59;
	cursor: pointer;
}

.ce-assist__drilltitle {
	font-size: 12px;
	font-weight: 700;
	color: #8a94a6;
}

/* ---------- Çip satırları (tarih / saat / kategori / varyasyon) ---------- */
.ce-assist__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ce-assist__chip[disabled] {
	opacity: 0.45;
	cursor: default;
	border-color: #e2e6ee;
	background: #fff;
}

.ce-assist__chip em {
	margin-left: 6px;
	font-style: normal;
	font-weight: 700;
	color: var(--ce-green-dark, #0d7d3e);
}

.ce-assist__row {
	display: flex;
	gap: 8px;
}

.ce-assist__row .ce-assist__opt {
	text-align: center;
}

.ce-assist__opt--ghost {
	background: transparent;
	border-style: dashed;
	font-weight: 500;
}

/* ---------- Mini ürün kartları ---------- */
.ce-assist__prods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ce-assist__prod {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
}

.ce-assist__prodimg img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 7px;
	display: block;
}

.ce-assist__prodname {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	color: #2e3a59;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ce-assist__prodprice {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
	color: #2e3a59;
}

.ce-assist__prodprice del {
	font-size: 11px;
	font-weight: 500;
	color: #8a94a6;
}

.ce-assist__prodbtn {
	min-height: 34px;
	margin-top: auto;
	padding: 6px 8px;
	background: var(--ce-green, #12a150);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.ce-assist__prodbtn:hover {
	background: var(--ce-green-dark, #0d7d3e);
}

/* ---------- Ek ürünler ---------- */
.ce-assist__extras {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ce-assist__extra {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 10px;
	background: #fff;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ce-assist__extra.is-on {
	border-color: var(--ce-green, #12a150);
	background: var(--ce-green-light, #e7f6ee);
}

.ce-assist__extra.is-busy {
	opacity: 0.6;
}

.ce-assist__extraimg img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 7px;
	display: block;
}

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

.ce-assist__extratxt strong {
	font-size: 12.5px;
	font-weight: 600;
	color: #2e3a59;
}

.ce-assist__extratxt em {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: var(--ce-green-dark, #0d7d3e);
}

.ce-assist__err {
	margin: 0;
	padding: 8px 12px;
	background: rgba(224, 35, 78, 0.1);
	color: #b01739;
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.35;
}

/* ---------- Alt: ipucu + giriş ---------- */
.ce-assist__foot {
	flex: 0 0 auto;
	padding: 10px 16px 14px;
	background: var(--ce-bg-soft, #f6f7f9);
	border-top: 1px solid #e6e9ef;
}

.ce-assist__hint {
	margin: 0 0 6px;
	font-size: 11.5px;
	line-height: 1.3;
	color: #8a94a6;
}

.ce-assist__form {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.ce-assist__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
	font-size: 14px;
	color: #2e3a59;
}

.ce-assist__input:focus {
	outline: none;
	border-color: var(--ce-green, #12a150);
}

.ce-assist__send {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--ce-green, #12a150);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-assist__send:hover {
	background: var(--ce-green-dark, #0d7d3e);
}

.ce-assist__send svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
	stroke-linejoin: round;
}

/* ---------- Mobil: tam ekran bottom-sheet ---------- */
@media (max-width: 782px) {
	/* Header'daki asistan girişi mobilde BASILMAZ: sağ altta zaten sabit
	   yüzen buton (.ce-assist-fab) var, ikisi mükerrerdi. Masaüstündeki
	   "Sipariş Asistanı / Canlı destek" bloğu (≥783px) aynen durur.
	   Eski mobil görünüm kuralları (44x44 ikon + gizli etiket) bu yüzden
	   kaldırıldı — artık ölü kuraldı. */
	.ce-header .ce-assist-btn {
		display: none;
	}

	.ce-assist {
		inset: 0;
		width: auto;
		height: auto;
		max-width: none;
		max-height: none;
	}

	.ce-assist__panel {
		border-radius: 0;
		transform: translateY(16px);
	}

	.ce-assist__actions {
		max-height: 40%;
	}
}

/* Mobilde pencere açıkken arka scroll kilitli. */
body.ce-assist-open {
	overflow: hidden;
}

@media (min-width: 783px) {
	/* Masaüstünde sayfa akışı serbest: arkada gezinme mümkün. */
	body.ce-assist-open {
		overflow: visible;
	}
}

/* ---------- Özet + devir (dilim c) ---------- */
.ce-assist__sum {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
}

.ce-assist__sumrow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 12.5px;
	line-height: 1.35;
}

.ce-assist__sumrow span {
	flex: 0 0 auto;
	color: #8a94a6;
}

.ce-assist__sumrow strong {
	min-width: 0;
	text-align: right;
	font-weight: 600;
	color: #2e3a59;
	overflow-wrap: anywhere;
}

.ce-assist__sumrow--total {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #eef0f5;
	font-size: 14px;
}

.ce-assist__sumrow--total strong {
	font-weight: 800;
	color: var(--ce-green-dark, #0d7d3e);
}

.ce-assist__pay {
	width: 100%;
	min-height: 46px;
	background: var(--ce-assist-dark);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-assist__pay:hover {
	background: var(--ce-assist-dark-hi);
}

.ce-assist__restart {
	align-self: center;
	padding: 4px 8px;
	background: none;
	border: 0;
	font-size: 12px;
	color: #8a94a6;
	text-decoration: underline;
	cursor: pointer;
}

/* ============================================================
   DİLİM (d) — REFERANS HİZALAMA
   Renkler tek yerden: --ce-assist-dark (koyu buton tonu) ve
   --ce-assist-accent (tema yeşili). Palet tek satırdan döner.
   ============================================================ */

:root {
	--ce-assist-accent: var(--ce-green, #12a150);
	--ce-assist-line: #e6e9ef;
	--ce-assist-muted: #8a94a6;
	--ce-assist-ink: #2e3a59;
}

/* ---------- Pencere: ekranın ORTASINDA, overlay YOK ---------- */
.ce-assist {
	/* inset ile tam ekran kaplar; right/bottom SIFIRLANMAZ, yoksa inset bozulur. */
	inset: 0;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	display: grid;
	place-items: center;
	/* Arka plan tıklanabilir kalır: yalnız panel olay alır. */
	pointer-events: none;
}

.ce-assist__panel {
	pointer-events: auto;
	position: relative;
	width: 440px;
	max-width: calc(100vw - 32px);
	height: 620px;
	max-height: calc(100vh - 48px);
	border-radius: 14px;
}

/* ---------- Sağ altta yüzen buton ---------- */
.ce-assist-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--ce-assist-dark);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(23, 32, 56, 0.3);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ce-assist-fab:hover {
	background: var(--ce-assist-dark-hi);
	transform: translateY(-2px);
}

.ce-assist-fab svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Pencere açıkken yüzen buton gizlenir. */
body.ce-assist-open .ce-assist-fab {
	display: none;
}

/* Sayfada alta sabit "Sipariş Ver" çubuğu (.ce-stickybuy) varsa yüzen
   buton onun ÜSTÜNDE durur — üst üste binme olmaz. Çubuk yalnız ≤768px'de
   görünür olduğu için kural da orada geçerlidir; çubuğu olmayan sayfada
   buton normal konumunda kalır.

   Yükseklik style.css'teki --ce-stickybuy-h'den okunur (tek kaynak);
   çubuğun kendi dolgusuna eklenen güvenli alan burada da eklenir. */
@media (max-width: 768px) {
	body:has(.ce-stickybuy) .ce-assist-fab {
		bottom: calc(var(--ce-stickybuy-h, 69px) + env(safe-area-inset-bottom, 0px) + 12px);
	}
}

/* ---------- Balonlar ---------- */
.ce-assist__bubble {
	max-width: 86%;
	border-radius: 12px;
	font-size: 13.5px;
}

.ce-assist__msg--bot .ce-assist__bubble {
	border: 1px solid var(--ce-assist-line);
	box-shadow: none;
}

.ce-assist__msg--user .ce-assist__bubble {
	background: var(--ce-assist-dark);
	color: #fff;
	border-radius: 12px;
}

/* ---------- Hızlı yanıt çipleri (beyaz outline hap) ---------- */
.ce-assist__quick {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.ce-assist__pill {
	padding: 8px 14px;
	background: #fff;
	color: var(--ce-assist-ink);
	border: 1px solid var(--ce-assist-line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ce-assist__pill:hover {
	border-color: var(--ce-assist-accent);
	background: var(--ce-green-light, #e7f6ee);
}

/* ---------- Alt giriş satırı ---------- */
.ce-assist__input {
	height: 44px;
	border-radius: 999px;
	padding: 0 16px;
}

.ce-assist__send {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ce-assist-dark);
}

.ce-assist__send:hover {
	background: var(--ce-assist-dark-hi);
}

/* ---------- Konum önerileri: pin + iki satır ---------- */
.ce-assist__sug {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-radius: 8px;
	padding: 9px 8px;
	background: transparent;
}

.ce-assist__sug:hover {
	background: var(--ce-bg-soft, #f6f7f9);
	border: 0;
}

.ce-assist__sugpin {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: var(--ce-assist-muted);
	stroke-width: 1.8;
}

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

.ce-assist__sugname {
	font-size: 13px;
	font-weight: 600;
	color: var(--ce-assist-ink);
}

.ce-assist__sugsub {
	font-size: 11.5px;
	color: var(--ce-assist-muted);
}

/* ---------- Saat dilimleri: 2 sütun ---------- */
.ce-assist__when[data-when="when"] #ce-assist-slots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.ce-assist__when[data-when="when"] #ce-assist-slots .ce-assist__chip {
	width: 100%;
	border-radius: 10px;
	text-align: center;
}

.ce-assist__chip.is-on {
	border-color: var(--ce-assist-accent);
	background: var(--ce-green-light, #e7f6ee);
}

/* ---------- Tam pencere görünümleri ---------- */
.ce-assist__view {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: inherit;
	overflow: hidden;
}

.ce-assist[data-view="products"] .ce-assist__view[data-view="products"],
.ce-assist[data-view="detail"] .ce-assist__view[data-view="detail"],
.ce-assist[data-view="extras"] .ce-assist__view[data-view="extras"] {
	display: flex;
}

.ce-assist__viewhead {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 16px 16px 10px;
}

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

.ce-assist__viewheads strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--ce-assist-ink);
}

.ce-assist__viewheads em {
	font-style: normal;
	font-size: 11.5px;
	color: var(--ce-assist-muted);
}

.ce-assist__viewclose {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--ce-bg-soft, #f6f7f9);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.ce-assist__viewclose svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--ce-assist-ink);
	stroke-width: 1.9;
	stroke-linecap: round;
}

.ce-assist__backlink {
	padding: 4px 0;
	background: none;
	border: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--ce-assist-ink);
	cursor: pointer;
}

.ce-assist__viewbody {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 16px;
}

.ce-assist__viewbody--flush {
	padding: 0;
}

.ce-assist__viewfoot {
	flex: 0 0 auto;
	padding: 12px 16px 16px;
}

.ce-assist__viewfoot--row {
	display: flex;
	gap: 8px;
}

.ce-assist__btn {
	flex: 1 1 auto;
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ce-assist__btn--ghost {
	background: #fff;
	color: var(--ce-assist-ink);
	border: 1px solid var(--ce-assist-line);
}

.ce-assist__btn--ghost:hover {
	border-color: var(--ce-assist-accent);
}

.ce-assist__btn--primary {
	flex: 1.6 1 auto;
	background: var(--ce-assist-dark);
	color: #fff;
	border: 0;
}

.ce-assist__btn--primary:hover {
	background: var(--ce-assist-dark-hi);
}

/* ---------- 2 sütun kart ızgarası (ürün + ek ürün) ---------- */
.ce-assist__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding-bottom: 4px;
}

.ce-assist__prod {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 0 9px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 10px;
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ce-assist__prod:hover {
	border-color: var(--ce-assist-accent);
	box-shadow: 0 4px 14px rgba(23, 32, 56, 0.08);
}

.ce-assist__prodimg {
	position: relative;
	display: block;
	line-height: 0;
	margin-bottom: 5px;
}

.ce-assist__prodimg img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.ce-assist__prodname,
.ce-assist__prodprice {
	padding: 0 9px;
}

.ce-assist__prodprice {
	font-size: 13px;
	font-weight: 700;
}

/* Seçili ek ürün: tema yeşili çerçeve + tik */
.ce-assist__tick {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 24px;
	height: 24px;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ce-assist-accent);
}

.ce-assist__tick svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__extra.is-on {
	border-color: var(--ce-assist-accent);
	box-shadow: inset 0 0 0 1px var(--ce-assist-accent);
}

.ce-assist__extra.is-on .ce-assist__tick {
	display: flex;
}

/* ---------- Ürün detayı ---------- */
.ce-assist__gallery {
	position: relative;
	line-height: 0;
	background: var(--ce-bg-soft, #f6f7f9);
}

.ce-assist__gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.ce-assist__galnav {
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: rgba(255, 255, 255, 0.92);
	border: 0;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: var(--ce-assist-ink);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(23, 32, 56, 0.18);
}

.ce-assist__galnav--next {
	left: auto;
	right: 10px;
}

.ce-assist__galcount {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 8px;
	background: rgba(23, 32, 56, 0.72);
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.4;
}

.ce-assist__detail {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 14px 16px 4px;
}

.ce-assist__detailname {
	font-size: 15px;
	font-weight: 700;
	color: var(--ce-assist-ink);
}

.ce-assist__detailprice {
	font-size: 17px;
	font-weight: 800;
	color: var(--ce-assist-ink);
}

.ce-assist__detailprice del {
	margin-right: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ce-assist-muted);
}

.ce-assist__detaildesc {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: #55607a;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ce-assist__detaildesc.is-open {
	display: block;
	-webkit-line-clamp: unset;
}

/* ---------- Özet kartı (referans kart dili) ---------- */
.ce-assist__sum {
	gap: 7px;
	padding: 13px 14px;
	border-radius: 12px;
}

.ce-assist__pay {
	border-radius: 12px;
}

/* ---------- Mobil: tam ekran bottom-sheet AYNEN ---------- */
@media (max-width: 782px) {
	.ce-assist__panel {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
		border-radius: 0;
	}

	.ce-assist-fab {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}
}

/* ============================================================
   MASAÜSTÜ BOYUT + OVERLAY REVİZYONU
   Yalnız sunum; akış ve uçlar değişmedi.
   ============================================================ */

/* ---------- Overlay: arka plan kararır, scroll kilitli ---------- */
.ce-assist {
	/* Artık overlay var: tıklamaları kök öğe yakalar (kapatma için). */
	pointer-events: auto;
	background: rgba(23, 32, 56, 0);
	transition: background 0.14s ease;
}

.ce-assist.is-open {
	background: rgba(23, 32, 56, 0.45);
}

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

/* Arka sayfa scroll'u masaüstünde de kilitli (önceki serbest karar kaldırıldı). */
@media (min-width: 783px) {
	body.ce-assist-open {
		overflow: hidden;
	}
}

/* ---------- Masaüstü pencere: 900 × 765, taşmaz ---------- */
.ce-assist__panel {
	width: 900px;
	height: 765px;
	max-width: min(900px, calc(100vw - 32px));
	max-height: min(765px, calc(100vh - 32px));
	/* Başlık ve alt giriş satırı sabit; taşma gövdede scroll olur. */
	min-height: 0;
}

.ce-assist__head,
.ce-assist__foot {
	flex: 0 0 auto;
}

.ce-assist__body {
	min-height: 0;
}

/* ---------- Geniş yerleşim uyarlaması ---------- */
@media (min-width: 783px) {
	/* Balonlar tam genişliğe yayılmaz. */
	.ce-assist__bubble {
		max-width: min(60%, 520px);
	}

	/* Ürün listesi ve ek ürünler: 3 sütun (kart stili aynı). */
	.ce-assist__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Ürün detayı: galeri solda, bilgi + butonlar sağda. */
	.ce-assist__detailwrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0;
		align-items: start;
	}

	.ce-assist__detailwrap .ce-assist__gallery {
		position: sticky;
		top: 0;
	}

	.ce-assist__detail {
		padding: 18px 20px 20px;
		gap: 9px;
	}

	.ce-assist__detaildesc {
		-webkit-line-clamp: 8;
	}
}

/* Detay butonları bilgi sütununun altında. */
.ce-assist__detailfoot {
	display: flex;
	gap: 8px;
	margin-top: 6px;
	padding-bottom: 16px;
}

@media (max-width: 782px) {
	/* Dar ekran: mevcut dikey düzen aynen. */
	.ce-assist__detailfoot {
		padding: 0 16px 16px;
	}

	/* Mobil bottom-sheet DEĞİŞMEDİ: masaüstü boyut kuralı burada geri alınır
	   (kaynak sırasında sonra geldiği için ezmesin). */
	.ce-assist__panel {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
		border-radius: 0;
	}
}

/* ============================================================
   SOHBET HİSSİ — "yazıyor" göstergesi
   Bot balonu stilinde mini kart + üç zıplayan nokta.
   ============================================================ */

.ce-assist__typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 14px;
	min-height: 0;
}

.ce-assist__typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ce-assist-muted, #8a94a6);
	animation: ce-assist-dot 1.1s infinite ease-in-out;
}

.ce-assist__typing i:nth-child(2) {
	animation-delay: 0.16s;
}

.ce-assist__typing i:nth-child(3) {
	animation-delay: 0.32s;
}

@keyframes ce-assist-dot {
	0%, 70%, 100% {
		transform: translateY(0);
		opacity: 0.45;
	}
	35% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

/* Hareket azaltma: noktalar durağan gösterilir. */
@media (prefers-reduced-motion: reduce) {
	.ce-assist__typing i {
		animation: none;
		opacity: 0.55;
	}
}

/* ============================================================
   BAŞLIKTA "SOHBETİ YENİLE"
   X ile aynı stil dili (.ce-assist__close paylaşılır), yanında
   makul boşluk. Onay çipleri adım değiştirmez, geçicidir.
   ============================================================ */

.ce-assist__refresh svg {
	width: 17px;
	height: 17px;
	stroke-linejoin: round;
}

/* İki başlık butonu arasında dar boşluk (başlıktaki 10px gap yerine). */
.ce-assist__refresh + .ce-assist__close {
	margin-left: -4px;
}

/* Onay çipleri: adım bloklarının yerine geçer, adım DEĞİŞMEZ. */
.ce-assist__confirm {
	display: none;
	flex-direction: column;
	gap: 8px;
}

.ce-assist[data-confirm] .ce-assist__confirm {
	display: flex;
}

/* Adım kuralları .ce-assist[data-step=x] .ce-assist__when[data-when=x]
   (0,4,0) olduğu için burada bir seçici daha eklenerek üstün gelinir.

   data-asking: onay SORULURKEN (ve "baştan başla" karşılaması akarken)
   adım çipleri kalkar; onayın kendi çipleri data-confirm ile gelir. */
.ce-assist[data-confirm][data-step] .ce-assist__when[data-when],
.ce-assist[data-asking][data-step] .ce-assist__when[data-when] {
	display: none;
}

/* Mobilde dokunma hedefi. */
@media (max-width: 782px) {
	.ce-assist__refresh,
	.ce-assist__head .ce-assist__close {
		width: 44px;
		height: 44px;
	}

	.ce-assist__refresh + .ce-assist__close {
		margin-left: -6px;
	}
}

/* ============================================================
   HIZLI YANIT ÇİPLERİ — tek ortak bileşen (.ce-assist__pill)
   Evet/Hayır ikilileri, atlama çipleri, onay çipleri ve kategori
   çipleri bu bileşeni kullanır. Gün kartları (.ce-date) ve saat
   dilimleri (.ce-assist__chip) KAPSAM DIŞI.
   Renkler değişkenlerden; sabit hex yok.
   ============================================================ */

.ce-assist__quick {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.ce-assist__pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 12px 18px;
	background: #fff;
	color: var(--ce-assist-ink);
	border: 1px solid var(--ce-assist-line);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(23, 32, 56, 0.05);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.14s ease,
		color 0.14s ease,
		box-shadow 0.14s ease,
		transform 0.14s ease;
}

.ce-assist__pill:hover,
.ce-assist__pill:focus-visible {
	border-color: var(--ce-assist-accent);
	color: var(--ce-green-dark, #0d7d3e);
	box-shadow: 0 4px 12px rgba(23, 32, 56, 0.1);
	transform: translateY(-1px);
	background: #fff;
}

.ce-assist__pill:focus-visible {
	outline: 2px solid var(--ce-assist-accent);
	outline-offset: 2px;
}

.ce-assist__pill:active {
	transform: scale(0.97);
	border-color: var(--ce-assist-accent);
	box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.18);
}

/* Sol ikon rozeti — açık tema-yeşili zemin + yeşil çizgi ikon.
   Rozet yalnız ikon varsa basılır; yoksa çip düz metin kalır. */
.ce-assist__pillico {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ce-green-light, #e7f6ee);
}

.ce-assist__pillico svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: var(--ce-assist-accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
	.ce-assist__pill {
		transition: border-color 0.14s ease, color 0.14s ease;
	}

	.ce-assist__pill:hover,
	.ce-assist__pill:focus-visible,
	.ce-assist__pill:active {
		transform: none;
		box-shadow: 0 1px 2px rgba(23, 32, 56, 0.05);
	}
}

/* Mobil: dokunma hedefi zaten 44px; çipler sola yaslanıp sarar. */
@media (max-width: 782px) {
	.ce-assist__quick {
		gap: 7px;
	}

	.ce-assist__pill {
		max-width: 100%;
	}

	.ce-assist__pill > span:last-child {
		overflow-wrap: anywhere;
	}
}

/* ============================================================
   YENİ GÖRSEL HEDEF (mockup) — koyu slate KALKTI, palet yeşil.
   Tüm renkler değişkenlerden; tek yerden döner.
   ============================================================ */

:root {
	/* Koyu yeşil aile — başlık degradesi, kullanıcı balonu, dolu butonlar */
	--ce-assist-dark: var(--ce-green-dark, #0d7d3e);
	--ce-assist-dark-hi: #0a6633;
	--ce-assist-deep: #10502c;
	--ce-assist-accent: var(--ce-green, #12a150);
	/* Sohbet zemini: çok açık yeşilimsi */
	--ce-assist-bg: #f4faf6;
	--ce-assist-soft: #eaf6ee;
	--ce-assist-ink: #17331f;
	--ce-assist-muted: #8b9a90;
	--ce-assist-line: #e4efe8;
}

/* ---------- Başlık: koyu yeşil degrade + soluk çiçek deseni ---------- */
.ce-assist__head {
	position: relative;
	overflow: hidden;
	padding: 16px 16px 16px 18px;
	background: linear-gradient(100deg, var(--ce-assist-deep) 0%, var(--ce-assist-dark) 55%, var(--ce-assist-accent) 140%);
}

/* Sağdaki çiçek dokusu: yumuşak geçişli, metni bastırmaz. */
.ce-assist__head::after {
	content: "";
	position: absolute;
	inset: 0 0 0 45%;
	background-image: var(--ce-assist-headimg, none);
	background-size: cover;
	background-position: center right;
	opacity: 0.5;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	pointer-events: none;
}

.ce-assist__head > * {
	position: relative;
	z-index: 1;
}

/* Beyaz çember + online noktası */
.ce-assist__avatar {
	position: relative;
	width: 42px;
	height: 42px;
	background: #fff;
}

.ce-assist__avatar svg {
	stroke: var(--ce-assist-dark);
	width: 21px;
	height: 21px;
}

.ce-assist__online {
	position: absolute;
	right: 0;
	bottom: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #35d07f;
	border: 2px solid #fff;
}

.ce-assist__title {
	font-size: 17px;
	font-weight: 700;
}

.ce-assist__sub {
	font-size: 12.5px;
	opacity: 0.85;
}

.ce-assist__close:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* ---------- Gövde ---------- */
.ce-assist__body,
.ce-assist__actions,
.ce-assist__foot {
	background: var(--ce-assist-bg);
}

.ce-assist__body {
	gap: 14px;
}

/* ---------- Balonlar: avatar + metin + saat ---------- */
.ce-assist__msg {
	align-items: flex-start;
	gap: 10px;
}

.ce-assist__ava {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ce-assist-soft);
}

.ce-assist__ava svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--ce-assist-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__bubble {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
}

.ce-assist__msg--bot .ce-assist__bubble {
	background: #fff;
	color: var(--ce-assist-ink);
	border: 1px solid var(--ce-assist-line);
	box-shadow: 0 1px 2px rgba(23, 51, 31, 0.04);
}

.ce-assist__msg--user .ce-assist__bubble {
	background: var(--ce-assist-dark);
	color: #fff;
	border: 0;
}

.ce-assist__meta {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	line-height: 1;
	color: var(--ce-assist-muted);
}

.ce-assist__msg--user .ce-assist__meta {
	justify-content: flex-end;
	color: rgba(255, 255, 255, 0.75);
}

.ce-assist__time:empty {
	display: none;
}

.ce-assist__ticks {
	width: 15px;
	height: 10px;
	fill: none;
	stroke: #7ee2a8;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Seçenek kartları: yatay dizilim + emoji ---------- */
.ce-assist__quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	justify-content: stretch;
	gap: 10px;
}

.ce-assist__pill {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 62px;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 14px;
	box-shadow: 0 2px 6px rgba(23, 51, 31, 0.05);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.ce-assist__pill:hover,
.ce-assist__pill:focus-visible {
	border-color: var(--ce-assist-accent);
	box-shadow: 0 6px 16px rgba(23, 51, 31, 0.1);
	transform: translateY(-2px);
	background: #fff;
}

.ce-assist__pill:focus-visible {
	outline: 2px solid var(--ce-assist-accent);
	outline-offset: 2px;
}

.ce-assist__pill:active {
	transform: scale(0.98);
}

/* Renkli emoji — çizgi ikon değil. */
.ce-assist__pillico {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	background: none;
	border-radius: 0;
}

.ce-assist__pilltxt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ce-assist__pilltxt strong {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ce-assist-dark);
	line-height: 1.25;
}

.ce-assist__pilltxt em {
	font-style: normal;
	font-size: 12px;
	line-height: 1.25;
	color: var(--ce-assist-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.ce-assist__pill,
	.ce-assist__pill:hover,
	.ce-assist__pill:focus-visible,
	.ce-assist__pill:active {
		transform: none;
		transition: border-color 0.14s ease;
	}
}

/* ---------- Giriş alanı + güven satırı ---------- */
.ce-assist__foot {
	border-top: 0;
	padding: 8px 16px 14px;
}

.ce-assist__input {
	background: #fff;
	border-color: var(--ce-assist-line);
}

.ce-assist__input:focus {
	border-color: var(--ce-assist-accent);
}

.ce-assist__send {
	width: 46px;
	height: 46px;
	background: var(--ce-assist-dark);
}

.ce-assist__send:hover {
	background: var(--ce-assist-dark-hi);
}

.ce-assist__trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 9px 0 0;
	font-size: 12px;
	color: var(--ce-assist-muted);
}

.ce-assist__trust svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

/* ---------- Birincil dolu butonlar koyu yeşil ---------- */
.ce-assist__btn--primary,
.ce-assist__pay,
.ce-assist-fab,
.ce-assist-btn {
	background: var(--ce-assist-dark);
}

.ce-assist__btn--primary:hover,
.ce-assist__pay:hover,
.ce-assist-fab:hover,
.ce-assist-btn:hover {
	background: var(--ce-assist-dark-hi);
}

.ce-assist__sumrow--total strong,
.ce-assist__prodprice,
.ce-assist__detailprice,
.ce-assist__viewheads strong {
	color: var(--ce-assist-dark);
}

/* ---------- Mobil ---------- */
@media (max-width: 782px) {
	.ce-assist__quick {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ce-assist__pill {
		min-height: 58px;
		padding: 10px 12px;
	}

	.ce-assist__ava {
		width: 34px;
		height: 34px;
	}

	.ce-assist__ava svg {
		width: 17px;
		height: 17px;
	}
}

/* ============================================================
   BÖLGE / ADRES ADIMI (mockup)
   Kayıtlı adres çipleri + sohbete gömülü sekmeli bölge kartı.
   ============================================================ */

/* ---------- Kayıtlı adres çipleri ---------- */
.ce-assist__saved {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ce-assist__chip--saved {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: auto;
	min-height: 46px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(23, 51, 31, 0.05);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ce-assist-ink);
	transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.ce-assist__chip--saved:hover {
	border-color: var(--ce-assist-accent);
	background: #fff;
	box-shadow: 0 5px 14px rgba(23, 51, 31, 0.09);
	transform: translateY(-1px);
}

.ce-assist__chipico {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: var(--ce-assist-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Bölge kartı ---------- */
.ce-assist__opener {
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(23, 51, 31, 0.05);
	overflow: hidden;
}

/* Başlık şeridi listeyi TAM PENCERE panelde açar. */
.ce-assist__openerhead {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
}

.ce-assist__openerchev {
	flex: 0 0 auto;
	margin-left: auto;
	display: flex;
	transition: transform 0.18s ease;
}

.ce-assist__openerchev svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--ce-assist-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__openerhead:hover .ce-assist__openerchev svg,
.ce-assist__openerhead:focus-visible .ce-assist__openerchev svg {
	stroke: var(--ce-assist-accent);
}

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

.ce-assist__openerico {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ce-assist-soft);
}

.ce-assist__openerico svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: var(--ce-assist-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__openertxt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ce-assist__openertxt strong {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ce-assist-dark);
	line-height: 1.25;
}

.ce-assist__openertxt em {
	font-style: normal;
	font-size: 12.5px;
	color: var(--ce-assist-muted);
	line-height: 1.3;
}

/* ---------- Sekmeler + panel içi arama (KOMPAKT şerit) ---------- */
.ce-assist__sheetbar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 16px;
	border-top: 1px solid var(--ce-assist-line);
	border-bottom: 1px solid var(--ce-assist-line);
	background: #fbfdfc;
}

.ce-assist__tabs {
	display: flex;
	gap: 4px;
	min-width: 0;
	overflow-x: auto;
}

.ce-assist__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 13px 4px;
	margin-right: 14px;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ce-assist-muted);
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.14s ease, border-color 0.14s ease;
}

.ce-assist__tab.is-on {
	color: var(--ce-assist-accent);
	border-bottom-color: var(--ce-assist-accent);
}

.ce-assist__tab[disabled] {
	opacity: 0.45;
	cursor: default;
}

.ce-assist__sheetsearch {
	flex: 0 1 240px;
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 8px 0;
	padding: 0 12px;
	min-height: 38px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 999px;
}

.ce-assist__sheetsearch svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--ce-assist-muted);
	stroke-width: 1.8;
	stroke-linecap: round;
}

.ce-assist__sheetsearch input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: none;
	font-size: 13px;
	color: var(--ce-assist-ink);
}

/* ---------- Liste ----------
   Liste HER ZAMAN tam gelir (kesme/"tümünü göster" yok) ve panelin
   KALAN YÜKSEKLİĞİNİN TAMAMINI kullanır; scroll kendi içindedir.
   Çubuk stili checkout konum modalıyla (.ce-co-locdrill) aynıdır.
   Sağdaki iç boşluk hem çubuğa nefes payı verir hem de satır hover /
   odak vurgusunu kırpılmaktan korur. */
.ce-assist__sheetlist {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 12px;
	background: #f7faf8;
	scrollbar-width: thin;
	scrollbar-color: var(--ce-assist-line) transparent;
}

/* İçerik sığdığında çubuk hiç çizilmez (overflow: auto). */
.ce-assist__sheetlist::-webkit-scrollbar {
	width: 7px;
}

.ce-assist__sheetlist::-webkit-scrollbar-track {
	background: transparent;
}

.ce-assist__sheetlist::-webkit-scrollbar-thumb {
	background: var(--ce-assist-line);
	border-radius: 99px;
}

.ce-assist__sheetlist::-webkit-scrollbar-thumb:hover {
	background: var(--ce-assist-accent);
}

.ce-assist__sheetrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	/* Dokunma hedefi: 44px'in altına inmez. */
	min-height: 44px;
	flex: 0 0 auto;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--ce-assist-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.14s ease, background 0.14s ease;
}

.ce-assist__sheetrow:hover,
.ce-assist__sheetrow:focus-visible {
	border-color: var(--ce-assist-accent);
	background: var(--ce-assist-soft);
}

.ce-assist__sheetrow svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--ce-assist-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__sheetempty {
	margin: 4px 2px 8px;
	font-size: 12.5px;
	color: var(--ce-assist-muted);
}

/* ---------- Giriş alanı pin ikonu + ipucu ⓘ ---------- */
.ce-assist__form {
	position: relative;
}

.ce-assist__inputico {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--ce-assist-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

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

.ce-assist__inputico:not([hidden]) ~ .ce-assist__input {
	padding-left: 42px;
}

.ce-assist__hint {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ce-assist__hintico {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

/* ---------- Mobil ---------- */
@media (max-width: 782px) {
	.ce-assist__sheetbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ce-assist__sheetsearch {
		flex: 1 1 auto;
		margin: 0 0 10px;
	}

	.ce-assist__tab {
		margin-right: 12px;
		padding: 11px 2px;
		font-size: 13px;
	}

	.ce-assist__chip--saved {
		min-height: 44px;
		padding: 9px 14px;
		font-size: 13px;
	}
}

/* ============================================================
   HOVER / ODAK TAŞMASI — TEK ÇÖZÜM
   Seçenek alanı (.ce-assist__actions), transkript ve genişleyen
   bölge listesi kaydırma kabıdır; overflow açılamaz. Bu yüzden
   "kalkma" (translateY) efekti üst kenardan kırpılıyordu.
   KARAR: hiçbir bileşende kalkma yok — vurgu GÖLGE + ÇERÇEVE ile
   verilir, satır kaplarına odak halkası kadar (4px) pay bırakılır.
   Aynı kural tüm bileşenlere uygulanır: kayıtlı adres çipleri,
   seçenek kartları, kategori ızgarası, ürün kartları, bölge kartı
   satırları ve gün kartları.
   ============================================================ */

.ce-assist__pill:hover,
.ce-assist__pill:focus-visible,
.ce-assist__chip:hover,
.ce-assist__chip:focus-visible,
.ce-assist__chip--saved:hover,
.ce-assist__chip--saved:focus-visible,
.ce-assist__opt:hover,
.ce-assist__opt:focus-visible,
.ce-assist__prod:hover,
.ce-assist__prod:focus-visible,
.ce-assist__cat:hover,
.ce-assist__cat:focus-visible,
.ce-assist__sheetrow:hover,
.ce-assist__sheetrow:focus-visible,
.ce-assist .ce-date:hover,
.ce-assist .ce-date:focus-visible {
	transform: none;
}

/* Kalkmanın yerini alan vurgu. */
.ce-assist__sheetrow:hover,
.ce-assist__sheetrow:focus-visible,
.ce-assist .ce-date:hover {
	box-shadow: 0 2px 8px rgba(23, 51, 31, 0.09);
}

/* Odak halkası TÜM bileşenlerde aynı ve tam görünür. */
.ce-assist__pill:focus-visible,
.ce-assist__chip:focus-visible,
.ce-assist__opt:focus-visible,
.ce-assist__prod:focus-visible,
.ce-assist__sheetrow:focus-visible,
.ce-assist__openerhead:focus-visible,
.ce-assist__cat:focus-visible,
.ce-assist__tab:focus-visible,
.ce-assist .ce-date:focus-visible {
	outline: 2px solid var(--ce-assist-accent);
	outline-offset: 2px;
}

/* Efekt payı: kaplar gölgeyi ve odak halkasını kırpmasın. */
.ce-assist .ce-assist__actions {
	padding-top: 4px;
	padding-bottom: 4px;
}

.ce-assist__saved,
.ce-assist__quick,
.ce-assist__cats,
.ce-assist__grid,
.ce-assist .ce-dates {
	padding-top: 4px;
	padding-bottom: 4px;
}

/* Kayıtlı adres yoksa satır hiç görünmez (kap tazeleme için durur). */
.ce-assist__saved:empty {
	display: none;
}

/* ============================================================
   KATEGORİ ADIMI — görselli kartlar
   Masaüstü 4 sütun, mobil 2 sütun. Kartın solunda kategorinin
   WooCommerce küçük resmi (daireye cover), ortada ad, sağda ince ok;
   sağ kenarda çok soluk çiçek filigranı (yalnız CSS süsü).
   "Fark etmez" kartı kendi satırında ve daha geniştir.
   ============================================================ */

.ce-assist__cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.ce-assist__cat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 78px;
	padding: 12px 30px 12px 12px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(23, 51, 31, 0.06);
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

/* Soluk çiçek deseni filigranı — sağ kenarda, çok düşük opaklıkta. */
.ce-assist__cat::after {
	content: "";
	position: absolute;
	right: -14px;
	bottom: -18px;
	width: 92px;
	height: 92px;
	opacity: 0.07;
	pointer-events: none;
	background: no-repeat center / contain
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23117a41' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c0-5 2.6-8.4 7-10.2'/%3E%3Cpath d='M12 22c0-4.2-2.1-7.2-5.8-9'/%3E%3Cpath d='M19 11.8c-3.6.5-6.1 2.6-7 5.6 3.2.4 5.8-1.4 7-5.6z'/%3E%3Cpath d='M6.2 13c3.2.6 5.2 2.4 5.8 5.2-2.9.3-5.1-1.4-5.8-5.2z'/%3E%3Cpath d='M12 10.4c0-2.2-.9-3.6-2.4-3.6S7.2 8 7.2 9.5c0 1.5 1.4 2.4 3.6 2.4'/%3E%3Cpath d='M12.4 10.4c0-2.2.9-3.6 2.4-3.6s2.4 1.2 2.4 2.7c0 1.5-1.4 2.4-3.6 2.4'/%3E%3C/svg%3E" );
}

.ce-assist__cat:hover,
.ce-assist__cat:focus-visible {
	border-color: var(--ce-assist-accent);
	box-shadow: 0 4px 14px rgba(23, 51, 31, 0.1);
}

/* ---------- Yuvarlak görsel alanı ---------- */
.ce-assist__catimg {
	position: relative;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ce-assist-soft);
	overflow: hidden;
}

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

/* Görsel yoksa: açık tema-yeşili zeminde yeşil çiçek ikonu. */
.ce-assist__catimg svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--ce-assist-accent);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__catemoji {
	font-size: 24px;
	line-height: 1;
}

/* ---------- Metin ---------- */
.ce-assist__cattxt {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ce-assist__cattxt strong {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ce-assist-ink);
	overflow-wrap: anywhere;
}

.ce-assist__cattxt em {
	font-style: normal;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--ce-assist-muted);
}

/* ---------- Sağdaki ince ok ---------- */
.ce-assist__catgo {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(23, 51, 31, 0.12);
}

.ce-assist__catgo svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: var(--ce-assist-muted);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ce-assist__cat:hover .ce-assist__catgo svg,
.ce-assist__cat:focus-visible .ce-assist__catgo svg {
	stroke: var(--ce-assist-accent);
}

/* ---------- "Fark etmez" — ayrık stil ---------- */
.ce-assist__cat--any {
	grid-column: 1 / span 2;
	background: #eef7f1;
	border-color: #d7ecdf;
}

.ce-assist__cat--any .ce-assist__catimg {
	background: #fdf3dc;
}

.ce-assist__cat--any .ce-assist__cattxt strong {
	color: var(--ce-assist-dark);
}

.ce-assist__cat--any::after {
	opacity: 0.1;
}

@media (max-width: 782px) {
	.ce-assist__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ce-assist__cat {
		min-height: 72px;
		padding: 10px 26px 10px 10px;
	}

	.ce-assist__catimg {
		width: 46px;
		height: 46px;
	}

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

	.ce-assist__cat--any {
		grid-column: 1 / span 2;
	}
}

/* ============================================================
   BÖLGE SEÇİMİ — ALTTAN AÇILAN SHEET
   Tam ekran DEĞİL: sheet asistan penceresinin (mobilde ekranın) alt
   kenarına yaslanır, üstünde sohbet + hafif karartma görünür.
   Yükseklik İÇERİĞE göre; üst sınır %80 (kalabalık listede en az 10
   satır sığar). Kısa listede sheet kısalır — altında boş alan yok,
   bu yüzden sabit bir min-height verilmedi. Yükseklik geçişini JS
   ölçer (zoneFit): auto animasyona uygun olmadığı için piksel değeri
   yazılır.
   ============================================================ */

.ce-assist__view--sheet {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 4;
	background: none;
	border-radius: inherit;
	overflow: hidden;
}

/* Görünüm adı sheet'in kendi data-view'ıyla eşleşmeli: yoksa ikinci
   sheet hiç görünmez (yükseklik 0 ölçülür). */
.ce-assist[data-view="zone"] .ce-assist__view--sheet[data-view="zone"],
.ce-assist[data-view="note"] .ce-assist__view--sheet[data-view="note"],
.ce-assist[data-view="date"] .ce-assist__view--sheet[data-view="date"] {
	display: block;
}

/* Karartma — tıklayınca sheet kapanır. */
.ce-assist__sheetbd {
	position: absolute;
	inset: 0;
	background: rgba(15, 32, 22, 0.34);
	opacity: 0;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.ce-assist__view--sheet.is-open .ce-assist__sheetbd {
	opacity: 1;
}

.ce-assist__sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 80%;
	background: #fff;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -8px 28px rgba(15, 32, 22, 0.16);
	transform: translateY(100%);
	/* YALNIZ transform: yükseklik değişimi asla animasyona girmez, aksi
	   halde açılış iki aşamalı görünür (zıplama). */
	transition: transform 0.2s ease;
	overflow: hidden;
}

.ce-assist__view--sheet.is-open .ce-assist__sheet {
	transform: translateY(0);
}

/* Ölçüm karesi: yükseklik yazılırken hiçbir geçiş çalışmaz. */
.ce-assist__view--sheet.is-measuring .ce-assist__sheet,
.ce-assist__view--sheet.is-measuring .ce-assist__sheetbd {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.ce-assist__sheetbd,
	.ce-assist__sheet {
		transition: none;
	}
}

/* Tutma çubuğu. */
.ce-assist__sheetgrip {
	flex: 0 0 auto;
	width: 40px;
	height: 4px;
	margin: 8px auto 0;
	border-radius: 99px;
	background: #d8e5dd;
}

.ce-assist__sheet .ce-assist__viewhead {
	padding: 10px 16px 10px;
}

.ce-assist__sheet .ce-assist__sheetbar {
	border-top: 0;
}

/* Liste alanı: sheet'in kalanı; scroll kendi içinde. */
.ce-assist__sheetbody {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}

@media (max-width: 782px) {
	.ce-assist__sheet .ce-assist__sheetbar {
		padding: 0 14px;
	}

	.ce-assist__sheet .ce-assist__viewhead {
		padding: 8px 14px;
	}
}

/* Mesaj satırı: en çok 2 satır, taşan kırpılır. */
.ce-assist__sheetrow--msg {
	align-items: flex-start;
	line-height: 1.45;
}

.ce-assist__sheetrow--msg span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ============================================================
   DİLİM (e) — ÖDEME BÖLÜMÜ VE BAŞARI EKRANI
   Yöntem satırları checkout ödeme adımının diliyle: radio + ikon +
   başlık, seçilide yeşil çerçeve. Sipariş WooCommerce'in kendi
   checkout ucundan oluşur; burada yalnız sunum vardır.
   ============================================================ */

.ce-assist__billedit {
	align-self: flex-start;
	padding: 2px 0;
	background: none;
	border: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ce-assist-accent);
	text-decoration: underline;
	cursor: pointer;
}

.ce-assist__paybox {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 14px;
}

.ce-assist__paytitle {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ce-assist-dark);
}

.ce-assist__paylist {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ce-assist__paymethod {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.ce-assist__paymethod.is-on {
	border-color: var(--ce-assist-accent);
	box-shadow: 0 0 0 1px var(--ce-assist-accent) inset;
}

.ce-assist__paymethod input {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--ce-assist-accent);
}

.ce-assist__payico {
	flex: 0 0 auto;
	display: flex;
}

.ce-assist__payico svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--ce-assist-dark);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

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

.ce-assist__paytxt strong {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ce-assist-ink);
}

.ce-assist__paytxt em {
	font-style: normal;
	font-size: 11.5px;
	color: var(--ce-assist-muted);
}

.ce-assist__paytxt em:empty {
	display: none;
}

.ce-assist__payfield {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ce-assist__payfield label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ce-assist-ink);
}

.ce-assist__payfield label i {
	font-style: normal;
	color: var(--ce-danger, #d63638);
}

.ce-assist__payfield input {
	min-height: 42px;
	padding: 9px 12px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--ce-assist-ink);
}

.ce-assist__payfield input:focus {
	outline: 2px solid var(--ce-assist-accent);
	outline-offset: 1px;
}

.ce-assist__payhint {
	font-size: 11.5px;
	color: var(--ce-assist-muted);
}

.ce-assist__payterms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--ce-assist-ink);
	cursor: pointer;
}

.ce-assist__payterms input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: var(--ce-assist-accent);
}

.ce-assist__payterms a {
	color: var(--ce-assist-accent);
	text-decoration: underline;
}

.ce-assist__pay[disabled] {
	opacity: 0.5;
	cursor: default;
}

.ce-assist__pay.is-busy {
	opacity: 0.7;
	cursor: progress;
}

/* ---------- Başarı ekranı ---------- */
.ce-assist__ok {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ce-assist__bank {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	background: #eef7f1;
	border: 1px solid #d7ecdf;
	border-radius: 14px;
}

.ce-assist__bank strong {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ce-assist-dark);
}

.ce-assist__bankrow {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 12.5px;
}

.ce-assist__bankrow em {
	font-style: normal;
	flex: 0 0 46px;
	color: var(--ce-assist-muted);
}

.ce-assist__bankrow b {
	font-weight: 600;
	color: var(--ce-assist-ink);
	overflow-wrap: anywhere;
}

.ce-assist__copy {
	align-self: flex-start;
	min-height: 34px;
	padding: 7px 12px;
	background: #fff;
	border: 1px solid var(--ce-assist-accent);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ce-assist-accent);
	cursor: pointer;
}

.ce-assist__orderlink {
	align-self: center;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ce-assist-accent);
	text-decoration: underline;
}

/* ============================================================
   TAKVİM SHEET'İ — ORTAK sheet bileşeninin 'cal' gövdesi
   Sohbet içi takvim kaldırıldı. Kompakt ızgara ortalanır, hücreler
   dokunma uyumlu; ızgara her ay 6 satıra tamamlandığı için ay
   geçişinde yükseklik zıplamaz.
   ============================================================ */

.ce-assist__view--sheet[data-view="date"] .ce-assist__sheet {
	/* Takvim ortada ve KOMPAKT: pencere genişliğine yayılmaz. */
	left: 50%;
	right: auto;
	width: min(420px, 100%);
	transform: translate(-50%, 100%);
	border-radius: 18px 18px 0 0;
}

.ce-assist__view--sheet[data-view="date"].is-open .ce-assist__sheet {
	transform: translate(-50%, 0);
}

/* Ay gezinme şeridi. */
.ce-assist__sheetbar--cal {
	justify-content: space-between;
	gap: 8px;
	padding: 8px 16px;
}

.ce-assist__caltitle {
	flex: 1 1 auto;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--ce-assist-dark);
}

.ce-assist__calnav {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 9px;
	font-size: 18px;
	line-height: 1;
	color: var(--ce-assist-ink);
	cursor: pointer;
}

.ce-assist__calnav:hover:not([disabled]) {
	border-color: var(--ce-assist-accent);
	color: var(--ce-assist-accent);
}

.ce-assist__calnav[disabled] {
	opacity: 0.35;
	cursor: default;
}

.ce-assist__sheetbody--cal {
	display: block;
	padding: 10px 14px 16px;
	background: #f7faf8;
}

/* Pzt-Paz başlıkları. */
.ce-assist__caldow {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	margin-bottom: 6px;
}

.ce-assist__caldow span {
	text-align: center;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ce-assist-muted);
}

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

.ce-assist__calpad {
	display: block;
}

.ce-assist__calday {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--ce-assist-line);
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ce-assist-ink);
	cursor: pointer;
	transition: border-color 0.14s ease, background 0.14s ease;
}

.ce-assist__calday:hover:not([disabled]) {
	border-color: var(--ce-assist-accent);
	background: var(--ce-assist-soft);
}

.ce-assist__calday:focus-visible {
	outline: 2px solid var(--ce-assist-accent);
	outline-offset: 2px;
}

/* Bugün: ince çerçeve. */
.ce-assist__calday.is-today {
	border-color: var(--ce-assist-accent);
}

/* Seçili gün: tema yeşili dolu. */
.ce-assist__calday.is-active {
	background: var(--ce-assist-accent);
	border-color: var(--ce-assist-accent);
	color: #fff;
}

/* Geçmiş ve uygunsuz günler: soluk, üstü çizili, tıklanamaz. */
.ce-assist__calday.is-past,
.ce-assist__calday.is-off {
	opacity: 0.4;
	background: #f2f5f3;
	text-decoration: line-through;
	cursor: default;
}

@media (max-width: 782px) {
	.ce-assist__sheetbody--cal {
		padding: 8px 12px 14px;
	}

	.ce-assist__calday {
		min-height: 42px;
		font-size: 13px;
	}
}
