#cookie-banner {
  position: fixed;
  z-index: 100;
  inset: auto 20px 20px auto;
  width: min(510px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #d6e2e7;
  border-radius: 18px;
  background: #fff;
  color: #183e59;
  box-shadow: 0 14px 48px #14334b33;
}
#cookie-banner [hidden], #cookie-banner[hidden], #cookie-status:empty { display: none; }
#cookie-title { margin: 0 0 8px; font-size: 1.3rem; }
#cookie-banner p { margin: 0 0 12px; font-size: .93rem; }
#cookie-banner a, #cookie-settings { text-decoration: underline; text-underline-offset: .2em; }
#cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#cookie-banner button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #17644a;
  border-radius: 10px;
  background: #17644a;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
#cookie-banner button:hover { background: #104e39; }
#cookie-banner button:disabled { opacity: .65; cursor: wait; }
#cookie-options { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f1f6f8; }
#cookie-options label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
#cookie-banner #cookie-fonts { width: 1rem; height: 1rem; accent-color: #17644a; }
#cookie-options label + p { margin-top: 5px; }
#cookie-banner #cookie-status { margin: 12px 0 0; color: #8a3020; }
#cookie-title { padding-right: 40px; }
#cookie-banner #cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #183e59;
  font-size: 1.45rem;
}
#cookie-banner #cookie-close:hover { background: #f1f6f8; }
@media (max-width: 480px) {
  #cookie-banner {
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    width: auto;
    max-height: 65dvh;
    padding: 12px 14px 6px;
    border-radius: 14px;
  }
  #cookie-title { margin-bottom: 5px; font-size: 1.15rem; line-height: 1.3; }
  #cookie-banner p { margin-bottom: 10px; font-size: .875rem; line-height: 1.4; }
  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }
  #cookie-banner button { min-height: 44px; padding: 6px 8px; }
  #cookie-banner #cookie-reject { border-color: #214766; background: #214766; }
  #cookie-banner #cookie-reject:hover { background: #16344d; }
  #cookie-banner #cookie-customize {
    grid-column: 1 / -1;
    justify-self: center;
    border-color: transparent;
    background: transparent;
    color: #183e59;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  #cookie-banner #cookie-customize:hover { background: #f1f6f8; }
  #cookie-banner #cookie-close { top: 2px; right: 4px; width: 44px; }
  #cookie-options { margin-top: 4px; padding: 12px; }
  #cookie-options label { min-height: 44px; cursor: pointer; }
  #cookie-options #cookie-save { width: 100%; }
}
