[data-cookie-banner][hidden],
[data-cookie-settings][hidden] {
  display: none !important;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 10000;
  inset: auto auto max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  width: min(580px, calc(100vw - 32px));
  padding: 20px 22px 18px;
  color: #202b25;
  background: #fffdf7;
  border: 1px solid #334139;
  border-top: 3px solid #c99c34;
  box-shadow: 0 14px 42px rgb(23 29 25 / 22%);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

.cookie-consent-banner h2 {
  margin: 0 0 8px;
  color: #202b25;
  font: 700 23px/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: -.02em;
}

.cookie-consent-banner p {
  margin: 0 0 12px;
  color: #414b44;
  font-size: 16px;
  line-height: 1.55;
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 16px;
}

.cookie-consent-links a {
  min-height: 28px;
  color: #385c4a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-consent-actions button,
.cookie-consent-settings {
  min-height: 52px;
  border: 1px solid #26342c;
  border-radius: 0;
  padding: 10px 14px;
  color: #202b25;
  background: #fffdf7;
  font: 700 16px/1.25 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.cookie-consent-actions button[data-cookie-choice="accepted"] {
  color: #fff;
  background: #192720;
}

.cookie-consent-actions button:hover,
.cookie-consent-settings:hover {
  border-color: #9e4d20;
}

.cookie-consent-actions button[data-cookie-choice="accepted"]:hover {
  background: #263b30;
}

.cookie-consent-banner button:focus-visible,
.cookie-consent-settings:focus-visible,
.cookie-consent-banner a:focus-visible {
  outline: 3px solid #296bc4;
  outline-offset: 3px;
}

.cookie-consent-settings {
  position: fixed;
  z-index: 9999;
  inset: auto auto max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  min-height: 42px;
  width: auto;
  border-radius: 2px;
  padding: 8px 12px;
  box-shadow: 0 3px 12px rgb(23 29 25 / 16%);
  font-size: 13px;
}

@media (max-width: 520px) {
  .cookie-consent-banner {
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
    width: auto;
    padding: 16px 16px 14px;
  }

  .cookie-consent-banner h2 {
    font-size: 21px;
  }

  .cookie-consent-banner p {
    font-size: 14px;
  }

  .cookie-consent-actions {
    gap: 8px;
  }

  .cookie-consent-actions button {
    min-height: 48px;
    padding-inline: 8px;
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}
