.consent-panel {
  position: fixed;
  z-index: 2100;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(35rem, calc(100% - 2.5rem));
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  padding: 1.5rem;
  color: #14213d;
  background: #fff;
  border: 1px solid #a8b4bd;
  border-radius: 1rem;
  box-shadow: 0 8px 40px #14213d33;
  font: 0.95rem/1.5 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
}

.consent-panel[hidden] { display: none; }
.consent-panel h2 { margin: 0 2rem 1rem 0; font-size: 1.35rem; font-weight: 700; }
.consent-panel p { margin: 0 0 0.8rem; }
.consent-panel a { color: #064c39; text-decoration: underline; }
.consent-panel .consent-essential,
.consent-panel .consent-details { font-size: 0.85rem; }
.consent-option { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 0; cursor: pointer; }
.consent-option input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: 0.15rem; accent-color: #146c43; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.consent-button { padding: 0.65rem 0.75rem; min-height: 44px; border: 2px solid #146c43; border-radius: 0.45rem; color: #fff; background: #146c43; font: inherit; font-weight: 600; cursor: pointer; }
.consent-button:hover { background: #0f5132; border-color: #0f5132; }
.consent-save { grid-column: 1 / -1; color: #146c43; background: #fff; }
.consent-save:hover { color: #fff; }
.consent-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0.4rem; color: #14213d; background: transparent; font: 1.7rem/1 sans-serif; cursor: pointer; }
.consent-close:hover { background: #eef2f0; }
.consent-panel :focus-visible { outline: 3px solid #1d62aa; outline-offset: 3px; }
.consent-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 480px) {
  .consent-panel { right: 0.5rem; bottom: 0.5rem; width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); padding: 1.1rem; font-size: 0.9rem; }
  .consent-panel h2 { font-size: 1.2rem; }
  .consent-button { padding-inline: 0.4rem; font-size: 0.85rem; }
}
