:root { --privacy-banner-height: 0px; }
body { padding-bottom: var(--privacy-banner-height, 0px); }
.privacy-consent {
  position: fixed; left: 18px; right: 18px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 140; display: flex; align-items: center; gap: 30px; max-width: 1120px;
  max-height: min(70vh, calc(100dvh - 170px)); overflow-y: auto; margin: 0 auto;
  padding: 23px 26px; border: 1px solid #cbd5e1; border-radius: 16px;
  background: #fff; color: #1e293b; box-shadow: 0 12px 50px #0f172a29;
  font-size: 13px; line-height: 1.65;
}
.privacy-consent[hidden] { display: none; }
.privacy-copy { flex: 1; min-width: 0; }
.privacy-consent h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.4; color: #172554; }
.privacy-consent p { margin: 0 0 8px; }
.privacy-consent details { margin-top: 9px; }
.privacy-consent summary { display: list-item; cursor: pointer; color: #3346a8; font-weight: 600; }
.privacy-details { margin-top: 10px; max-width: 760px; }
.privacy-consent a { color: #3346a8; text-decoration: underline; overflow-wrap: anywhere; }
.privacy-consent .privacy-status { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.privacy-actions { display: grid; gap: 8px; flex: 0 0 185px; }
.privacy-actions button {
  min-height: 44px; padding: 10px 14px; border: 1px solid #475569; border-radius: 8px;
  background: #fff; color: #1e293b; font: inherit; font-weight: 600; cursor: pointer;
}
.privacy-actions button:hover { border-color: #4338ca; background: #eef2ff; }
.privacy-actions .privacy-close { min-height: 36px; padding: 5px 12px; border-color: transparent; font-weight: 400; color: #475569; }
.privacy-reopen { border: 0; background: none; padding: 6px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-consent :focus-visible, .privacy-reopen:focus-visible { outline: 3px solid #0891b2; outline-offset: 3px; }
@media (max-width: 700px) {
  .privacy-consent { left: 12px; right: 12px; gap: 15px; padding: 18px; flex-direction: column; align-items: stretch; font-size: 12px; }
  .privacy-consent h2 { font-size: 17px; }
  .privacy-actions { grid-template-columns: 1fr; flex: auto; gap: 8px; }
  .privacy-actions button { padding: 10px 8px; }
  .privacy-actions .privacy-close { grid-column: 1 / -1; min-height: 30px; padding: 2px; }
}
/* Keep the vertical contact stack clear of the header on short portrait screens. */
@media (max-width: 700px) and (min-height: 561px) {
  .privacy-consent { max-height: min(70vh, calc(100dvh - 230px)); }
}
