.sosna-wheel-lottery,
.sosna-wheel-lottery *,
.sosna-wheel-popup,
.sosna-wheel-popup * {
  box-sizing: border-box !important;
}

.sosna-wheel-lottery {
  --swl-gold: #d7a74a;
  --swl-gold-light: #ffe191;
  --swl-dark: #151515;
  --swl-wheel-size: clamp(270px, 35vh, 340px);
  width: min(100%, 760px) !important;
  margin: 28px auto !important;
  padding: clamp(16px, 2.4vw, 26px) !important;
  border-radius: 28px !important;
  background: radial-gradient(circle at top, rgba(215,167,74,.18), rgba(21,21,21,.995) 50%), #151515 !important;
  color: #fff !important;
  font-family: inherit !important;
  text-align: center !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.24) !important;
  isolation: isolate !important;
}

.sosna-wheel-lottery.is-in-popup {
  margin: 0 !important;
  width: min(100%, 760px) !important;
  max-height: none !important;
  padding: clamp(14px, 2vh, 22px) !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 10px !important;
}

.sosna-wheel-lottery.is-in-popup.has-result {
  width: min(100%, 860px) !important;
  --swl-wheel-size: clamp(285px, 38vh, 350px);
  grid-template-columns: minmax(300px, 380px) minmax(300px, 1fr) !important;
  grid-template-areas:
    "copy copy"
    "stage result" !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 26px !important;
  row-gap: 12px !important;
}

.sosna-wheel-lottery.is-in-popup .swl-copy { width: 100% !important; }
.sosna-wheel-lottery.is-in-popup.has-result .swl-copy { grid-area: copy !important; }
.sosna-wheel-lottery.is-in-popup.has-result .swl-stage { grid-area: stage !important; }
.sosna-wheel-lottery.is-in-popup.has-result .swl-result { grid-area: result !important; }

.swl-title {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(25px, 2.45vw, 36px) !important;
  line-height: 1.08 !important;
  font-weight: 400 !important;
  letter-spacing: -.03em !important;
}
.sosna-wheel-lottery.is-in-popup .swl-title { font-size: clamp(25px, 2.1vw, 33px) !important; }

.swl-intro {
  max-width: 680px !important;
  margin: 0 auto 8px !important;
  color: rgba(255,255,255,.90) !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}
.swl-intro p { margin: 0 0 5px !important; }

.swl-stage {
  display: grid !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.swl-wheel-wrap {
  position: relative !important;
  width: var(--swl-wheel-size) !important;
  height: var(--swl-wheel-size) !important;
  min-width: var(--swl-wheel-size) !important;
  min-height: var(--swl-wheel-size) !important;
  max-width: var(--swl-wheel-size) !important;
  max-height: var(--swl-wheel-size) !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.swl-wheel {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: var(--swl-wheel-size) !important;
  height: var(--swl-wheel-size) !important;
  min-width: var(--swl-wheel-size) !important;
  min-height: var(--swl-wheel-size) !important;
  max-width: var(--swl-wheel-size) !important;
  max-height: var(--swl-wheel-size) !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  transform-origin: 50% 50% !important;
  transition: transform 5.2s cubic-bezier(.12,.72,.08,1);
  will-change: transform;
}

.swl-wheel-svg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  display: block !important;
  border-radius: 50% !important;
  z-index: 1 !important;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.30));
}

.swl-svg-segment {
  stroke: rgba(255,255,255,.68) !important;
  stroke-width: .42 !important;
  vector-effect: non-scaling-stroke;
  transition: filter .25s ease, stroke-width .25s ease, stroke .25s ease, opacity .25s ease;
}
.swl-svg-segment.is-selected {
  stroke: #fff !important;
  stroke-width: 2.2 !important;
  filter: brightness(1.25) drop-shadow(0 0 3px rgba(255,255,255,.85));
}
.swl-svg-rim-outer {
  fill: none !important;
  stroke: rgba(21,21,21,.80) !important;
  stroke-width: 4.2 !important;
  vector-effect: non-scaling-stroke;
}
.swl-svg-rim-inner {
  fill: none !important;
  stroke: rgba(255,255,255,.32) !important;
  stroke-width: 1.2 !important;
  vector-effect: non-scaling-stroke;
}
.swl-svg-label,
.swl-svg-label tspan {
  font-family: inherit !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-anchor: middle !important;
  dominant-baseline: middle !important;
  paint-order: stroke !important;
  stroke: rgba(0,0,0,.18) !important;
  stroke-width: .24px !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}

