
.cookie-consent-shell {
  position: fixed;
  z-index: 2147483000;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  pointer-events: none;
  font-family: "Montserrat", "Avenir Next", "Century Gothic", Arial, system-ui, sans-serif;
}
.cookie-consent-shell[hidden],
.cookie-consent-panel [hidden] {
  display: none !important;
}
.cookie-consent-panel {
  box-sizing: border-box;
  width: min(1120px, 100%);
  max-height: min(760px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  border: 1px solid oklch(0.89 0.018 178);
  border-radius: 18px;
  background: oklch(0.985 0.006 170);
  color: oklch(0.25 0.035 210);
  box-shadow: 0 22px 64px oklch(0.25 0.035 210 / 0.2);
  pointer-events: auto;
  animation: cookie-consent-enter 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cookie-consent-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.cookie-consent-copy {
  min-width: 0;
  max-width: 68ch;
}
.cookie-consent-kicker {
  margin: 0 0 7px;
  color: oklch(0.48 0.085 183);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}
.cookie-consent-title {
  margin: 0;
  color: oklch(0.25 0.035 210);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.cookie-consent-body {
  margin: 6px 0 0;
  color: oklch(0.49 0.03 210);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}
.cookie-consent-body a {
  color: oklch(0.45 0.085 183);
  font-weight: 750;
  text-underline-offset: 3px;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.cookie-consent-button,
.cookie-preferences-link,
.cookie-consent-launcher {
  font: inherit;
}
.cookie-consent-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent-button:hover {
  border-color: oklch(0.52 0.075 183);
}
.cookie-consent-button:focus-visible,
.cookie-preferences-link:focus-visible,
.cookie-consent-launcher:focus-visible,
.cookie-consent-switch input:focus-visible + .cookie-consent-switch-track {
  outline: 3px solid oklch(0.72 0.09 183 / 0.55);
  outline-offset: 3px;
}
.cookie-consent-button-primary {
  background: oklch(0.49 0.085 183);
  color: oklch(0.985 0.006 170);
}
.cookie-consent-button-primary:hover {
  background: oklch(0.43 0.08 183);
}
.cookie-consent-button-secondary {
  border-color: oklch(0.84 0.022 178);
  background: oklch(0.965 0.008 170);
  color: oklch(0.29 0.035 210);
}
.cookie-consent-button-secondary:hover {
  background: oklch(0.935 0.014 175);
}
.cookie-consent-button-tertiary {
  background: transparent;
  color: oklch(0.43 0.075 183);
}
.cookie-consent-button-tertiary:hover {
  background: oklch(0.94 0.025 175);
}
.cookie-consent-preferences-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cookie-consent-preference-list {
  margin-top: 18px;
  border-block: 1px solid oklch(0.89 0.018 178);
}
.cookie-consent-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding-block: 14px;
}
.cookie-consent-preference-row + .cookie-consent-preference-row {
  border-top: 1px solid oklch(0.89 0.018 178);
}
.cookie-consent-preference-name {
  margin: 0;
  color: oklch(0.26 0.035 210);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.cookie-consent-preference-description {
  max-width: 58ch;
  margin: 4px 0 0;
  color: oklch(0.5 0.03 210);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}
.cookie-consent-always-on {
  white-space: nowrap;
  color: oklch(0.43 0.075 183);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cookie-consent-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-consent-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cookie-consent-switch input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cookie-consent-switch-track {
  position: relative;
  display: block;
  width: 44px;
  height: 26px;
  border: 1px solid oklch(0.77 0.025 190);
  border-radius: 999px;
  background: oklch(0.89 0.015 190);
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.985 0.006 170);
  box-shadow: 0 2px 7px oklch(0.25 0.035 210 / 0.2);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent-switch input:checked + .cookie-consent-switch-track {
  border-color: oklch(0.49 0.085 183);
  background: oklch(0.49 0.085 183);
}
.cookie-consent-switch input:checked + .cookie-consent-switch-track::after {
  transform: translateX(18px);
}
.cookie-consent-error {
  margin: 12px 0 0;
  color: oklch(0.5 0.16 28);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
}
.cookie-consent-preferences-actions {
  margin-top: 16px;
}
.cookie-preferences-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  text-align: left;
}
.cookie-preferences-link:hover {
  color: oklch(0.43 0.075 183);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-launcher {
  position: fixed;
  z-index: 2147482000;
  inset-inline-start: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid oklch(0.84 0.022 178);
  border-radius: 999px;
  padding: 9px 14px;
  background: oklch(0.985 0.006 170 / 0.96);
  color: oklch(0.38 0.065 183);
  box-shadow: 0 10px 28px oklch(0.25 0.035 210 / 0.14);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cookie-consent-launcher:hover {
  border-color: oklch(0.52 0.075 183);
  background: oklch(0.96 0.014 175);
}
body:has([data-cookie-preferences-open]) .cookie-consent-launcher {
  display: none;
}
@keyframes cookie-consent-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 920px) {
  .cookie-consent-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .cookie-consent-panel {
    padding: 18px;
    border-radius: 18px;
  }
  .cookie-consent-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
  }
  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-consent-button {
    width: 100%;
  }
  .cookie-consent-preference-row {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-panel,
  .cookie-consent-button,
  .cookie-consent-launcher,
  .cookie-consent-switch-track,
  .cookie-consent-switch-track::after {
    animation: none;
    transition: none;
  }
}
