.ht-consent-panel {
  position: fixed;
  z-index: 10000;
  inset: auto 16px 76px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  max-width: 1040px;
  margin-inline: auto;
  padding: 20px;
  color: #17324d;
  background: #fff;
  border: 1px solid #c9d9e8;
  border-radius: 16px;
  box-shadow: 0 12px 44px rgb(17 41 69 / 24%);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ht-consent-panel[hidden] { display: none; }
.ht-consent-copy h2 { margin: 0 0 8px; font-size: 1.25rem; }
.ht-consent-copy p { max-width: 72ch; margin: 0 0 8px; }
.ht-consent-link { color: #125c91; font-weight: 700; }
.ht-consent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ht-consent-panel button, .ht-consent-manage {
  min-height: 44px;
  padding: 9px 15px;
  color: #17324d;
  background: #fff;
  border: 2px solid #31536f;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ht-consent-panel .ht-consent-accept { color: #fff; background: #155e75; border-color: #155e75; }
.ht-consent-panel button:focus-visible, .ht-consent-manage:focus-visible, .ht-consent-link:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.ht-consent-manage { position: fixed; z-index: 10001; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 3px 14px rgb(17 41 69 / 20%); }
.ht-consent-manage.is-guided-inline { position: static; inset: auto; z-index: auto; align-self: flex-start; margin-top: 8px; box-shadow: none; }
@media (max-width: 720px) {
  .ht-consent-panel { inset: auto 10px 70px; grid-template-columns: 1fr; gap: 14px; max-height: min(78dvh, 640px); overflow: auto; padding: 16px; }
  .ht-consent-actions { justify-content: stretch; }
  .ht-consent-actions button { flex: 1 1 100%; }
  .ht-consent-manage { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 721px) {
  .ht-consent-panel { inset: auto 10px 70px; grid-template-columns: 1fr; gap: 14px; max-height: min(78dvh, 640px); overflow: auto; padding: 16px; }
  .ht-consent-actions { justify-content: stretch; }
  .ht-consent-actions button { flex: 1 1 100%; }
  .ht-consent-manage { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .ht-consent-panel { animation: ht-consent-enter .18s ease-out; }
  /* Slide only: fading the opacity made the text briefly fail contrast (axe color-contrast). */
  @keyframes ht-consent-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }
}
