/* GoRower cookies: Figma 229:737 / 235:816 / 249:1275. */
.cookie-consent,
.cookie-consent *,
.cookie-consent *::before,
.cookie-consent *::after,
.cookie-consent-backdrop { box-sizing: border-box; }

.cookie-consent {
  --cookie-border: #dde1dd;
  --cookie-outline: #737b71;
  --cookie-muted: #565d63;
  --cookie-soft: #f4f6f2;
  position: fixed;
  left: var(--hero-gutter, 24px);
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 30020;
  width: min(480px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 24px;
  border: 1px solid var(--cookie-border);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 32px rgb(20 31 10 / 12%);
  font-family: var(--font-sans);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity 180ms ease-out;
}
.cookie-consent[hidden],
.cookie-consent-view[hidden],
.cookie-consent-backdrop[hidden] { display: none; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-consent-view-main { display: grid; gap: 12px; }
.cookie-consent-intro { display: flex; gap: 12px; align-items: center; }
.cookie-consent-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #ecf8da; }
.cookie-consent-icon img { width: 24px; height: 24px; }
.cookie-consent h2 { min-width: 0; margin: 0; color: var(--ink); font-size: 24px; font-weight: 800; line-height: 32px; letter-spacing: 0; }
.cookie-consent-description,
.cookie-settings-description { margin: 0; color: var(--cookie-muted); font-size: 15px; font-weight: 400; line-height: 23px; }
.cookie-consent-actions { display: grid; gap: 8px; }
.cookie-consent-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cookie-consent-button,
.cookie-text-action,
.cookie-settings-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  font: 700 14px/20px var(--font-sans);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cookie-consent-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--cookie-outline);
  border-radius: 999px;
  background: #fff;
  transition: background-color 140ms ease, transform 140ms ease;
}
.cookie-consent-button-primary { border-color: transparent; background: var(--lime); }
.cookie-text-action { min-height: 44px; padding: 8px 4px; border: 0; border-radius: 8px; background: transparent; text-decoration: none; }
.cookie-consent :is(button, a, summary):focus-visible,
.cookie-settings-toggle-control:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.cookie-consent-button:active { transform: scale(0.985); }
@media (hover: hover) {
  .cookie-consent-button:hover { background: var(--cookie-soft); }
  .cookie-consent-button-primary:hover { background: var(--lime-hover); }
  .cookie-text-action:hover { background: var(--cookie-soft); }
  .cookie-settings-icon-button:hover { background: #e9ede5; }
}
.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30010;
  background: rgb(17 17 17 / 26%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.cookie-consent-backdrop.is-visible { opacity: 1; }
.cookie-consent.is-settings {
  top: 50%;
  bottom: auto;
  left: 50%;
  width: min(640px, calc(100vw - 48px));
  height: min(620px, calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.cookie-consent.is-settings.is-visible { transform: translate(-50%, -50%); }
.cookie-settings { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
.cookie-settings-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-settings-icon-button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--cookie-soft); }
.cookie-settings-icon-button img { width: 24px; height: 24px; }
.cookie-title-mobile { display: none; }
.cookie-settings-scroll { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 3px; margin: -3px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cookie-settings-list { display: grid; gap: 12px; }
.cookie-settings-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; border-radius: 16px; background: var(--cookie-soft); }
.cookie-category-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.cookie-category-heading h3 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; }
.cookie-category-locked { display: flex; align-items: center; gap: 4px; color: var(--cookie-muted); font-size: 13px; line-height: 20px; }
.cookie-category-locked img { width: 16px; height: 16px; }
.cookie-settings-row p { margin: 0; color: var(--cookie-muted); font-size: 15px; font-weight: 400; line-height: 23px; }
.cookie-settings-row small { color: var(--cookie-muted); font-size: 13px; font-weight: 400; line-height: 20px; }
.cookie-settings-toggle-control { position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 44px; border-radius: 6px; cursor: pointer; }
.cookie-settings-toggle-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-settings-switch { display: block; width: 44px; height: 24px; background: url("/assets/cookies/toggle-off.svg") center / contain no-repeat; pointer-events: none; }
.cookie-settings-toggle-control input:checked + .cookie-settings-switch { background-image: url("/assets/cookies/toggle-on.svg"); }
.cookie-measurement-details summary { display: flex; align-items: center; min-height: 44px; width: fit-content; border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-measurement-details p { margin-top: 4px; font-size: 13px; line-height: 20px; }
.cookie-settings-footer { display: grid; flex: 0 0 auto; gap: 8px; padding-top: 8px; border-top: 1px solid var(--cookie-border); background: #fff; }
.cookie-settings-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

@media (min-width: 600px) and (max-width: 1023px) {
  .cookie-consent:not(.is-settings) { left: 50%; width: min(640px, calc(100vw - 48px)); transform: translate(-50%, 0); }
  .cookie-consent:not(.is-settings).is-visible { transform: translate(-50%, 0); }
  .cookie-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 599px) {
  .cookie-consent {
    left: max(16px, env(safe-area-inset-left));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 20px;
  }
  .cookie-consent.is-settings { width: calc(100vw - 32px); height: min(740px, calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
  .cookie-settings { gap: 8px; }
  .cookie-settings-scroll,
  .cookie-settings-list { gap: 8px; }
  .cookie-title-desktop { display: none; }
  .cookie-title-mobile { display: inline; }
  .cookie-settings-actions { grid-template-columns: 1fr; }
  .cookie-settings-footer { gap: 4px; padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent-backdrop,
  .cookie-consent-button { transition: none; }
  .cookie-consent-button:active { transform: none; }
  .cookie-consent-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
