.cookie-consent {
  position: fixed;
  z-index: 1000;
  bottom: 16px;
  left: 16px;
  width: min(356px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 2px solid #004c3f;
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 8px 8px 0 #004c3f, 0 18px 55px rgba(0, 44, 36, .2);
  color: #082a24;
  opacity: 0;
  transform: translate3d(-18px, 12px, 0) rotate(-1deg);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.cookie-consent.is-open { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
.cookie-consent[hidden], .cookie-consent [hidden], .cookie-reopen[hidden] { display: none; }
.cookie-consent-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 16px; }
.cookie-consent-kicker { color: #004c3f; font-size: 11px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.cookie-consent-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #004c3f;
  border-radius: 50%;
  background: #ffd34e;
  color: #004c3f;
  font: 700 20px/1 Arial, sans-serif;
  transition: transform .25s ease, background .25s ease;
}
.cookie-consent-close:hover, .cookie-consent-close:focus-visible { background: #f43667; color: #fff; transform: rotate(8deg) scale(1.06); }
.cookie-consent-body { padding: 8px 16px 16px; }
.cookie-consent-heading { display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 10px; }
.cookie-consent-heading .cookie-can-icon { width: 35px; height: 53px; transform: rotate(-7deg); }
.cookie-consent h2 { margin: 0; font-family: var(--display, Impact, sans-serif); font-size: 31px; font-weight: 700; line-height: .92; text-transform: uppercase; }
.cookie-consent p { margin: 12px 0 10px; font-size: 13px; line-height: 1.42; }
.cookie-consent-policy { color: #004c3f; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.cookie-consent-action {
  min-height: 43px;
  border: 2px solid #004c3f;
  border-radius: 7px;
  background: #fff;
  box-shadow: 3px 3px 0 #004c3f;
  color: #004c3f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  transition: box-shadow .2s ease, transform .2s ease;
}
.cookie-consent-action:hover, .cookie-consent-action:focus-visible { box-shadow: 1px 1px 0 #004c3f; transform: translate(2px, 2px); }
.cookie-consent-customize { display: block; margin: 13px auto 0; border-bottom: 1px solid currentColor; color: #004c3f; font-size: 12px; font-weight: 700; }
.cookie-consent-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cookie-consent-detail-head h2 { font-size: 28px; }
.cookie-consent-back { color: #004c3f; font-size: 12px; font-weight: 700; }
.cookie-consent-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(0,76,63,.2); }
.cookie-consent-row strong { display: block; font-size: 13px; }
.cookie-consent-row small { display: block; margin-top: 3px; color: rgba(8,42,36,.7); font-size: 11px; line-height: 1.3; }
.cookie-switch { position: relative; width: 44px; height: 24px; flex: 0 0 auto; }
.cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-switch span { position: absolute; inset: 0; border: 2px solid #004c3f; border-radius: 999px; background: #fff; transition: background .2s ease; }
.cookie-switch span::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #004c3f; content: ""; transition: transform .2s ease, background .2s ease; }
.cookie-switch input:checked + span { background: #ffd34e; }
.cookie-switch input:checked + span::after { transform: translateX(19px); }
.cookie-switch input:focus-visible + span { outline: 3px solid #f43667; outline-offset: 3px; }
.cookie-switch input:disabled + span { background: #dbe9c8; opacity: .7; }
.cookie-consent-save { width: 100%; margin-top: 12px; background: #f43667; color: #fff; }
.cookie-reopen {
  position: fixed;
  z-index: 990;
  bottom: 14px;
  left: 16px;
  width: 48px;
  height: 66px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) rotate(-9deg);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.cookie-reopen.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) rotate(-5deg); }
.cookie-reopen:hover, .cookie-reopen:focus-visible { transform: translateY(-5px) rotate(3deg) scale(1.08); }
.cookie-reopen:focus-visible { outline: 3px solid #ffd34e; outline-offset: 5px; }
.cookie-reopen .cookie-can-icon { display: block; width: 42px; height: 64px; margin: 0 auto; filter: drop-shadow(4px 5px 0 #004c3f) drop-shadow(0 0 9px rgba(255,255,255,.45)); }
.cookie-reopen::after {
  position: absolute;
  bottom: 8px;
  left: calc(100% + 11px);
  width: max-content;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fffaf3;
  box-shadow: 3px 3px 0 #004c3f;
  color: #004c3f;
  content: attr(data-label);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-5px);
  transition: opacity .2s ease, transform .2s ease;
}
.cookie-reopen:hover::after, .cookie-reopen:focus-visible::after { opacity: 1; transform: translateX(0); }
.footer.has-cookie-reopen .footer-copy, .secondary-footer.has-cookie-reopen .secondary-footer-meta { padding-left: 70px; }

@media (max-width: 479px) {
  .cookie-consent { bottom: 10px; left: 10px; width: calc(100vw - 20px); max-height: calc(100dvh - 20px); box-shadow: 5px 5px 0 #004c3f; }
  .cookie-consent-body { padding: 6px 13px 14px; }
  .cookie-consent h2 { font-size: 28px; }
  .cookie-consent p { font-size: 12px; }
  .cookie-consent-action { min-height: 41px; }
  .cookie-reopen { bottom: 82px; left: 12px; width: 42px; height: 60px; }
  .footer.has-cookie-reopen .footer-copy, .secondary-footer.has-cookie-reopen .secondary-footer-meta { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent, .cookie-consent *, .cookie-reopen { transition-duration: .01ms !important; }
}
