/* Tarzını Seç — şans çarkı */

/* ---------- Sabit düğme ---------- */
.tsec-wheel-fab {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 90;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tsec-cta, #ea8f10);
	color: var(--tsec-cta-text, #1a1a1a);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(234, 143, 16, .45);
	cursor: pointer;
	animation: tsec-wheel-wiggle 4s ease-in-out infinite;
}
.tsec-wheel-fab:hover { background: var(--tsec-cta-hover, #d67c00); }
.tsec-wheel-fab:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 3px; }
.tsec-wheel-fab[hidden] { display: none; }
@keyframes tsec-wheel-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-6deg); } 94% { transform: rotate(6deg); } 97% { transform: rotate(-3deg); } }
.tsec-has-sticky-cart .tsec-wheel-fab { bottom: 88px; }

/* ---------- Pencere ---------- */
html.tsec-wheel-open { overflow: hidden; }
.tsec-wheel {
	width: min(880px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff7ec 0%, #ffe3bd 100%);
	color: #1a1a1a;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	/* Yalnızca gerçekten sığmadığında (küçük ekran) dikey kaydırma; animasyonlar kaydırma çubuğu çıkarmasın. */
	overflow: hidden auto;
	scrollbar-width: thin;
}
.tsec-wheel::backdrop { background: rgba(20, 12, 0, .6); backdrop-filter: blur(3px); }
.tsec-wheel[open] { animation: tsec-wheel-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes tsec-wheel-in { from { opacity: 0; transform: scale(.94) translateY(12px); } }
/* Tema düğme stilleri (boşluk, yükseklik, satır aralığı) işareti kaydırmasın diye hepsi açıkça sıfırlanır. */
.tsec-wheel__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(26, 26, 26, .08) !important;
	color: #1a1a1a !important;
	line-height: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.tsec-wheel__close svg { display: block; flex: none; }
.tsec-wheel__close:hover { background: rgba(26, 26, 26, .16) !important; transform: rotate(90deg); }
.tsec-wheel__close:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.tsec-wheel.is-spinning .tsec-wheel__close { opacity: .3; cursor: default; }
.tsec-wheel__layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 34px 34px 30px; }

/* ---------- Çark ---------- */
.tsec-wheel__stage { position: relative; width: 100%; max-width: 420px; margin: 8px auto 0; aspect-ratio: 1; }
.tsec-wheel__disc { width: 100%; height: 100%; transform: rotate(0deg); will-change: transform; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18)); }
.tsec-wheel__disc svg { display: block; width: 100%; height: 100%; font-family: var(--tsec-font, inherit); }
.tsec-wheel__pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	z-index: 1;
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 38px solid #1a1a1a;
	transform: translateX(-50%);
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3));
}

/* ---------- Form ve sonuç ---------- */
.tsec-wheel__panel h2 { margin: 0 0 8px; color: #1a1a1a; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.2; }
.tsec-wheel__sub { margin: 0 0 18px; color: #4a3b27; font-size: 15px; line-height: 1.55; }
.tsec-wheel__form { display: grid; gap: 10px; }
.tsec-wheel__form input[type="email"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #1a1a1a; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; }
.tsec-wheel__form input[type="email"]:focus { border-color: var(--tsec-cta, #ea8f10); outline: 0; box-shadow: 0 0 0 3px rgba(234, 143, 16, .3); }
.tsec-wheel__check { display: flex; align-items: flex-start; gap: 8px; color: #4a3b27; font-size: 12.5px; line-height: 1.45; cursor: pointer; }
.tsec-wheel__check input { flex: none; width: 16px; height: 16px; margin-top: 1px; accent-color: #1a1a1a; }
.tsec-wheel__check a { color: #1a1a1a; text-decoration: underline; }
.tsec-wheel__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tsec-wheel__spin, .tsec-wheel__cta {
	display: block;
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	padding: 14px 20px;
	border: 0;
	border-radius: 10px;
	background: #1a1a1a;
	color: #fff !important;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.tsec-wheel__spin:hover:not([disabled]), .tsec-wheel__cta:hover { background: #000; transform: translateY(-1px); }
.tsec-wheel__spin[disabled] { opacity: .7; cursor: progress; }
.tsec-wheel__error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdeeee; color: #9b1c1c; font-size: 14px; }
.tsec-wheel__error[hidden], .tsec-wheel__result[hidden], [data-tsec-wheel-form-wrap][hidden] { display: none; }

.tsec-wheel__result { text-align: center; }
.tsec-wheel__emoji { margin: 0; font-size: 46px; line-height: 1; animation: tsec-wheel-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tsec-wheel-pop { from { transform: scale(0); } }
.tsec-wheel__prize { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.tsec-wheel__code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px; border: 2px dashed #1a1a1a; border-radius: 10px; background: #fff; }
.tsec-wheel__code strong { font-size: 22px; letter-spacing: .08em; }
.tsec-wheel__copy { flex: none; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--tsec-cta, #ea8f10); color: #1a1a1a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tsec-wheel__note { margin: 10px 0 14px; color: #4a3b27; font-size: 12.5px; }

@media (max-width: 760px) {
	.tsec-wheel__layout { grid-template-columns: 1fr; gap: 14px; padding: 26px 18px 20px; }
	.tsec-wheel__stage { max-width: min(300px, 76vw); }
	.tsec-wheel__panel { text-align: center; }
	.tsec-wheel__check { text-align: left; }
	.tsec-wheel-fab { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.tsec-wheel-fab, .tsec-wheel[open], .tsec-wheel__emoji { animation: none; }
}

/* ---------- Panel (ayarlar) ---------- */
.tsec-wheel-admin__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.tsec-wheel-admin__stats > div { min-width: 140px; padding: 12px 16px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; }
.tsec-wheel-admin__stats strong { display: block; font-size: 24px; }
.tsec-wheel-admin__stats span { color: #646970; }
.tsec-wheel-admin__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.tsec-wheel-admin__card { margin-bottom: 16px; padding: 16px 18px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; }
.tsec-wheel-admin__card h2 { margin: 0 0 8px; font-size: 16px; }
.tsec-wheel-admin__card > label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 18px 4px 0; }
.tsec-wheel-admin__switch { display: flex !important; gap: 10px !important; font-size: 15px; cursor: pointer; }
.tsec-wheel-admin__switch input { width: 20px; height: 20px; }
.tsec-wheel-admin__switch span { display: grid; }
.tsec-wheel-admin__switch small { color: #646970; }
.tsec-wheel-admin__segments input[type="text"] { width: 100%; }
.tsec-wheel-admin__segments td { vertical-align: middle; }
.tsec-wheel-admin__pct { color: #646970; font-size: 12px; white-space: nowrap; }
.tsec-wheel-admin__preview { position: sticky; top: 48px; }
.tsec-wheel-admin__preview .tsec-wheel__stage { max-width: 320px; }
@media (max-width: 1100px) {
	.tsec-wheel-admin__grid { grid-template-columns: 1fr; }
	.tsec-wheel-admin__preview { position: static; }
}
