.cookie-consent[hidden] { display: none; }

.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(39, 74, 61, 0.22);
  border-radius: 18px;
  background: rgba(248, 250, 248, 0.98);
  box-shadow: 0 18px 55px rgba(16, 31, 25, 0.18);
  backdrop-filter: blur(14px);
}

.cookie-consent__copy { max-width: 760px; }
.cookie-consent__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #4b6f60;
}
.cookie-consent h2,
.cookie-preferences h2 { margin: 0 0 8px; font-size: 1.25rem; }
.cookie-consent p,
.cookie-preferences p { margin: 0; line-height: 1.55; color: #53635d; }
.cookie-consent__actions,
.cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-button,
.cookie-settings-link,
.cookie-preferences__close {
  font: inherit;
  cursor: pointer;
}
.cookie-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
}
.cookie-button--primary {
  color: #fff;
  background: #173d31;
}
.cookie-button--secondary {
  color: #173d31;
  background: #e8f0ec;
  border-color: #c9d8d1;
}
.cookie-button--ghost {
  color: #40554d;
  background: transparent;
  border-color: #d5dfda;
}
.cookie-button:hover,
.cookie-button:focus-visible,
.cookie-settings-link:hover,
.cookie-settings-link:focus-visible,
.cookie-preferences__close:hover,
.cookie-preferences__close:focus-visible { filter: brightness(0.96); }
.cookie-button:focus-visible,
.cookie-settings-link:focus-visible,
.cookie-preferences__close:focus-visible,
.cookie-category--toggle:focus-within {
  outline: 3px solid rgba(39, 112, 84, 0.24);
  outline-offset: 2px;
}

.cookie-preferences {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
}
.cookie-preferences::backdrop { background: rgba(8, 18, 14, 0.58); }
.cookie-preferences__panel {
  padding: 26px;
  border: 1px solid rgba(39, 74, 61, 0.18);
  border-radius: 20px;
  background: #fbfcfb;
  box-shadow: 0 24px 70px rgba(10, 25, 19, 0.25);
}
.cookie-preferences__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.cookie-preferences__close {
  width: 40px;
  height: 40px;
  border: 1px solid #d8e1dd;
  border-radius: 50%;
  background: #fff;
  color: #203b31;
  font-size: 1.5rem;
  line-height: 1;
}
.cookie-preferences__intro { margin: 4px 0 22px !important; }
.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  background: #fff;
}
.cookie-category strong { display: block; margin-bottom: 4px; color: #18392e; }
.cookie-category__status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f0ec;
  color: #31584a;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.cookie-category--toggle { cursor: pointer; }
.cookie-category--toggle input {
  width: 44px;
  height: 24px;
  accent-color: #173d31;
  cursor: pointer;
}
.cookie-preferences__note {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border-left: 3px solid #5c8c77;
  background: #f0f5f2;
}
.cookie-preferences__note strong { display: block; margin-bottom: 4px; color: #23483a; }
.cookie-settings-link {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 18px;
    padding: 18px;
  }
  .cookie-consent__actions,
  .cookie-preferences__actions { justify-content: stretch; }
  .cookie-consent__actions .cookie-button,
  .cookie-preferences__actions .cookie-button { flex: 1 1 150px; }
}

@media (max-width: 520px) {
  .cookie-preferences__panel { padding: 20px; }
  .cookie-category { grid-template-columns: 1fr; }
  .cookie-category--toggle input { justify-self: start; }
}
