.cookie-consent-open {
  overflow: hidden;
}

.cookie-consent-layer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent-layer--banner {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: rgba(17, 24, 39, 0.42);
}

.cookie-banner,
.cookie-modal {
  color: #111827;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.cookie-banner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__copy {
  max-width: 680px;
}

.cookie-kicker {
  display: block;
  margin-bottom: 5px;
  color: #016a3d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-banner h2,
.cookie-modal h2 {
  margin: 0;
  color: #111827;
  font-size: 21px;
  line-height: 1.25;
}

.cookie-banner p,
.cookie-modal__intro {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner a,
.cookie-modal a {
  color: #016a3d;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #016a3d;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: transform .15s ease, background .15s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn--primary {
  color: #fff;
  background: #016a3d;
}

.cookie-btn--secondary {
  color: #016a3d;
  background: #fff;
}

.cookie-consent-layer--modal {
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(5px);
}

.cookie-modal {
  width: min(620px, 100%);
  padding: 26px;
  border-radius: 22px;
}

.cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cookie-modal__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.cookie-categories {
  margin: 22px 0 16px;
  border-top: 1px solid #e5e7eb;
}

.cookie-category {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 2px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.cookie-category__text {
  flex: 1;
}

.cookie-category__text strong,
.cookie-category__text small {
  display: block;
}

.cookie-category__text strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.cookie-category__text small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .2s ease;
}

.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.cookie-category input:checked + .cookie-toggle {
  background: #016a3d;
}

.cookie-category input:checked + .cookie-toggle::after {
  transform: translateX(20px);
}

.cookie-category input:focus-visible + .cookie-toggle {
  outline: 3px solid rgba(1, 106, 61, .25);
  outline-offset: 2px;
}

.cookie-category input:disabled + .cookie-toggle {
  opacity: .65;
}

.cookie-modal__links {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 13px;
}

.cookie-actions--modal {
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .cookie-consent-layer--banner {
    padding: 10px;
  }

  .cookie-banner {
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border-radius: 16px;
  }

  .cookie-actions,
  .cookie-actions--modal {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-modal {
    padding: 20px;
  }
}
