/* Cookiebot-style consent UI - theme-agnostic, self-contained. */
#hb-cc { --cc-accent:#0E6E66; --cc-ink:#1e2430; --cc-line:#e6e8ec; --cc-bg:#fff; --cc-muted:#5b6472; --cc-soft:#f3f5f7; font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif; }
#hb-cc *{ box-sizing:border-box; }

.hb-cc-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:2147483000; background:var(--cc-bg); color:var(--cc-ink);
  border:1px solid var(--cc-line); border-radius:16px; box-shadow:0 24px 60px -20px rgba(20,26,38,.45); max-width:1080px; margin:0 auto; }
.hb-cc-banner-inner{ display:flex; gap:20px; align-items:center; padding:20px 22px; flex-wrap:wrap; }
.hb-cc-icon{ flex:0 0 auto; width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--cc-accent); background:rgba(14,110,102,.12); background:color-mix(in srgb, var(--cc-accent) 14%, transparent); }
.hb-cc-icon svg{ display:block; }
.hb-cc-text{ flex:1 1 300px; min-width:0; }
.hb-cc-text h2{ margin:0 0 4px; font-size:17px; font-weight:700; }
.hb-cc-text p{ margin:0; font-size:13.5px; line-height:1.55; color:var(--cc-muted); }
.hb-cc-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.hb-cc-btn{ appearance:none; border:1px solid var(--cc-line); background:#fff; color:var(--cc-ink); border-radius:10px;
  padding:11px 18px; font-size:14px; font-weight:600; cursor:pointer; transition:filter .15s,transform .1s,background .15s; }
.hb-cc-btn:hover{ filter:brightness(.98); }
.hb-cc-btn:active{ transform:translateY(1px); }
.hb-cc-btn-primary{ background:var(--cc-accent); border-color:var(--cc-accent); color:#fff; }
.hb-cc-btn-ghost{ background:#f4f6f8; }

.hb-cc-fab{ position:fixed; left:16px; bottom:16px; z-index:2147482000; width:44px; height:44px; border-radius:50%;
  border:1px solid var(--cc-line); background:var(--cc-bg); color:var(--cc-accent); box-shadow:0 8px 20px -8px rgba(20,26,38,.5);
  cursor:pointer; display:none; align-items:center; justify-content:center; }
#hb-cc.hb-cc-has-fab .hb-cc-fab{ display:flex; }

/* ---- Preferences dialog (Consent / Details / About tabs) ---- */
.hb-cc-modal{ position:fixed; inset:0; z-index:2147483600; display:flex; align-items:center; justify-content:center; padding:16px; }
/* The [hidden] attribute must win over the display rules above/below. */
#hb-cc [hidden]{ display:none !important; }
/* Keep the theme's element styles (button, h2, dl, code) out of the dialog. */
#hb-cc button{ font:inherit; letter-spacing:normal; text-transform:none; box-shadow:none; min-height:0; }
#hb-cc h2,#hb-cc p,#hb-cc dl,#hb-cc dd{ margin:0; }
#hb-cc code{ background:none; padding:0; color:inherit; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.hb-cc-backdrop{ position:absolute; inset:0; background:rgba(15,20,30,.55); backdrop-filter:blur(3px); animation:hb-cc-fade .2s ease; }
.hb-cc-card{ position:relative; background:var(--cc-bg); color:var(--cc-ink); width:min(720px,100%); height:min(620px,90vh); display:flex; flex-direction:column;
  border-radius:16px; overflow:hidden; box-shadow:0 30px 80px -20px rgba(15,20,30,.6); animation:hb-cc-pop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes hb-cc-fade{ from{ opacity:0; } }
@keyframes hb-cc-pop{ from{ opacity:0; transform:translateY(12px) scale(.98); } }
@media (prefers-reduced-motion:reduce){ .hb-cc-backdrop,.hb-cc-card{ animation:none; } }

.hb-cc-card-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 22px; border-bottom:1px solid var(--cc-line); }
.hb-cc-brand{ display:flex; align-items:center; min-height:36px; }
.hb-cc-logo{ display:block; max-height:36px; max-width:200px; width:auto; height:auto; }
.hb-cc-icon-sm{ width:38px; height:38px; }
.hb-cc-close{ display:flex; align-items:center; justify-content:center; width:36px; height:36px; border:0; border-radius:50%; background:transparent; color:var(--cc-muted); cursor:pointer; transition:background .15s,color .15s; }
.hb-cc-close:hover{ background:var(--cc-soft); color:var(--cc-ink); }
.hb-cc-close svg{ width:20px; height:20px; }

.hb-cc-tabs{ display:flex; border-bottom:1px solid var(--cc-line); }
#hb-cc .hb-cc-tab{ flex:1 1 0; appearance:none; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--cc-muted);
  padding:14px 10px 11px; font-size:14.5px; font-weight:700; cursor:pointer; border-radius:0; transition:color .15s,border-color .15s,background .15s; }
#hb-cc .hb-cc-tab:hover{ color:var(--cc-ink); background:var(--cc-soft); }
#hb-cc .hb-cc-tab.is-active{ color:var(--cc-accent); border-bottom-color:var(--cc-accent); }

.hb-cc-card-body{ flex:1 1 auto; padding:22px 24px; overflow:auto; overscroll-behavior:contain; }
.hb-cc-pane-title{ font-size:18px; font-weight:700; line-height:1.3; color:var(--cc-ink); }
#hb-cc .hb-cc-lead{ font-size:14px; line-height:1.6; color:var(--cc-muted); margin:8px 0 20px; }

.hb-cc-quick{ display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--cc-line); border-radius:12px; overflow:hidden; }
.hb-cc-quick-item{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:16px 8px; text-align:center; }
.hb-cc-quick-item + .hb-cc-quick-item{ border-left:1px solid var(--cc-line); }
.hb-cc-quick-label{ font-size:14px; font-weight:700; }
#hb-cc .hb-cc-link{ display:inline-flex; align-items:center; gap:4px; margin-top:16px; border:0; background:none; padding:4px 0; color:var(--cc-accent); font-size:14px; font-weight:700; cursor:pointer; }
.hb-cc-link svg{ width:16px; height:16px; }

