.cookie-banner {
  position: fixed;
  z-index: 20;
  inset-inline: 20px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 23px 27px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  border: 1px solid #c4d4bc;
  border-radius: 25px;
  background: #fffaf2;
  box-shadow: 0 8px 45px #35241935;
}
.cookie-banner h2 { font-size: 27px; margin: 0 0 7px; }
.cookie-banner p { margin: 0; font-size: 15px; line-height: 1.6; }
.cookie-banner a { font-weight: 800; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cookie-actions > :last-child { grid-column: 1 / -1; }
.cookie-button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--sage-dark);
  border-radius: 24px;
  background: var(--sage-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.cookie-button:hover { background: #254b37; border-color: #254b37; }
.cookie-button-outline { background: var(--cream); color: var(--sage-dark); }
.cookie-button-outline:hover { background: #e4efdf; }
.cookie-settings-link {
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: inherit;
  text-underline-offset: 4px;
  min-height: 35px;
}
.cookie-settings-link:hover { text-decoration: underline; }
.site-footer .cookie-settings-link:focus-visible { outline-color: #fff2c5; }
.cookie-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 29px;
  border: 1px solid #c4d4bc;
  border-radius: 29px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 20px 70px #20140b55;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cookie-dialog::backdrop { background: #291b15b3; }
.cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.cookie-dialog-header h2 { margin: 0; font-size: 34px; }
.cookie-dialog > p { font-size: 16px; line-height: 1.65; }
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.cookie-category > div { min-width: 0; }
.cookie-category h3 { font-size: 24px; margin-bottom: 7px; }
.cookie-category h3 label { cursor: pointer; }
.cookie-category p { font-size: 15px; margin: 0; line-height: 1.6; }
.cookie-required { flex: none; font-size: 13px; font-weight: 900; color: var(--sage-dark); padding: 7px 11px; border-radius: 20px; background: #e4efdf; }
.cookie-switch { position: relative; display: flex; align-items: center; flex: none; min-height: 48px; cursor: pointer; }
.cookie-switch input { position: absolute; width: 54px; height: 32px; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch > span[aria-hidden] { width: 54px; height: 32px; background: #b8bcaf; border: 1px solid #747c6d; border-radius: 20px; pointer-events: none; }
.cookie-switch > span[aria-hidden]::before { content: ''; display: block; width: 24px; height: 24px; margin: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #20140b33; transition: transform .16s; }
.cookie-switch input:checked + span { background: var(--sage-dark); border-color: var(--sage-dark); }
.cookie-switch input:checked + span::before { transform: translateX(22px); }
.cookie-switch input:focus-visible + span { outline: 3px solid #23583e; outline-offset: 5px; }
.cookie-details-link { font-size: 14px; margin: 7px 0 22px; }
.cookie-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cookie-dialog-actions > :first-child { grid-column: 1 / -1; }
.cookie-error { color: #9c2e22; font-size: 14px; font-weight: 800; margin: 0 0 15px; }
.cookie-banner .cookie-error { grid-column: 1 / -1; }
.cookie-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cookie-noscript { padding-block: 16px; font-size: 15px; }
.cookie-noscript p { margin: 0; }
@media (max-width: 950px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie-actions > :last-child { grid-column: auto; }
}
@media (max-width: 550px) {
  .cookie-banner { inset-inline: 12px; width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom)); padding: 18px; border-radius: 21px; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); overflow-y: auto; }
  .cookie-banner h2 { font-size: 24px; }
  .cookie-banner p { font-size: 14px; }
  .cookie-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-actions > :last-child { grid-column: 1 / -1; }
  .cookie-button { padding-inline: 11px; font-size: 14px; }
  .cookie-dialog { padding: 21px; border-radius: 23px; }
  .cookie-dialog-header h2 { font-size: 29px; }
  .cookie-category { gap: 14px; }
  .cookie-category h3 { font-size: 22px; }
  .cookie-required { font-size: 12px; padding-inline: 8px; }
  .cookie-settings-link { min-height: 44px; }
}
@media (max-width: 360px) {
  .cookie-category:first-child { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cookie-dialog-actions { grid-template-columns: 1fr; }
  .cookie-dialog-actions > :first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-switch > span[aria-hidden]::before { transition: none; }
}
