/* Bhojone Spin & Win promo (spin.js builds the markup) */
:root {
  --bsw-orange: #f97316;
  --bsw-orange-600: #ea580c;
  --bsw-orange-700: #c2410c;
  --bsw-orange-300: #fdba74;
  --bsw-orange-50: #fff7ed;
  --bsw-ink: #0f172a;
  --bsw-slate: #475569;
  --bsw-line: #e2e8f0;
  --bsw-gold: #fbbf24;
}

/* ---------- small animated wheel used in the banner, badge and pill ---------- */
.bsw-mini-wheel {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: conic-gradient(#fb923c 0 25%, #c2410c 0 50%, #fde68a 0 75%, #0f172a 0 100%);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  animation: bsw-mini-spin 6s linear infinite;
  flex-shrink: 0;
}
.bsw-mini-wheel::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 9999px;
  background: #fff;
}
.bsw-mini-wheel--lg { width: 44px; height: 44px; border-width: 3px; }
.bsw-mini-wheel--sm { width: 20px; height: 20px; }
@keyframes bsw-mini-spin { to { transform: rotate(360deg); } }

/* ---------- floating pill, bottom-left ---------- */
.bsw-pill {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45; /* under the cookie banner (z-50) */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font: 700 14px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, .55), 0 0 0 4px rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  animation: bsw-pill-in .5s cubic-bezier(.2, .9, .3, 1.3) both 1.2s;
}
.bsw-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -5px rgba(234, 88, 12, .65), 0 0 0 4px rgba(255, 255, 255, .8); }
.bsw-pill:focus-visible { outline: 3px solid var(--bsw-ink); outline-offset: 3px; }
.bsw-pill__emoji { font-size: 18px; line-height: 1; }
.bsw-pill.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); animation: none; } /* the entry animation's fill would otherwise keep it visible */
@keyframes bsw-pill-in { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
html.bsw-lock, html.bsw-lock body { overflow: hidden; }

.bsw-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000; /* above page chrome, below confetti (9500) and the loader (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.bsw-overlay[hidden] { display: none; }
.bsw-overlay.is-open { opacity: 1; }

.bsw-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .45);
  padding: 28px 22px 22px;
  text-align: center;
  color: var(--bsw-ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.bsw-overlay.is-open .bsw-card { transform: none; }
.bsw-card::before { /* warm glow behind the heading */
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: 420px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(249, 115, 22, .18), transparent);
  pointer-events: none;
}

