/* ==========================================================================
   Cookie consent popup — restyled to match the new Fortune Wins app (fc-qa.notfc.com).
   The markup + an older inline <style> are injected by FC_HOME_URL/assets/cookie-consent-helper.js.
   Selectors are prefixed with `html body` so they win over that injected <style>,
   and every property the old style sets that the new design doesn't use is reset.
   ========================================================================== */
html body #cookie-consent-popup {
  position: fixed;
  right: 52px;
  bottom: 110px;
  left: auto;
  z-index: 999;
  box-sizing: border-box;
  width: 370px;
  max-width: none;
  margin: 0;
  padding: 56px 15px 40px;
  border: 2px solid #550077;
  border-radius: 40px;
  background: #200028;
  box-shadow: 0 4px 87.649px 0 rgba(193, 151, 255, .41), 0 0 40.478px 0 rgba(192, 153, 255, .17);
  color: #fcf0fe;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  text-align: center;
  overflow: visible;
}
html body #cookie-consent-popup * { box-sizing: border-box; }

html body #cookie-consent-popup .cookie-consent-icon {
  position: absolute;
  top: -22px;
  left: 50%;
  right: auto;
  width: 73px;
  height: 73px;
  transform: translateX(-50%);
  content: url("../images/cookie-consent/cookie.webp"); /* helper's src is relative to fortunewins.com */
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

html body #cookie-consent-popup .cookie-consent-title {
  margin: 0;
  color: #e9d8ff;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 29px;
  text-align: center;
  text-transform: uppercase;
}

html body #cookie-consent-popup .cookie-consent-copy {
  margin: 15px 0 0;
  color: #fcf0fe;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
  text-align: center;
}
html body #cookie-consent-popup .cookie-consent-copy a {
  color: #fcf0fe !important; /* beats `#cookie-consent-popup .cookie-consent-copy a` in style.css */
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 25px;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

html body #cookie-consent-popup .cookie-consent-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 15px;
}

html body #cookie-consent-popup .cookie-consent-btn {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
html body #cookie-consent-popup .cookie-consent-btn-label {
  position: relative;
  z-index: 1;
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .64px;
  text-align: center;
  text-transform: uppercase;
}
html body #cookie-consent-popup .cookie-consent-btn--secondary {
  color: #380642;
  background: radial-gradient(125.48% 50.5% at 50% 50%, #f5f1fb 0%, #c8aafa 77%, #c099ff 100%);
  box-shadow: 0 7px 8px 0 rgba(0, 0, 0, .35), 0 5px 0 0 #a57ce6, inset 0 1px 0 0 rgba(255, 255, 255, .35);
}
html body #cookie-consent-popup .cookie-consent-btn--primary {
  color: #4a200e;
  background: radial-gradient(85% 82% at 50% 50%, #f8efc4 0%, #f0d78a 35%, #e0ac6f 70%, #d4a04a 100%);
  box-shadow: 0 7px 8px 0 rgba(0, 0, 0, .35), 0 5px 0 0 #a86f35, inset 0 1px 0 0 rgba(255, 255, 255, .35);
}
@media (hover: hover) and (pointer: fine) {
  html body #cookie-consent-popup .cookie-consent-btn:hover { transform: translateY(-1px); filter: brightness(1.06) saturate(1.04); }
}
html body #cookie-consent-popup .cookie-consent-btn:focus-visible { outline: 3px solid #caa6ff; outline-offset: 3px; }
html body #cookie-consent-popup .cookie-consent-btn:active { transform: translateY(2px); filter: brightness(.96); }

@media screen and (max-width: 768px) {
  html body #cookie-consent-popup {
    width: calc(100% - 14px);
    max-width: 370px;
    right: 7px;
    left: 7px;
    margin: 0 0 0 auto;
    padding: 56px 15px 40px;
    border-radius: 32px;
  }
  /* undo the old helper's mobile overrides */
  html body #cookie-consent-popup .cookie-consent-icon { top: -22px; right: auto; }
  html body #cookie-consent-popup .cookie-consent-title { font-size: 20px; }
  html body #cookie-consent-popup .cookie-consent-copy,
  html body #cookie-consent-popup .cookie-consent-copy a { line-height: 25px; }
  html body #cookie-consent-popup .cookie-consent-btn { height: 40px; padding: 0 20px; }
  html body #cookie-consent-popup .cookie-consent-btn-label { font-size: 16px; line-height: 1; }
  html body #cookie-consent-popup .cookie-consent-actions { margin-top: 15px; gap: 12px; }
}
@media screen and (max-width: 639px) {
  html body #cookie-consent-popup { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media screen and (orientation: landscape) and (max-height: 500px) {
  html body #cookie-consent-popup { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html body #cookie-consent-popup .cookie-consent-btn { transition: none; }
  html body #cookie-consent-popup .cookie-consent-btn:hover,
  html body #cookie-consent-popup .cookie-consent-btn:active { transform: none; filter: none; }
}