.hb-cc-cat{ border-bottom:1px solid var(--cc-line); padding:12px 0; }
.hb-cc-cat:first-child{ padding-top:0; }
.hb-cc-cat:last-child{ border-bottom:0; }
.hb-cc-cat-head{ display:flex; align-items:center; gap:10px; }
#hb-cc .hb-cc-cat-toggle{ flex:1 1 auto; display:flex; align-items:center; gap:10px; min-width:0; border:0; background:none; padding:4px 0; color:var(--cc-ink); cursor:pointer; text-align:left; }
.hb-cc-cat-name{ font-size:15px; font-weight:700; }
.hb-cc-chev{ display:inline-flex; width:18px; height:18px; color:var(--cc-muted); transition:transform .2s; flex:0 0 auto; }
.hb-cc-chev svg{ width:18px; height:18px; }
[aria-expanded="true"] > .hb-cc-chev{ transform:rotate(90deg); }
.hb-cc-count{ display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:22px; padding:0 7px; border-radius:11px; background:var(--cc-soft); color:var(--cc-muted); font-size:12px; font-weight:700; }
.hb-cc-cat-icon{ width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.hb-cc-cat-icon svg{ width:17px; height:17px; display:block; }
.hb-cc-cat-icon-necessary{ color:#0E6E66; background:rgba(14,110,102,.12); }
.hb-cc-cat-icon-preferences{ color:#2f6fd6; background:rgba(47,111,214,.12); }
.hb-cc-cat-icon-statistics{ color:#7c5cd6; background:rgba(124,92,214,.13); }
.hb-cc-cat-icon-marketing{ color:#e07a1f; background:rgba(224,122,31,.13); }
#hb-cc .hb-cc-cat-desc{ margin:4px 0 0 68px; font-size:13px; line-height:1.55; color:var(--cc-muted); }
.hb-cc-badge{ font-size:11px; font-weight:700; color:var(--cc-accent); background:rgba(14,110,102,.1); background:color-mix(in srgb, var(--cc-accent) 12%, transparent); border-radius:20px; padding:3px 10px; white-space:nowrap; }

.hb-cc-switch{ position:relative; display:inline-block; width:44px; height:24px; flex:0 0 auto; cursor:pointer; margin:0; }
.hb-cc-switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.hb-cc-slider{ position:absolute; inset:0; background:#c7ccd4; border-radius:24px; transition:background .2s; pointer-events:none; }
.hb-cc-slider:before{ content:""; position:absolute; height:18px; width:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.hb-cc-switch input:checked + .hb-cc-slider{ background:var(--cc-accent); }
.hb-cc-switch input:checked + .hb-cc-slider:before{ transform:translateX(20px); }
.hb-cc-switch input:disabled{ cursor:not-allowed; }
.hb-cc-switch input:disabled + .hb-cc-slider{ opacity:.55; }
.hb-cc-switch input:focus-visible + .hb-cc-slider{ outline:2px solid var(--cc-accent); outline-offset:2px; }

.hb-cc-cat-details{ margin:12px 0 4px 28px; display:flex; flex-direction:column; gap:8px; }
.hb-cc-provider{ background:var(--cc-soft); border-radius:10px; }
#hb-cc .hb-cc-provider-head{ display:flex; align-items:center; gap:8px; width:100%; border:0; background:none; padding:10px 12px; color:var(--cc-ink); font-size:13.5px; font-weight:700; cursor:pointer; text-align:left; }
.hb-cc-provider-name{ flex:1 1 auto; }
.hb-cc-provider-head .hb-cc-count{ background:var(--cc-bg); }
.hb-cc-provider-body{ padding:0 12px 12px; display:flex; flex-direction:column; gap:8px; }
.hb-cc-cookie{ background:var(--cc-bg); border:1px solid var(--cc-line); border-radius:8px; padding:10px 12px; }
.hb-cc-cookie-name code{ font-size:13px; font-weight:700; }
#hb-cc .hb-cc-cookie p{ margin:4px 0 8px; font-size:13px; line-height:1.5; color:var(--cc-muted); }
.hb-cc-cookie dl{ display:flex; flex-wrap:wrap; gap:4px 24px; border-top:1px solid var(--cc-line); padding-top:8px; font-size:12px; }
.hb-cc-cookie dt{ color:var(--cc-muted); font-weight:600; }
.hb-cc-cookie dd{ font-weight:700; }
#hb-cc .hb-cc-empty{ font-size:13px; color:var(--cc-muted); padding:6px 0; }

.hb-cc-about p{ font-size:14px; line-height:1.65; color:var(--cc-muted); }
#hb-cc .hb-cc-about p + p{ margin-top:12px; }
.hb-cc-policy{ color:var(--cc-accent); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.hb-cc-receipt{ margin-top:20px; padding:12px 14px; border:1px solid var(--cc-line); border-radius:10px; display:flex; flex-direction:column; gap:6px; font-size:13px; }
.hb-cc-receipt > div{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.hb-cc-receipt span:first-child{ color:var(--cc-muted); }
.hb-cc-receipt code{ font-size:12px; word-break:break-all; }

.hb-cc-card-foot{ display:flex; gap:10px; padding:16px 22px; border-top:1px solid var(--cc-line); background:var(--cc-bg); }
#hb-cc .hb-cc-card-foot .hb-cc-btn{ flex:1 1 0; font-weight:700; font-size:14.5px; }
#hb-cc .hb-cc-btn-outline{ background:transparent; border:2px solid var(--cc-accent); color:var(--cc-accent); padding:10px 16px; }
#hb-cc .hb-cc-btn-outline:hover{ background:rgba(14,110,102,.08); background:color-mix(in srgb, var(--cc-accent) 9%, transparent); filter:none; }
#hb-cc .hb-cc-card-foot .hb-cc-btn-primary{ border-width:2px; padding:10px 16px; }

@media (max-width:640px){
  .hb-cc-banner-inner{ padding:16px; } .hb-cc-actions .hb-cc-btn{ flex:1 1 100%; }
  .hb-cc-modal{ padding:0; align-items:flex-end; }
  .hb-cc-card{ height:92vh; border-radius:16px 16px 0 0; }
  .hb-cc-card-body{ padding:18px 16px; }
  .hb-cc-quick{ grid-template-columns:repeat(2,1fr); }
  .hb-cc-quick-item:nth-child(3){ border-left:0; }
  .hb-cc-quick-item:nth-child(n+3){ border-top:1px solid var(--cc-line); }
  #hb-cc .hb-cc-cat-desc{ margin-left:0; }
  .hb-cc-cat-details{ margin-left:0; }
  .hb-cc-card-foot{ flex-direction:column-reverse; padding:12px 16px; gap:8px; }
  #hb-cc .hb-cc-card-foot .hb-cc-btn{ flex:0 0 auto; width:100%; }
}

/* ---- Multiple views (layout) ---- */
/* bar (default) = full-width centered bottom bar, defined above. */
#hb-cc.hb-cc-layout-box .hb-cc-banner{ right:auto; max-width:400px; margin:0; }
#hb-cc.hb-cc-layout-box .hb-cc-banner-inner{ flex-direction:column; align-items:stretch; }
#hb-cc.hb-cc-layout-box .hb-cc-actions .hb-cc-btn{ flex:1 1 auto; }
#hb-cc.hb-cc-layout-center .hb-cc-banner{ left:50%; right:auto; bottom:auto; top:50%; transform:translate(-50%,-50%); max-width:520px; width:calc(100% - 32px); }
#hb-cc.hb-cc-layout-center .hb-cc-banner-inner{ flex-direction:column; align-items:stretch; text-align:center; }

/* ---- Forced colour themes ---- */
#hb-cc.hb-cc-theme-dark{ --cc-ink:#e8ebf0; --cc-line:#2b323d; --cc-bg:#181d25; --cc-muted:#9aa4b2; --cc-soft:#222833; }
#hb-cc.hb-cc-theme-dark .hb-cc-btn-ghost{ background:#232a34; }
#hb-cc.hb-cc-theme-dark .hb-cc-btn:not(.hb-cc-btn-primary):not(.hb-cc-btn-outline){ background:#1f252e; }
#hb-cc.hb-cc-theme-dark .hb-cc-logo{ filter:brightness(0) invert(1); }
@media (prefers-color-scheme:dark){
  #hb-cc.hb-cc-theme-auto{ --cc-ink:#e8ebf0; --cc-line:#2b323d; --cc-bg:#181d25; --cc-muted:#9aa4b2; --cc-soft:#222833; }
  #hb-cc.hb-cc-theme-auto .hb-cc-btn-ghost{ background:#232a34; }
  #hb-cc.hb-cc-theme-auto .hb-cc-btn:not(.hb-cc-btn-primary):not(.hb-cc-btn-outline){ background:#1f252e; }
  #hb-cc.hb-cc-theme-auto .hb-cc-logo{ filter:brightness(0) invert(1); }
}

/* [cookie-declaration] shortcode - for the cookie/privacy policy page */
.hb-ccd{ --ccd-accent:#0E6E66; --ccd-line:#e6e8ec; --ccd-muted:#5b6472; font-size:15px; line-height:1.6; }
.hb-ccd-title{ font-size:1.6em; font-weight:700; margin:0 0 .4em; }
.hb-ccd-intro{ color:var(--ccd-muted); margin:0 0 1em; }
.hb-ccd-actions{ margin:0 0 1.4em; }
.hb-ccd-btn{ appearance:none; border:1px solid var(--ccd-accent); background:var(--ccd-accent); color:#fff; border-radius:10px;
  padding:10px 18px; font-size:14px; font-weight:600; cursor:pointer; }
.hb-ccd-btn:hover{ filter:brightness(1.05); }
.hb-ccd-cat{ margin:1.4em 0; }
.hb-ccd-cat-title{ font-size:1.15em; font-weight:700; margin:0 0 .2em; display:flex; align-items:center; gap:.5em; }
.hb-ccd-cat-icon{ width:30px; height:30px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.hb-ccd-cat-icon svg{ width:18px; height:18px; }
.hb-ccd-cat-icon-necessary{ color:#0E6E66; background:rgba(14,110,102,.12); }
.hb-ccd-cat-icon-preferences{ color:#2f6fd6; background:rgba(47,111,214,.12); }
.hb-ccd-cat-icon-statistics{ color:#7c5cd6; background:rgba(124,92,214,.13); }
.hb-ccd-cat-icon-marketing{ color:#e07a1f; background:rgba(224,122,31,.13); }
.hb-ccd-count{ font-size:.7em; font-weight:700; color:var(--ccd-accent); background:rgba(14,110,102,.12); border-radius:20px; padding:2px 10px; }
.hb-ccd-cat-desc{ color:var(--ccd-muted); margin:.1em 0 .7em; }
.hb-ccd-table-wrap{ overflow-x:auto; border:1px solid var(--ccd-line); border-radius:12px; }
.hb-ccd-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.hb-ccd-table th,.hb-ccd-table td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--ccd-line); vertical-align:top; }
.hb-ccd-table thead th{ background:rgba(14,110,102,.06); color:var(--ccd-muted); font-weight:600; }
.hb-ccd-table tbody tr:last-child td,.hb-ccd-table tr:last-child td{ border-bottom:0; }
.hb-ccd-table code{ font-size:12.5px; }
.hb-ccd-empty{ color:var(--ccd-muted); font-style:italic; }
@media (prefers-color-scheme:dark){
  .hb-ccd{ --ccd-line:#2b323d; --ccd-muted:#9aa4b2; }
  .hb-ccd-table thead th{ background:rgba(255,255,255,.04); }
}
