/* Websel Dönüşüm — Sorun Bildir
 *
 * TEMA BASKISI: birçok tema (CMSMasters, Woo temaları) her <button> etiketine
 * dolgu, degrade arka plan ve renk basıyor; üstelik çoğu !important ile.
 * Bu yüzden tetikleyici ve pencere düğmeleri "html body ... .wsb-x.wsb-x"
 * biçiminde yüksek özgüllükte ve all:unset ile sıfırlanıyor. Çirkin görünüyor
 * ama tek güvenilir yol bu.
 */

/* ------------------------------------------------------------ tetikleyici */

.wsb-satir {
	margin: 14px 0 0;
	padding: 0;
	line-height: 1.4;
}

/* sepete ekle butonunun yanındaki satır içi yerleşim */
html body .wsb-satir.wsb-satir--yan {
	display: inline-flex !important;
	align-items: center !important;
	align-self: center !important;
	margin: 0 0 0 16px !important;
	padding: 0 !important;
	vertical-align: middle !important;
	line-height: 1.4 !important;
}

/* Tetikleyici forma taşındığında: temanın flex-wrap:nowrap kuralı dar ekranda
   butonu ezerdi. Taşıma sırasında forma verilen sınıfla sarmaya izin veriyoruz. */
html body form.cart.wsb-form {
	flex-wrap: wrap !important;
	row-gap: 10px !important;
}

@media (max-width: 600px) {
	html body .wsb-satir.wsb-satir--yan {
		display: flex !important;
		flex-basis: 100% !important;
		margin: 12px 0 0 !important;
	}
}

html body .wsb-ac.wsb-ac {
	all: unset !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	cursor: pointer !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: left !important;
	text-shadow: none !important;
	color: #74747c !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	box-shadow: none !important;
	transition: color .15s ease !important;
}

