/* SpaGalaxy cookie notice — site look: Montserrat, black on white, square corners, no shadows.
   Desktop: card centred at the bottom (clear of the video teaser bottom-left and the chat launcher bottom-right).
   Mobile: compact bar ≤ 80px so the site's widgets (bottom: 80px) stay above it; grows into a sheet when expanded. */
.spg-cn, .spg-cn * { box-sizing: border-box; }
.spg-cn [hidden] { display: none !important; }

.spg-cn {
  position: fixed;
  z-index: 9990; /* below the site's chat (10010) and video (10005) widgets, above the page */
  left: 0;
  right: 0;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  font-family: Montserrat, Arial, sans-serif;
  color: #000;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
}
.spg-cn--in { opacity: 1; transform: none; }
.spg-cn--out { opacity: 0; transform: translateY(16px); pointer-events: none; }

.spg-cn__box {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px 24px 12px;
  border: 1px solid #222;
  background: #fff;
}

.spg-cn__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
}

.spg-cn__text {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}

/* expanded categories */
.spg-cn__details {
  margin: -4px 0 18px;
  padding-top: 14px;
  border-top: 1px solid #e3e3e3;
}
.spg-cn__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 12px;
  cursor: pointer;
}
.spg-cn__check {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #000;
  cursor: pointer;
}
.spg-cn__check:disabled { cursor: default; opacity: .6; }
.spg-cn__row-title, .spg-cn__row-help { display: block; }
.spg-cn__row-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: #000; }
.spg-cn__row-help { font-size: 12px; line-height: 1.4; color: #444; }
.spg-cn__policy {
  display: inline-block;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spg-cn__policy:hover { color: #000; text-decoration: none; }

.spg-cn__ok {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 36px;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  font: 600 13px/1 Montserrat, Arial, sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.spg-cn__ok:hover { background: #000; border-color: #000; color: #fff; }

.spg-cn__more {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 0; /* 12px type, ~37px hit area */
  border: 0;
  background: none;
  font: 400 12px/1.4 Montserrat, Arial, sans-serif;
  text-align: center;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.spg-cn__more:hover { color: #000; text-decoration: none; }

/* The theme has *:focus { outline: none !important } — keep a visible ring for keyboard users. */
.spg-cn__ok:focus, .spg-cn__more:focus, .spg-cn__policy:focus, .spg-cn__check:focus {
  outline: 2px solid #000 !important;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .spg-cn {
    left: 0; right: 0; bottom: 0;
    width: auto; max-width: none; margin: 0;
    background: #fff;
    border-top: 1px solid #222;
  }
  .spg-cn__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text ok" "more ok";
    align-items: center;
    column-gap: 14px;
    max-height: calc(100vh - 16px);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border: 0;
  }
  .spg-cn__kicker { display: none; }
  .spg-cn__text { grid-area: text; margin: 0; font-size: 12px; line-height: 1.35; }
  .spg-cn__ok { grid-area: ok; width: auto; min-height: 44px; padding: 0 22px; }
  .spg-cn__more { grid-area: more; width: auto; margin: 0; padding: 4px 0; text-align: left; }

  /* expanded: back to a stacked sheet, above the chat/video widgets while open */
  .spg-cn--open { z-index: 10020; }
  .spg-cn--open .spg-cn__box { display: block; padding: 18px 20px calc(14px + env(safe-area-inset-bottom)); }
  .spg-cn--open .spg-cn__kicker { display: block; }
  .spg-cn--open .spg-cn__text { margin: 0 0 16px; font-size: 13px; }
  .spg-cn--open .spg-cn__ok { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .spg-cn { transition: none; transform: none; }
}