.swl-wheel::after {
  content: "";
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 5 !important;
  width: calc(var(--swl-wheel-size) * .155) !important;
  height: calc(var(--swl-wheel-size) * .155) !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #fff6d9, var(--swl-gold)) !important;
  border: 5px solid rgba(21,21,21,.92) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.28) !important;
}

.swl-pointer {
  position: absolute !important;
  top: -18px !important;
  left: 50% !important;
  z-index: 10 !important;
  width: 0 !important;
  height: 0 !important;
  transform: translateX(-50%) !important;
  border-left: 16px solid transparent !important;
  border-right: 16px solid transparent !important;
  border-top: 31px solid #fff !important;
  border-bottom: 0 !important;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.34));
}

.swl-spin-button,
.swl-claim-button,
.swl-result-ok {
  appearance: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--swl-gold-light), var(--swl-gold)) !important;
  color: #151515 !important;
  cursor: pointer !important;
  font: inherit !important;
  font-weight: 850 !important;
  letter-spacing: .01em !important;
  padding: 12px 30px !important;
  min-height: 46px !important;
  min-width: 150px !important;
  text-align: center !important;
  box-shadow: 0 12px 26px rgba(215,167,74,.25) !important;
}
.sosna-wheel-lottery.has-result .swl-spin-button { display: none !important; }
.swl-spin-button:disabled, .swl-claim-button:disabled { cursor: wait !important; opacity: .72 !important; }
.swl-spin-button,
.swl-claim-button,
.swl-result-ok,
.swl-popup-close,
.sosna-wheel-lottery a {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, opacity .18s ease, text-decoration-color .18s ease !important;
}
.swl-spin-button:hover:not(:disabled),
.swl-claim-button:hover:not(:disabled),
.swl-result-ok:hover,
.swl-spin-button:focus-visible,
.swl-claim-button:focus-visible,
.swl-result-ok:focus-visible {
  background: linear-gradient(135deg, #fff0b9, #f1c968) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 34px rgba(215,167,74,.38) !important;
  outline: 2px solid rgba(255,255,255,.70) !important;
  outline-offset: 3px !important;
}
.swl-popup-close:hover,
.swl-popup-close:focus-visible {
  background: #d7a74a !important;
  color: #151515 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 10px 24px rgba(215,167,74,.34) !important;
  outline: 2px solid rgba(255,255,255,.75) !important;
  outline-offset: 3px !important;
}
.sosna-wheel-lottery a {
  color: #ffdf8a !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
}
.sosna-wheel-lottery a:hover,
.sosna-wheel-lottery a:focus-visible {
  color: #fff0b9 !important;
  text-decoration-thickness: 2px !important;
  outline: none !important;
}

.swl-final-result {
  width: min(100%, 350px) !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(255,228,163,.98), rgba(215,167,74,.96)) !important;
  color: #151515 !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  text-align: center !important;
  box-shadow: 0 12px 26px rgba(215,167,74,.24) !important;
}

.swl-result {
  display: none;
  width: min(100%, 430px) !important;
  margin: 12px auto 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.08) !important;
}
.sosna-wheel-lottery.has-result .swl-result { display: block !important; }
.sosna-wheel-lottery.is-in-popup.has-result .swl-result { margin: 0 !important; width: 100% !important; }

.swl-result-message {
  display: flex !important;
  min-height: 74px !important;
  margin: 0 0 10px !important;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(255,228,163,.98), rgba(215,167,74,.96)) !important;
  color: #151515 !important;
  font-size: 16px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}
.swl-won-label {
  display: block !important;
  margin-bottom: 4px !important;
  color: #151515 !important;
  font-size: 1.25em !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
}

.swl-claim-form {
  display: none;
  gap: 8px !important;
  text-align: left !important;
}
.sosna-wheel-lottery.has-claim .swl-claim-form { display: grid !important; }
.sosna-wheel-lottery.has-message-result .swl-claim-form { display: none !important; }

.swl-email-label span,
.swl-consent-label span {
  display: block !important;
  margin-bottom: 5px !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}
