/* Cookie choice. Type, color, and shape come from the site tokens.
   No motion: the card is either here or it is not. */

.sec-consent {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.sec-consent-card {
  pointer-events: auto;
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
  padding: 16px 18px 16px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 20px;
  max-height: min(46vh, 280px);
  overflow: auto;
  overscroll-behavior: contain;
}

.sec-consent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}

.sec-consent-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.sec-consent-copy p {
  margin: 0;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.45;
}

.sec-consent-head a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-underline-offset: 3px;
}

.sec-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sec-consent-accept,
.sec-consent-reject {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.sec-consent-accept {
  background: var(--cream);
  color: var(--ink);
  border: 0;
}

.sec-consent-reject {
  background: var(--ink-3);
  color: var(--cream);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--cream) 42%, transparent);
}

body.sec-consent-open {
  padding-bottom: var(--sec-consent-space, 0px);
}

@media (min-width: 961px) {
  /* Keep the hero's last lines and the next band clear of the card. */
  body.sec-consent-open .offer {
    min-height: 100svh;
    align-items: start;
  }
  body.sec-consent-open .offer-cta + .get-h { margin-top: 8px; }
  body.sec-consent-open .get { margin-top: 16px; padding-top: 10px; }
  body.sec-consent-open .occasions { margin-top: 8px; }
}

.sec-consent[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  /* Sit under the fixed nav instead of over the player and the song button. */
  .sec-consent {
    top: 66px;
    bottom: auto;
    padding: 8px 12px 0;
  }

  body.sec-consent-open {
    padding-top: calc(66px + var(--sec-consent-space, 168px));
    padding-bottom: 0;
  }

  body.sec-consent-open .offer {
    padding-top: 12px;
  }

  .sec-consent-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    max-height: none;
  }

  .sec-consent-copy p {
    font-size: 15px;
    line-height: 1.4;
  }

  .sec-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sec-consent-accept,
  .sec-consent-reject {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .sec-consent {
    padding-top: 4px;
  }

  .sec-consent-card {
    gap: 8px;
    padding: 8px 12px 10px;
  }

  body.sec-consent-open .offer {
    padding-top: 0;
  }
}

@media (max-width: 380px) {
  .sec-consent-accept,
  .sec-consent-reject {
    padding: 10px 12px;
  }
}

.cookie-choice .sec-consent-actions {
  margin-top: 12px;
}

@media print {
  .sec-consent {
    display: none !important;
  }

  body.sec-consent-open {
    padding-top: 0;
    padding-bottom: 0;
  }
}
