:root { --cookie-preferences-height: 0px; }

body { padding-bottom: var(--cookie-preferences-height); }

.cookie-preferences {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(80vh, 36rem);
  overflow: auto;
  border-top: 1px solid #cbd5df;
  background: #fff;
  box-shadow: 0 -1rem 2.5rem rgb(6 31 58 / 18%);
  color: #17212b;
}

.cookie-preferences[hidden],
.cookie-preferences [hidden] { display: none !important; }

.cookie-preferences__panel {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}

.cookie-preferences h2 { margin: 0 0 .35rem; font-size: clamp(1.05rem, 3vw, 1.3rem); }
.cookie-preferences p { margin: .35rem 0; line-height: 1.55; }
.cookie-preferences a { color: #075d31; font-weight: 700; }
.cookie-preferences__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.cookie-preferences button {
  min-width: 44px;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #78909c;
  border-radius: .7rem;
  background: #fff;
  color: #173751;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-preferences button[data-consent-accept-all],
.cookie-preferences button[data-consent-save] { border-color: #08783f; background: #08783f; color: #fff; }
.cookie-preferences button:focus-visible,
.cookie-preferences input:focus-visible,
.cookie-preferences a:focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; }
.cookie-preferences__choices { display: grid; gap: .65rem; margin: .8rem 0; padding: 0; border: 0; }
.cookie-preferences__choice { display: grid; grid-template-columns: 1.5rem 1fr; gap: .55rem; align-items: start; }
.cookie-preferences__choice input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.cookie-preferences__choice small { display: block; margin-top: .15rem; color: #52606d; line-height: 1.45; }
.cookie-preferences__privacy-signal { padding: .55rem .7rem; border-radius: .5rem; background: #eef7f2; color: #075d31; }
.cookie-preferences-trigger { min-width: 44px; min-height: 44px; padding: .45rem .65rem; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-preferences-open .floating-line-contact,
.cookie-preferences-open .cart-toast { bottom: calc(var(--cookie-preferences-height) + 1rem); }

@media (max-width: 540px) {
  .cookie-preferences__panel { width: min(100% - 1rem, 40rem); }
  .cookie-preferences__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-preferences button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-preferences *, .cookie-preferences *::before, .cookie-preferences *::after { scroll-behavior: auto !important; transition: none !important; }
}
