/* Isolated consent styles; the existing site layout is left untouched. */
.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: max(15px, env(safe-area-inset-right));
  bottom: max(15px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(450px, calc(100% - 30px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 12px 16px;
  border: 1px solid #bbb;
  background: #fff;
  color: #222;
  font-family: 'Waiting for the Sunrise', cursive;
  text-align: left;
}
.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }
.cookie-consent p {
  margin: 0 0 8px;
  font: 600 18px/1.35 'Waiting for the Sunrise', cursive;
  letter-spacing: .4px;
}
.cookie-consent-actions { display: flex; flex-wrap: nowrap; gap: 6px 10px; }
.cookie-consent-actions button { min-width: 0; }
.cookie-consent button, .cookie-consent-reopen {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  min-height: 36px;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid #aaa;
  border-radius: 2px;
  background: #fff;
  color: #222;
  font: 600 18px/1.3 'Waiting for the Sunrise', cursive;
  letter-spacing: .4px;
  cursor: pointer;
  text-transform: none;
}
.cookie-consent button:hover, .cookie-consent-reopen:hover { background: #f4f4f4; }
.cookie-consent button:focus-visible, .cookie-consent-reopen:focus-visible {
  outline: 2px solid #444;
  outline-offset: 3px;
}
.cookie-consent #cookie-consent-details { margin: 12px 0 4px; }
.cookie-consent .cookie-consent-close, .cookie-consent-reopen {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-reopen { margin: 8px 0; }
.cookie-consent-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .cookie-consent {
    right: max(5px, env(safe-area-inset-right));
    bottom: calc(5px + env(safe-area-inset-bottom));
    width: min(450px, calc(100% - 10px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(100dvh - 10px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 10px;
  }
  .cookie-consent-actions { flex-wrap: wrap; gap: 6px; }
  .cookie-consent button { min-height: 44px; padding: 3px 6px; }
}
