/* Woo Spin Wheel – ön yüz */
.wsw, .wsw * { box-sizing: border-box; }
.wsw [hidden] { display: none !important; }

.wsw { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "wheel head" "wheel panel"; grid-template-rows: auto auto; align-content: center; column-gap: 36px; align-items: center; padding: 36px; background: var(--wsw-bg, #fff); color: var(--wsw-text, #52606d); border-radius: var(--wsw-radius, 14px); font-size: 15px; line-height: 1.5; overflow: clip; }
.wsw--inline { max-width: 1000px; margin: 24px auto; box-shadow: 0 6px 28px rgba(15, 23, 42, .12); }

.wsw__head { grid-area: head; align-self: end; transition: opacity .25s; }
.wsw__panel { grid-area: panel; align-self: start; min-width: 0; padding-top: 4px; }
.wsw__wheel-col { grid-area: wheel; align-self: center; display: flex; background: radial-gradient(circle at 50% 52%, var(--wsw-tint, transparent) 0, transparent 66%); justify-content: center; padding: 26px 0 8px; }

.wsw__wheel { position: relative; width: min(100%, 500px); aspect-ratio: 1 / 1; container-type: inline-size; isolation: isolate; }
.wsw__wheel::before { content: ""; position: absolute; inset: 1.5%; border-radius: 50%; box-shadow: 0 14px 34px rgba(15, 23, 42, .26), 0 2px 6px rgba(15, 23, 42, .18); }
/* Dairesel kırpma: dönen katmanın köşeleri kaydırılabilir alanı büyütmez. */
.wsw__disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
/* Dönen katman: yalnızca transform değişir; içeriği önceden çizilmiş tek bitmap'tir. */
.wsw__rotor { position: absolute; inset: 0; will-change: transform; backface-visibility: hidden; transform: rotate(0deg); }
.wsw__canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }

.wsw .wsw__hub, .wsw .wsw__hub:hover, .wsw .wsw__hub:focus, .wsw .wsw__hub:active, .wsw .wsw__hub:disabled { position: absolute; inset: 0; margin: auto; width: 21%; height: 21%; padding: 0; border-radius: 50%; border: 6px solid #fff !important; color: #fff !important; font: inherit; font-size: clamp(10px, 3.4cqw, 17px); font-weight: 700; letter-spacing: .08em; text-transform: none; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 23, 42, .38), inset 0 0 0 2px rgba(255, 255, 255, .18); opacity: 1 !important; z-index: 2; background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%); -webkit-tap-highlight-color: transparent; transition: transform .18s ease, box-shadow .18s ease !important; will-change: transform; }
@media (hover: hover) { .wsw .wsw__hub:hover:not(:disabled) { transform: scale(1.07); box-shadow: 0 6px 18px rgba(0, 0, 0, .42); } }
.wsw .wsw__hub:active:not(:disabled) { transform: scale(.95); box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.wsw .wsw__hub:disabled { cursor: default; transform: none; }
.wsw[data-state="spinning"] .wsw__hub { transition: none !important; }
.wsw .wsw__hub:focus-visible { outline: 3px solid var(--wsw-btn-bg, #1f3a5f); outline-offset: 3px; }

.wsw__pointer { position: absolute; top: -5.6%; left: 50%; width: 10.5%; aspect-ratio: 56 / 70; margin-left: -5.25%; z-index: 3; pointer-events: none; will-change: transform; }

.wsw__logo { display: block; max-width: 140px; max-height: 52px; width: auto; height: auto; margin: 0 0 12px; }
.wsw__heading { margin: 0 0 8px; font-size: 30px; line-height: 1.18; font-weight: 800; color: var(--wsw-heading, #1f2933); }
.wsw__heading:focus { outline: none; }
.wsw__desc { margin: 0 0 18px; }
.wsw__test { position: absolute; top: 12px; left: 14px; z-index: 6; padding: 4px 10px; border-radius: 999px; background: #e9a23b; color: #1f2933; font-size: 11px; font-weight: 800; letter-spacing: .08em; pointer-events: none; }
.wsw__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wsw__state { transition: opacity .25s ease, transform .25s ease; }
.wsw__state.is-leaving { opacity: 0; transform: scale(.985); }
.wsw__state.is-entering { opacity: 0; transform: scale(.985); }

.wsw__prize { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: rgba(31, 58, 95, .06); text-align: center; }
.wsw__heading--prize { font-size: 24px; margin-bottom: 4px; }
.wsw__prize-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.wsw__prize-value { display: block; margin: 2px 0 8px; font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--wsw-btn-bg, #1f3a5f); }
.wsw__prize-value--sm { font-size: 28px; margin: 0 0 10px; }
.wsw__prize .wsw__desc { margin: 0; font-size: 14px; }

.wsw__field { margin: 0 0 12px; }
.wsw__label { display: block; margin: 0 0 4px; font-weight: 600; font-size: 13px; color: var(--wsw-heading, #1f2933); }
.wsw__req { color: #c0392b; }
.wsw__field input[type="text"], .wsw__field input[type="email"], .wsw__field input[type="tel"], .wsw__field select, .wsw__field textarea { width: 100%; padding: 12px 12px; min-height: 46px; border: 1px solid #cbd2d9; border-radius: 8px; background: #fff; color: #1f2933; font: inherit; line-height: 1.3; }
.wsw__field input:focus, .wsw__field select:focus, .wsw__field textarea:focus, .wsw__btn:focus-visible, .wsw__copy:focus-visible, .wsw-close:focus-visible { outline: 2px solid var(--wsw-btn-bg, #1f3a5f); outline-offset: 2px; }
.wsw__field [aria-invalid="true"] { border-color: #c0392b; }
.wsw__check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.wsw__check input { margin-top: 3px; flex: none; }
.wsw__check a { color: var(--wsw-btn-bg, #1f3a5f); text-decoration: underline; }
.wsw__options { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wsw__option { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.wsw__error { display: block; min-height: 0; margin-top: 3px; font-size: 12px; color: #c0392b; }
.wsw__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wsw__status { min-height: 20px; margin: 4px 0 8px; font-size: 13px; }
.wsw__state--ready .wsw__status { margin: 10px 0 0; text-align: center; }
.wsw__actions { display: grid; gap: 10px; }
.wsw__status.is-error { color: #c0392b; }

.wsw .wsw__btn, .wsw .wsw__btn:hover, .wsw .wsw__btn:focus, .wsw .wsw__btn:active, .wsw .wsw__btn:disabled { display: inline-block; width: 100%; min-height: 52px; padding: 14px 20px; border: 0 !important; border-radius: calc(var(--wsw-radius, 14px) * .6); background: var(--wsw-btn-bg, #1f3a5f) !important; color: var(--wsw-btn-color, #fff) !important; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none !important; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 23, 42, .18); transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease !important; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .wsw .wsw__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, .26); } }
.wsw .wsw__btn:active:not(:disabled) { transform: translateY(0) scale(.99); box-shadow: 0 3px 8px rgba(15, 23, 42, .2); }
.wsw .wsw__btn:disabled { opacity: .65; cursor: not-allowed; }
.wsw .wsw__btn:focus-visible, .wsw .wsw__hub:focus-visible { outline: 3px solid var(--wsw-btn-bg, #1f3a5f) !important; outline-style: solid !important; outline-offset: 3px; }
.wsw .wsw__btn--ghost, .wsw .wsw__btn--ghost:hover, .wsw .wsw__btn--ghost:focus, .wsw .wsw__btn--ghost:active { background: transparent !important; color: var(--wsw-btn-bg, #1f3a5f) !important; border: 2px solid var(--wsw-btn-bg, #1f3a5f) !important; box-shadow: none; }
@media (hover: hover) { .wsw .wsw__btn--ghost:hover:not(:disabled) { background: rgba(15, 23, 42, .06) !important; box-shadow: none; } }

.wsw__coupon { margin: 4px 0 14px; padding: 14px; border: 2px dashed var(--wsw-btn-bg, #1f3a5f); border-radius: 10px; text-align: center; }
.wsw__coupon-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.wsw__coupon-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 6px 0; flex-wrap: wrap; }
.wsw__coupon-code { font-size: 26px; font-weight: 800; letter-spacing: 2px; color: var(--wsw-heading, #1f2933); background: transparent; padding: 0; }
.wsw .wsw__copy, .wsw .wsw__copy:hover, .wsw .wsw__copy:focus { min-height: 40px; padding: 8px 14px; border: 1px solid var(--wsw-btn-bg, #1f3a5f) !important; border-radius: 6px; background: #fff !important; color: var(--wsw-btn-bg, #1f3a5f) !important; font: inherit; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; transition: background .15s ease !important; }
@media (hover: hover) { .wsw .wsw__copy:hover { background: rgba(15, 23, 42, .06) !important; } }
.wsw__coupon-expiry { display: block; font-size: 12px; }
.wsw__conditions { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--wsw-heading, #1f2933); }
.wsw__conditions[hidden] { display: none; }
.wsw__note { margin: 0 0 14px; font-size: 13px; }
.wsw__note:empty { display: none; }

/* Modal */
.wsw-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.wsw-modal[hidden] { display: none; }
.wsw-modal.is-open { opacity: 1; }
.wsw-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); }
.wsw-dialog { position: relative; width: 100%; max-width: 1020px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--wsw-radius, 14px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: translateY(14px) scale(.98); transition: transform .25s; background: #fff; }
.wsw-modal.is-open .wsw-dialog { transform: none; }
.wsw-dialog:focus { outline: none; }
.wsw-dialog .wsw { border-radius: inherit; }
.wsw-modal .wsw-close, .wsw-modal .wsw-close:hover, .wsw-modal .wsw-close:focus { position: sticky; top: 8px; display: block; margin: 8px 10px -48px auto; z-index: 5; width: 40px; height: 40px; padding: 0; border: 0 !important; border-radius: 50%; background: rgba(15, 23, 42, .08) !important; color: #1f2933 !important; font-size: 24px; line-height: 1; box-shadow: none; cursor: pointer; transition: background .15s ease !important; }
@media (hover: hover) { .wsw-modal .wsw-close:hover { background: rgba(15, 23, 42, .16) !important; } }
html.wsw-lock { overflow: hidden; }
/* Popup açıkken arka sayfanın CSS animasyonları durur (çarka işlemci kalsın). */
html.wsw-lock body > :not(.wsw-modal), html.wsw-lock body > :not(.wsw-modal) *, html.wsw-lock body > :not(.wsw-modal)::before, html.wsw-lock body > :not(.wsw-modal)::after, html.wsw-lock body > :not(.wsw-modal) *::before, html.wsw-lock body > :not(.wsw-modal) *::after { animation-play-state: paused !important; }

.wsw-trigger { display: inline-block; padding: 12px 24px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.wsw-admin-note { padding: 10px 14px; background: #fff3d6; border-left: 4px solid #e9a23b; font-size: 13px; }

@media (max-width: 860px) {
	.wsw { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "wheel" "panel"; grid-template-rows: auto; row-gap: 6px; padding: 52px 16px 24px; }
	.wsw__head { text-align: center; align-self: auto; }
	.wsw__logo { margin-left: auto; margin-right: auto; }
	.wsw__heading { font-size: 24px; }
	.wsw__desc { margin-bottom: 8px; }
	.wsw__wheel-col { padding: 22px 0 6px; transition: max-height .35s ease, opacity .3s ease, padding .35s ease; max-height: 600px; }
	.wsw__wheel { width: min(88vw, 420px); }
	.wsw__panel { padding-top: 10px; }
	/* Ödül kazanıldıktan sonra çark küçülür; form/kupon görünür kalır. */
	.wsw.is-compact .wsw__wheel-col { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
	.wsw.is-compact { padding-top: 48px; }
	.wsw-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
	.wsw-modal { padding: 8px; }
	.wsw--inline { padding-top: 22px; }
	.wsw__prize-value { font-size: 30px; }
}

@media (max-width: 380px) {
	.wsw { padding-left: 12px; padding-right: 12px; }
	.wsw__heading { font-size: 21px; }
	.wsw__coupon-code { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.wsw-modal, .wsw-dialog, .wsw__state, .wsw__wheel-col, .wsw .wsw__hub, .wsw .wsw__btn { transition-duration: .01ms !important; }
	.wsw__state.is-entering, .wsw__state.is-leaving { transform: none; }
}
.wsw-trigger { text-transform: none; letter-spacing: normal; }