.bsw-iconbtn {
  position: absolute;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--bsw-slate);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.bsw-iconbtn:hover { background: #e2e8f0; color: var(--bsw-ink); }
.bsw-iconbtn:focus-visible { outline: 3px solid var(--bsw-orange); outline-offset: 2px; }
.bsw-close { right: 12px; }
.bsw-sound { left: 12px; }
.bsw-sound[aria-pressed="true"] { background: var(--bsw-orange-50); color: var(--bsw-orange-600); }
.bsw-sound[hidden] { display: none; }
.bsw-iconbtn svg { width: 18px; height: 18px; }

.bsw-stage[hidden] { display: none; }
.bsw-stage { position: relative; animation: bsw-stage-in .45s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes bsw-stage-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.bsw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--bsw-orange-50);
  color: var(--bsw-orange-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bsw-title {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.bsw-title .bsw-accent { color: var(--bsw-orange-600); }
.bsw-sub { margin: 0 0 14px; color: var(--bsw-slate); font-size: 14px; font-weight: 500; line-height: 1.5; }

/* wheel */
.bsw-wheel-wrap {
  position: relative;
  width: min(300px, 100%, 44vh);
  aspect-ratio: 1 / 1;
  margin: 4px auto 18px;
}
.bsw-wheel-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bsw-rotor { transform-origin: 150px 150px; will-change: transform; }
.bsw-pointer { transform-origin: 150px 20px; transition: transform .16s cubic-bezier(.2, 1.6, .4, 1); }
.bsw-pointer.is-tick { transition: transform .03s linear; }
.bsw-rotor { transition: filter .12s linear; }
.bsw-wheel-wrap.is-win { animation: bsw-winpulse 1.1s cubic-bezier(.2, .8, .2, 1) 2; border-radius: 50%; }
@keyframes bsw-winpulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55), 0 0 0 0 rgba(251, 191, 36, .35); transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { box-shadow: 0 0 0 34px rgba(249, 115, 22, 0), 0 0 0 70px rgba(251, 191, 36, 0); transform: scale(1); }
}
.bsw-card.is-win { animation: bsw-cardpop .8s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes bsw-cardpop { 0% { transform: scale(1); } 35% { transform: scale(1.035) rotate(-.6deg); } 70% { transform: scale(.99) rotate(.3deg); } 100% { transform: none; } }
.bsw-btn--won { animation: bsw-wonbtn .7s cubic-bezier(.2, 1.5, .4, 1) both; background: linear-gradient(135deg, #22c55e, #16a34a) !important; box-shadow: 0 12px 24px -8px rgba(22, 163, 74, .6) !important; opacity: 1 !important; }
@keyframes bsw-wonbtn { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: none; } }
.bsw-bulb { animation: bsw-bulb 1.2s ease-in-out infinite; }
.bsw-bulb.is-alt { animation-delay: .6s; }
.bsw-spinning .bsw-bulb { animation-duration: .35s; }
@keyframes bsw-bulb { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.bsw-seg-label { font-family: 'Outfit', sans-serif; font-weight: 800; }

.bsw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  font: 800 16px/1.1 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
  text-decoration: none;
}
.bsw-btn:focus-visible { outline: 3px solid var(--bsw-ink); outline-offset: 3px; }
.bsw-btn--primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(234, 88, 12, .6);
}
.bsw-btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 28px -8px rgba(234, 88, 12, .7); }
.bsw-btn--primary:disabled { opacity: .65; cursor: default; }
.bsw-btn--spin {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  letter-spacing: .2em;
  padding: 16px 20px;
  animation: bsw-pulse 1.8s ease-in-out infinite;
}
.bsw-btn--spin:disabled { animation: none; }
@keyframes bsw-pulse {
  0%, 100% { box-shadow: 0 12px 24px -8px rgba(234, 88, 12, .6), 0 0 0 0 rgba(249, 115, 22, .45); }
  50% { box-shadow: 0 12px 24px -8px rgba(234, 88, 12, .6), 0 0 0 10px rgba(249, 115, 22, 0); }
}
.bsw-btn--wa { background: #25d366; color: #fff; box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .7); }
.bsw-btn--wa:hover { transform: translateY(-1px); }
.bsw-btn--ghost { background: #f1f5f9; color: var(--bsw-ink); }
.bsw-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.bsw-fine { margin: 12px 0 0; font-size: 12px; color: #94a3b8; font-weight: 500; }

/* result */
.bsw-prize {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 4px auto 12px;
  padding: 12px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(234, 88, 12, .7);
  animation: bsw-pop .6s cubic-bezier(.2, 1.4, .4, 1) both .1s;
}
.bsw-prize__big { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; line-height: 1; }
.bsw-prize__small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .92; margin-top: 4px; }
.bsw-popper { position: absolute; top: -12px; font-size: 26px; line-height: 1; }
.bsw-popper--l { left: -24px; animation: bsw-popper 1s ease-out both .25s; }
.bsw-popper--r { right: -24px; animation: bsw-popper-r 1s ease-out both .25s; }
@keyframes bsw-pop { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
@keyframes bsw-popper { 0% { opacity: 0; transform: scale(.3) rotate(30deg); } 60% { opacity: 1; transform: scale(1.3) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
@keyframes bsw-popper-r { 0% { opacity: 0; transform: scaleX(-1) scale(.3) rotate(30deg); } 60% { opacity: 1; transform: scaleX(-1) scale(1.3) rotate(-12deg); } 100% { opacity: 1; transform: scaleX(-1); } }

/* form */
.bsw-form { text-align: left; display: grid; gap: 12px; margin-top: 6px; animation: bsw-stage-in .5s cubic-bezier(.2, .9, .3, 1.1) both .35s; }
.bsw-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #334155; }
.bsw-input,
.bsw-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--bsw-line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--bsw-ink);
  font: 500 15px/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.bsw-input:focus,
.bsw-select:focus { border-color: var(--bsw-orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.bsw-input[aria-invalid="true"],
.bsw-select[aria-invalid="true"] { border-color: #ef4444; }
.bsw-select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
.bsw-select:invalid { color: #94a3b8; }
.bsw-select option { color: var(--bsw-ink); }
.bsw-phone { display: flex; align-items: stretch; border: 1px solid var(--bsw-line); border-radius: 12px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.bsw-phone:focus-within { border-color: var(--bsw-orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.bsw-phone.is-invalid { border-color: #ef4444; }
.bsw-phone__cc { display: flex; align-items: center; padding: 0 12px; background: #f8fafc; border-right: 1px solid var(--bsw-line); font-weight: 700; color: var(--bsw-slate); font-size: 15px; }
.bsw-phone .bsw-input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; letter-spacing: .04em; }
.bsw-hint { margin: 5px 0 0; font-size: 12px; color: #dc2626; font-weight: 600; }
.bsw-hint:empty { display: none; }

.bsw-alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  animation: bsw-shake .4s ease both;
}
.bsw-alert[hidden] { display: none; }
.bsw-alert a { color: #15803d; font-weight: 800; text-decoration: underline; }
@keyframes bsw-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.bsw-spinner { width: 18px; height: 18px; box-sizing: border-box; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 9999px; animation: bsw-mini-spin .7s linear infinite; }

/* coupon */
.bsw-coupon {
  position: relative;
  margin: 14px 0 12px;
  padding: 16px 14px 14px;
  border: 2px dashed var(--bsw-orange-300);
  border-radius: 16px;
  background: var(--bsw-orange-50);
}
.bsw-coupon__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bsw-orange-700); margin-bottom: 8px; }
.bsw-coupon__row { display: flex; gap: 8px; align-items: stretch; }
.bsw-code {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--bsw-ink);
  font: 800 24px/1.1 'Outfit', ui-monospace, monospace;
  letter-spacing: .06em;
  text-align: center;
  outline: none;
  -webkit-user-select: all;
  user-select: all;
}
.bsw-code:focus { box-shadow: 0 0 0 3px rgba(249, 115, 22, .3); }
.bsw-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--bsw-ink);
  color: #fff;
  font: 700 14px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer;
}
.bsw-copy:focus-visible { outline: 3px solid var(--bsw-orange); outline-offset: 2px; }
.bsw-copy.is-done { background: #15803d; }
.bsw-copy svg { width: 16px; height: 16px; }
.bsw-note { margin: 0 0 16px; font-size: 14px; color: var(--bsw-slate); line-height: 1.5; font-weight: 500; }
.bsw-actions { display: grid; gap: 10px; }

.bsw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 420px) {
  .bsw-card { padding: 32px 28px 26px; }
  .bsw-title { font-size: 32px; }
}
@media (max-width: 380px) {
  .bsw-card { padding: 26px 16px 18px; }
  .bsw-title { font-size: 26px; }
  .bsw-code { font-size: 20px; letter-spacing: .03em; }
  .bsw-pill { left: 12px; bottom: 12px; padding: 9px 14px 9px 9px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .bsw-mini-wheel, .bsw-bulb, .bsw-btn--spin, .bsw-pill, .bsw-prize, .bsw-popper, .bsw-stage, .bsw-form, .bsw-alert, .bsw-wheel-wrap.is-win, .bsw-card.is-win, .bsw-btn--won { animation: none !important; }
  .bsw-overlay, .bsw-card { transition: none; }
}
