/* Complete, readable consent card; independent of the legacy notice layout. */
.cookie-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 100;
  left: 50%;
  right: auto;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: block;
  width: min(580px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #183e32;
  border: 1px solid #c8d5cc;
  border-radius: 14px;
  box-shadow: 0 12px 48px #0f3d2e30;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice>div:first-child { min-width: 0; width: 100%; }
.cookie-notice strong { display: block; font-size: 17px; line-height: 1.35; font-weight: 600; color: #0f3d2e; }
.cookie-notice p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #40564c; overflow-wrap: anywhere; }
.cookie-notice p.cookie-details { font-size: 13px; line-height: 1.5; color: #526359; margin-top: 6px; }
.cookie-notice a { color: #0f3d2e; white-space: normal; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice .measurement-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 12px; }
.cookie-notice .measurement-choices button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #0f3d2e;
  border-radius: 7px;
  background: #0f3d2e;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}
.cookie-notice .measurement-choices button:hover { background: #245341; }
.cookie-notice .measurement-choices button[data-measurement-reject],
.cookie-notice .measurement-choices button[data-measurement-reject]:hover {
  background: transparent;
  color: #0f3d2e;
}
.cookie-notice .measurement-choices button[data-measurement-reject]:hover { text-decoration: underline; }
.cookie-notice .measurement-choices button:focus-visible,
.cookie-preferences:focus-visible { outline: 3px solid #c8a66a; outline-offset: 3px; }
.cookie-preferences { position: fixed; bottom: 24px; left: 24px; z-index: 46; padding: 9px 15px; min-height: 44px; border: 1px solid #0f3d2e; border-radius: 6px; background: #fff; color: #0f3d2e; font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 2px 12px #0002; }
body:has(#cookie-notice:not([hidden])) .cookie-preferences,
body:has(#cookie-notice:not([hidden])) .whatsapp-floating { visibility: hidden; }
@media(max-width: 800px) { .cookie-preferences { left: 12px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); } }
@media(max-width: 600px) {
  .cookie-notice { width: calc(100vw - 24px); bottom: max(12px, env(safe-area-inset-bottom, 0px)); padding: 16px; max-height: calc(100dvh - 24px); border-radius: 12px; }
  .cookie-notice strong { font-size: 17px; }
  .cookie-notice p { font-size: 14px; line-height: 1.55; }
  .cookie-notice .measurement-choices { gap: 10px; margin-top: 12px; }
  .cookie-notice .measurement-choices button { padding: 11px 9px; font-size: 14px; }
}
@media(max-width: 340px) { .cookie-notice .measurement-choices { grid-template-columns: 1fr; } }
@media(min-width: 801px) {
  .cookie-notice {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: none;
    width: min(760px, calc(100vw - 48px));
    padding: 18px 20px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 24px;
  }
  .cookie-notice .measurement-choices {
    margin-top: 0;
    gap: 10px;
    align-self: center;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cookie-notice .measurement-choices button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 10px 12px;
    text-align: center;
    line-height: 1.2;
  }
}