.swl-email-label input[type="email"] {
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.95) !important;
  color: #151515 !important;
  padding: 0 12px !important;
  font: inherit !important;
}
.swl-consent-label {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: start !important;
  gap: 7px !important;
}
.swl-consent-label input { margin-top: 3px !important; }
.swl-consent-label a { color: #ffdf8a !important; font-weight: 800 !important; }
.swl-claim-button { width: 100% !important; margin-top: 2px !important; }
.swl-result-ok { display: inline-flex; align-items: center; justify-content: center; margin-top: 6px !important; }

.swl-status {
  min-height: 18px !important;
  margin-top: 7px !important;
  color: #d7ffd7 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
.swl-status.is-error { color: #ffd4d4 !important; }
.swl-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.sosna-wheel-popup {
  --swl-popup-top-offset: 104px;
  --swl-popup-available-height: calc(100dvh - var(--swl-popup-top-offset, 0px) - 22px);
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: calc(var(--swl-popup-top-offset) + env(safe-area-inset-top, 0px) + 10px) 18px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  pointer-events: none !important;
}
.sosna-wheel-popup.is-open { display: flex !important; pointer-events: auto !important; }
.swl-popup-backdrop { position: fixed !important; inset: 0 !important; z-index: 0 !important; background: rgba(0,0,0,.82) !important; backdrop-filter: blur(4px); }
.swl-popup-dialog {
  position: relative !important;
  z-index: 2147483647 !important;
  width: min(100%, 900px) !important;
  max-height: none !important;
  overflow: visible !important;
  margin-bottom: 18px !important;
  border-radius: 30px !important;
  outline: none !important;
}
.swl-popup-close {
  position: absolute !important;
  top: 8px !important;
  right: -48px !important;
  z-index: 2147483647 !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.94) !important;
  color: #151515 !important;
  cursor: pointer !important;
  font-size: 28px !important;
  line-height: 1 !important;
  padding: 0 !important;
}
html.swl-popup-open { overflow: hidden !important; }
.swl-admin-warning { padding: 12px 14px; border-left: 4px solid #d63638; background: #fff1f1; color: #1d2327; }

.sosna-wheel-lottery [hidden],
.sosna-wheel-lottery .swl-result[hidden],
.sosna-wheel-lottery .swl-claim-form[hidden],
.sosna-wheel-lottery .swl-result-ok[hidden],
.sosna-wheel-lottery .swl-final-result[hidden],
.sosna-wheel-lottery .swl-result-message[hidden] { display: none !important; }
.sosna-wheel-lottery .swl-claim-form[style*="display: none"],
.sosna-wheel-lottery .swl-result[style*="display: none"],
.sosna-wheel-lottery .swl-final-result[style*="display: none"] { display: none !important; }

/* Mobile/short viewport safety: content may scroll inside overlay instead of being clipped. */
@media (max-width: 760px), (max-height: 680px) {
  .sosna-wheel-popup {
    align-items: flex-start !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .swl-popup-dialog {
    margin-bottom: 26px !important;
  }
  .sosna-wheel-lottery.is-in-popup,
  .sosna-wheel-lottery.is-in-popup.has-result {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 760px) {
  .sosna-wheel-lottery.is-in-popup,
  .sosna-wheel-lottery.is-in-popup.has-result {
    width: min(100%, 520px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    --swl-wheel-size: clamp(250px, 35vh, 310px);
  }
  .swl-title { font-size: 25px !important; }
  .swl-intro { font-size: 13px !important; margin-bottom: 8px !important; }
  .swl-popup-dialog { width: min(100%, 540px) !important; }
  .swl-popup-close { right: 0 !important; top: -46px !important; }
  .swl-result { width: 100% !important; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .sosna-wheel-lottery.is-in-popup { --swl-wheel-size: clamp(250px, 34vh, 310px); padding: 14px !important; }
  .sosna-wheel-lottery.is-in-popup.has-result { --swl-wheel-size: clamp(270px, 36vh, 330px); padding: 14px !important; }
  .swl-title { font-size: 27px !important; }
  .swl-intro { font-size: 13px !important; margin-bottom: 8px !important; }
  .swl-result-message { min-height: 62px !important; font-size: 15px !important; }
}
