.ares-cookie-settings {
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ares-cookie-banner {
  position: fixed;
  z-index: 1200;
  bottom: 16px;
  right: 16px;
  width: min(430px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #d3d9d2;
  border-radius: 18px;
  background: #fff;
  color: #232d29;
  box-shadow: 0 12px 40px #222d2733;
  font: 400 15px/1.45 var(--sans, system-ui);
}

.ares-cookie-banner[hidden],
.ares-cookie-banner [hidden],
.ares-cookie-settings[hidden] { display: none; }

.ares-cookie-banner h2 {
  margin: 0;
  color: inherit;
  font: 650 17px/1.2 var(--sans, system-ui);
  letter-spacing: normal;
}

.ares-cookie-banner p { margin: 8px 0 12px; }
.ares-cookie-banner a { color: #285b4b; text-decoration: underline; }
.ares-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ares-cookie-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #446559;
  border-radius: 8px;
  color: #263b33;
  background: #fff;
  font: 600 14px/1.2 var(--sans, system-ui);
  cursor: pointer;
}

.ares-cookie-actions button:hover { background: #edf4f0; }
.ares-cookie-actions button:focus-visible,
.ares-cookie-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 800px) {
  .ares-cookie-banner {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: min(400px, calc(100% - 24px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
  }

  .ares-cookie-banner h2 { font-size: 15px; }
  .ares-cookie-banner p { margin: 4px 0 8px; }
  .ares-cookie-actions button { padding: 6px 12px; }

  /* The homepage notice follows the consultation button instead of covering it. */
  .hero .ares-cookie-banner {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 12px;
    box-shadow: none;
  }
}
