/* HS GDPR - cookie banner and settings dialog (module hs_gdpr) */
.hs-gdpr { --hs-bg: #000; --hs-fg: #fff; --hs-btn-bg: #d45c5c; --hs-btn-fg: #fff; font-size: 14px; line-height: 1.5; }
.hs-gdpr [hidden] { display: none !important; }
.hs-gdpr *, .hs-gdpr *::before, .hs-gdpr *::after { box-sizing: border-box; }

.hs-gdpr-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000; padding: 12px; pointer-events: none; }
.hs-gdpr-banner__inner { pointer-events: auto; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px 24px; padding: 16px 20px; background: var(--hs-bg); color: var(--hs-fg); border-radius: 6px; box-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.hs-gdpr-banner__text { flex: 1 1 auto; min-width: 0; }
.hs-gdpr-banner__text p { margin: 0 0 6px; color: inherit; }
.hs-gdpr-banner__title { font-weight: 700; font-size: 15px; }
.hs-gdpr-banner__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-gdpr-links { font-size: 13px; }
.hs-gdpr-links a { color: inherit; text-decoration: underline; }

.hs-gdpr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 120px; padding: 8px 18px; margin: 0; font: inherit; font-weight: 700; line-height: 1.2; text-align: center; border-radius: 4px; border: 2px solid var(--hs-btn-bg); cursor: pointer; }
.hs-gdpr-btn--main { background: var(--hs-btn-bg); color: var(--hs-btn-fg); }
.hs-gdpr-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.hs-gdpr-btn:hover { filter: brightness(1.08); }
.hs-gdpr-btn:focus-visible, .hs-gdpr-close:focus-visible, .hs-gdpr a:focus-visible, .hs-gdpr summary:focus-visible, .hs-gdpr-switch:focus-visible { outline: 3px solid #4d90fe; outline-offset: 2px; }

.hs-gdpr-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.hs-gdpr-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); background: #fff; color: #222; border-radius: 6px; box-shadow: 0 8px 40px rgba(0, 0, 0, .35); outline: none; }
.hs-gdpr-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e5e5e5; }
.hs-gdpr-dialog__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: inherit; }
.hs-gdpr-close { width: 44px; height: 44px; padding: 0; font-size: 28px; line-height: 1; background: transparent; border: 0; border-radius: 4px; color: inherit; cursor: pointer; }
.hs-gdpr-dialog__body { padding: 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hs-gdpr-dialog__body p { margin: 0 0 12px; }
.hs-gdpr-dialog__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid #e5e5e5; }
.hs-gdpr-dialog .hs-gdpr-btn--ghost { color: #222; border-color: #222; }
.hs-gdpr-dialog .hs-gdpr-links a { color: #222; }

.hs-gdpr-cat { padding: 12px 0; border-top: 1px solid #eee; }
.hs-gdpr-cat__head { display: flex; align-items: center; gap: 12px; }
.hs-gdpr-cat__title { margin: 0; font-weight: 700; cursor: pointer; flex: 1 1 auto; }
.hs-gdpr-cat__always { font-size: 12px; color: #2e7d32; font-weight: 700; }
.hs-gdpr-cat__desc { margin: 6px 0 4px 56px !important; color: #444; }
.hs-gdpr-cat__cookies { margin-left: 56px; font-size: 13px; color: #555; }
.hs-gdpr-cat__cookies summary { cursor: pointer; padding: 4px 0; }
.hs-gdpr-cat__cookies p { margin: 4px 0 0 !important; word-break: break-word; }

/* Toggle switch built on a real checkbox (keyboard and screen readers work as usual) */
.hs-gdpr-switch { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: #9e9e9e; cursor: pointer; transition: background-color .15s; }
.hs-gdpr-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.hs-gdpr-switch:checked { background: var(--hs-btn-bg); }
.hs-gdpr-switch:checked::after { transform: translateX(20px); }
.hs-gdpr-switch:disabled { cursor: not-allowed; opacity: .7; }

html.hs-gdpr-lock, html.hs-gdpr-lock body { overflow: hidden; }

.hs-gdpr-footer-link { margin: 0; padding: 8px 16px; text-align: center; }
.hs-gdpr-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#hs-gdpr-page .hs-gdpr-section { margin-bottom: 24px; }
#hs-gdpr-page .hs-gdpr-page-actions .btn { margin: 0 8px 8px 0; }

@media (max-width: 767px) {
  .hs-gdpr-banner { padding: 0; }
  .hs-gdpr-banner__inner { flex-direction: column; align-items: stretch; border-radius: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto; }
  .hs-gdpr-banner__actions, .hs-gdpr-dialog__foot { display: grid; grid-template-columns: 1fr 1fr; }
  .hs-gdpr-banner__actions .hs-gdpr-btn--ghost, .hs-gdpr-dialog__foot .hs-gdpr-btn--ghost { grid-column: 1 / -1; }
  .hs-gdpr-btn { width: 100%; min-width: 0; }
  .hs-gdpr-overlay { padding: 0; align-items: flex-end; }
  .hs-gdpr-dialog { max-width: none; max-height: 92vh; border-radius: 6px 6px 0 0; }
  .hs-gdpr-cat__desc, .hs-gdpr-cat__cookies { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-gdpr-switch, .hs-gdpr-switch::after { transition: none; }
}