html body .wsb-ac.wsb-ac:hover,
html body .wsb-ac.wsb-ac:focus-visible {
	color: var(--wsb-renk, #e2703a) !important;
	background: none !important;
}
html body .wsb-ac.wsb-ac:focus-visible {
	outline: 2px solid var(--wsb-renk, #e2703a) !important;
	outline-offset: 3px !important;
	border-radius: 4px !important;
}

html body .wsb-ac .wsb-ikon {
	flex: 0 0 auto !important;
	width: 15px !important;
	height: 15px !important;
	opacity: .68 !important;
	color: inherit !important;
	background: none !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle !important;
}
html body .wsb-ac:hover .wsb-ikon { opacity: 1 !important; }

html body .wsb-ac .wsb-metin {
	all: unset !important;
	font: inherit !important;
	color: inherit !important;
	background: none !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
	text-decoration-color: rgba(0, 0, 0, .22) !important;
}
html body .wsb-ac:hover .wsb-metin { text-decoration-color: currentColor !important; }

/* Sepet ve ödeme sayfalarındaki sabit küçük düğme.
   DİKKAT: yukarıdaki temel kural "all: unset !important" taşıyor, bu yüzden
   buradaki her bildirim de !important olmak zorunda; yoksa düğme sıfırlanıp
   sayfanın en altında düz yazıya dönüyor. */
html body .wsb-ac.wsb-yuzen {
	position: fixed !important;
	right: 18px !important;
	bottom: 18px !important;
	left: auto !important;
	top: auto !important;
	z-index: 99990 !important;
	color: #43434a !important;
	background: #fff !important;
	border: 1px solid #e0e0e5 !important;
	border-radius: 999px !important;
	padding: 9px 15px !important;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .12) !important;
}
html body .wsb-ac.wsb-yuzen:hover {
	background: #fff !important;
	color: var(--wsb-renk, #e2703a) !important;
	border-color: var(--wsb-renk, #e2703a) !important;
}
html body .wsb-yuzen .wsb-metin { text-decoration: none !important; }

/* ------------------------------------------------------------ balon */

.wsb-balon {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99991;
	max-width: 330px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #17171b;
	color: #f4f4f6;
	border-radius: 12px;
	padding: 13px 14px;
	font-size: 13px;
	line-height: 1.45;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
	animation: wsb-gir .28s ease-out;
}

html body .wsb-balon button {
	all: unset !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 1 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

html body .wsb-balon .wsb-balon-metin {
	color: #f4f4f6 !important;
	font: inherit !important;
	background: none !important;
	text-decoration: none !important;
}

/* balon açıkken sabit düğme gizlenir, ikisi üst üste binmesin */
body.wsb-balon-acik .wsb-ac.wsb-yuzen { display: none !important; }
html body .wsb-balon .wsb-balon-ac {
	flex: 0 0 auto !important;
	background: var(--wsb-renk, #e2703a) !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 8px 13px !important;
	font-weight: 700 !important;
}
html body .wsb-balon .wsb-balon-kapat {
	flex: 0 0 auto !important;
	color: #9a9aa2 !important;
	font-size: 20px !important;
	padding: 0 2px !important;
}
html body .wsb-balon .wsb-balon-kapat:hover { color: #fff !important; }

@keyframes wsb-gir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wsb-balon { animation: none; } }

/* ------------------------------------------------------------ pencere */

.wsb-katman {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px;
	line-height: 1.5;
}
.wsb-katman[hidden] { display: none; }
.wsb-perde { position: absolute; inset: 0; background: rgba(12, 12, 16, .55); }
.wsb-kilit { overflow: hidden; }

.wsb-kutu {
	position: relative;
	background: #fff;
	color: #1c1c1e;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 14px;
	padding: 26px 24px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

/* pencere içindeki her düğme tema stilinden arındırılır */
html body .wsb-katman button {
	all: unset !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	font-family: inherit !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
}

html body .wsb-katman .wsb-kapat {
	position: absolute !important;
	top: 12px !important;
	right: 13px !important;
	font-size: 22px !important;
	line-height: 1 !important;
	color: #a0a0a8 !important;
	padding: 4px !important;
}
html body .wsb-katman .wsb-kapat:hover { color: #1c1c1e !important; }

.wsb-baslik {
	margin: 0 30px 6px 0;
	padding: 0;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: #16161a;
	text-transform: none;
	letter-spacing: 0;
}
.wsb-aciklama { margin: 0 0 18px; padding: 0; color: #5c5c63; font-size: 13px; }

.wsb-etiket {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #4a4a51;
	margin: 0 0 5px;
	text-transform: none;
	letter-spacing: 0;
}

html body .wsb-katman textarea,
html body .wsb-katman input[type="email"],
html body .wsb-katman input[type="tel"] {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border: 1px solid #d9d9de !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-style: normal !important;
	line-height: 1.45 !important;
	color: #1c1c1e !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	height: auto !important;
	min-height: 0 !important;
}
html body .wsb-katman textarea {
	resize: vertical !important;
	min-height: 96px !important;
	display: block !important;
}
html body .wsb-katman textarea:focus,
html body .wsb-katman input:focus {
	outline: 2px solid var(--wsb-renk, #e2703a) !important;
	outline-offset: 1px !important;
	border-color: transparent !important;
	background: #fff !important;
}
html body .wsb-katman ::placeholder { color: #a9a9b0 !important; opacity: 1 !important; }

.wsb-ikili { display: flex; gap: 10px; margin-top: 14px; }
.wsb-ikili > div { flex: 1 1 0; min-width: 0; }

.wsb-kupu { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wsb-detay { margin-top: 16px; font-size: 12.5px; color: #5c5c63; }
.wsb-detay summary { cursor: pointer; color: #4a4a51; list-style: revert; }
.wsb-detay ul { margin: 8px 0 0; padding-left: 18px; }
.wsb-detay li { margin: 2px 0; }
.wsb-kvkk { margin: 8px 0 0; color: #8a8a90; font-size: 12px; }

.wsb-alt { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

html body .wsb-katman .wsb-gonder {
	display: inline-block !important;
	background: var(--wsb-renk, #e2703a) !important;
	color: #fff !important;
	border-radius: 9px !important;
	padding: 11px 20px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}
html body .wsb-katman .wsb-gonder[disabled] { opacity: .6 !important; cursor: default !important; }

.wsb-durum { font-size: 13px; color: #5c5c63; }
.wsb-durum.wsb-hata { color: #b3261e; }

.wsb-bitti {
	background: #f2f8f3;
	border: 1px solid #cfe6d4;
	color: #1a5c2a;
	border-radius: 9px;
	padding: 14px;
	font-size: 14px;
}

@media (max-width: 480px) {
	.wsb-ikili { display: block; }
	.wsb-ikili > div + div { margin-top: 12px; }
	.wsb-kutu { padding: 22px 18px 20px; }
	html body .wsb-ac.wsb-yuzen { right: 10px !important; bottom: 10px !important; font-size: 12px !important; padding: 8px 13px !important; }
	.wsb-balon { left: 10px; right: 10px; max-width: none; }
}
