/* Cemiyet Sipariş — lead akışı stilleri (v0.2.0) */

.cs-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 18, 15, 0.62);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
}

.cs-modal-overlay.cs-open {
	display: flex;
}

.cs-modal {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 420px;
	padding: 24px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.cs-modal h3 {
	margin: 0 0 6px;
	font-size: 1.2em;
}

.cs-modal .cs-modal-sub {
	margin: 0 0 16px;
	font-size: 0.9em;
	opacity: 0.75;
}

.cs-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 6px;
	color: #555;
}

.cs-modal label {
	display: block;
	margin: 0 0 12px;
	font-size: 0.92em;
	font-weight: 600;
}

.cs-modal input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid #d5d0c8;
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	box-sizing: border-box;
}

.cs-modal input:focus {
	outline: 2px solid #7A1E30;
	outline-offset: 1px;
	border-color: transparent;
}

.cs-modal .cs-modal-submit {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 8px;
	background: #7A1E30;
	color: #fff;
	font-weight: 700;
	font-size: 1em;
	cursor: pointer;
	margin-top: 4px;
}

.cs-modal .cs-modal-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.cs-lead-status {
	display: block;
	margin-top: 8px;
	font-size: 0.9em;
	min-height: 1.2em;
}

.cs-lead-status.cs-error {
	color: #b32d2e;
}

.cs-lead-status.cs-success {
	color: #7A1E30;
	font-weight: 600;
}

/* WhatsApp butonu — kendi kendine yeten stil.
   Impreza'nın palet değişkenlerini okur: bordo/altın hangi sitedeyse
   ona uyar; değişken yoksa WhatsApp yeşiline düşer. */
.cs-wa-cart-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	background: var(--color-content-primary, #25d366);
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 1.15em 2.2em;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.cs-wa-cart-button:hover {
	background: var(--color-content-secondary, #1fb857);
	color: #fff;
}

.cs-wa-cart-button i.fa-whatsapp {
	font-size: 1.35em;
	line-height: 1;
}

.cs-wa-cart-button.cs-btn-full {
	width: 100%;
}

/* Tema buton sınıfları bilinçli eklendiyse (btn_style="N") kendi
   arka planımızı geri çek, tema stilini yönet. */
.cs-wa-cart-button.w-btn {
	background: initial;
	padding: initial;
	text-transform: initial;
	letter-spacing: initial;
	border-radius: initial;
}

/* Canlı fiyat önizleme */
.cs-price-preview {
	background: #f9f0f2;
	border: 1.5px solid #B48458;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 4px 0 12px;
}
.cs-price-total { font-size: 19px; font-weight: 800; color: #761E2A; }
.cs-price-lines { font-size: 12px; color: #6b6258; margin-top: 4px; }
.cs-price-lines div { padding: 1px 0; }
.cs-modal label.cs-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.cs-modal label.cs-check input { width: auto; margin: 0; }
.cs-modal select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d5d0c8; border-radius: 8px; font: inherit; }

/* Yapışkan CTA barı — şablondan bağımsız güvenlik ağı */
.cs-sticky-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9990;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(6px);
	box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
}
.cs-sticky-cta .cs-wa-cart-button { max-width: 560px; margin: 0 auto; }
body.cs-has-sticky { padding-bottom: 84px; }
@media (min-width: 900px) {
	.cs-sticky-cta { left: auto; right: 24px; bottom: 24px; padding: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
	.cs-sticky-cta .cs-wa-cart-button { box-shadow: 0 6px 20px rgba(118,30,42,0.35); border-radius: 999px; padding: 1.1em 1.8em; }
	body.cs-has-sticky { padding-bottom: 0; }
}


/* v0.5.6 kurumsal modal iyileştirmeleri */
.cs-modal select:focus {
	outline: 2px solid #7A1E30;
	outline-offset: 1px;
	border-color: transparent;
}
.cs-modal .cs-modal-submit:hover { background: #571221; }
.cs-modal .cs-modal-submit:focus-visible,
.cs-modal-close:focus-visible,
.cs-wa-cart-button:focus-visible {
	outline: 3px solid rgba(122,30,48,.28);
	outline-offset: 3px;
}
