:root {
  --hxcc-navy: #06263a;
  --hxcc-navy-deep: #031a29;
  --hxcc-gold: #d7ad3e;
  --hxcc-gold-light: #f2d681;
  --hxcc-cream: #fffaf0;
  --hxcc-ink: #102938;
  --hxcc-muted: #5d676d;
  --hxcc-border: rgba(171, 126, 27, .34);
}

.hxcc[hidden], .hxcc [hidden] { display: none !important; }
.hxcc { position: fixed; inset: 0; z-index: 2147483000; direction: rtl; font-family: Assistant, Arial, sans-serif; color: var(--hxcc-ink); }
.hxcc__backdrop { position: absolute; inset: 0; background: rgba(0, 18, 30, .64); backdrop-filter: blur(3px); }
.hxcc__dialog { position: absolute; right: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(50%); width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(215, 173, 62, .75); border-radius: 24px; background: linear-gradient(145deg, #fffdf8 0%, var(--hxcc-cream) 100%); box-shadow: 0 26px 80px rgba(0, 18, 30, .42); outline: none; }
.hxcc__dialog::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, transparent, var(--hxcc-gold-light), var(--hxcc-gold), var(--hxcc-gold-light), transparent); }
.hxcc__header { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 26px 28px 14px; }
.hxcc__brand { display: grid; place-items: center; min-width: 76px; min-height: 76px; padding: 8px; border: 1px solid var(--hxcc-gold); border-radius: 18px; background: var(--hxcc-navy); color: var(--hxcc-gold-light); font-size: 25px; font-weight: 800; box-shadow: inset 0 0 22px rgba(215, 173, 62, .12); }
.hxcc h2, .hxcc h3, .hxcc p { margin-top: 0; }
.hxcc h2 { margin-bottom: 6px; color: var(--hxcc-navy); font-size: clamp(24px, 4vw, 32px); line-height: 1.18; }
.hxcc__header p { margin-bottom: 0; color: var(--hxcc-muted); font-size: 16px; line-height: 1.55; }
.hxcc__notice, .hxcc__preferences { padding: 0 28px 26px; }
.hxcc__notice > p { margin: 4px 0 18px; line-height: 1.55; }
.hxcc__signal { margin: 0 28px 16px; padding: 10px 14px; border-right: 4px solid var(--hxcc-gold); border-radius: 8px; background: #fff4cd; font-size: 14px; }
.hxcc__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hxcc__button, .hxcc-inline-button, .hxcc-footer-link { appearance: none; border: 1px solid var(--hxcc-gold); border-radius: 999px; background: #fff; color: var(--hxcc-navy); font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; }
.hxcc__button { min-height: 46px; padding: 11px 20px; }
.hxcc__button:hover, .hxcc__button:focus-visible, .hxcc-inline-button:hover, .hxcc-inline-button:focus-visible { background: #fff6d9; outline: 3px solid rgba(215, 173, 62, .28); outline-offset: 2px; }
.hxcc__button--primary { border-color: var(--hxcc-navy); background: var(--hxcc-navy); color: var(--hxcc-gold-light); }
.hxcc__button--primary:hover, .hxcc__button--primary:focus-visible { background: #0b344c; }
.hxcc__button--link { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.hxcc__close { position: absolute; top: 14px; left: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(6, 38, 58, .08); color: var(--hxcc-navy); font: 32px/1 Arial, sans-serif; cursor: pointer; }
.hxcc__close:focus-visible { outline: 3px solid var(--hxcc-gold); }
.hxcc__category { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--hxcc-border); }
.hxcc__category:first-child { border-top: 0; }
.hxcc__category h3 { margin-bottom: 3px; color: var(--hxcc-navy); font-size: 18px; }
.hxcc__category p { margin-bottom: 0; color: var(--hxcc-muted); line-height: 1.45; }
.hxcc__switch { position: relative; display: inline-flex; }
.hxcc__switch input { position: absolute; opacity: 0; }
.hxcc__switch span { position: relative; display: block; width: 52px; height: 30px; border: 1px solid #8a969d; border-radius: 99px; background: #e3e7e9; transition: .2s ease; }
.hxcc__switch span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: .2s ease; }
.hxcc__switch input:checked + span { border-color: var(--hxcc-navy); background: var(--hxcc-navy); }
.hxcc__switch input:checked + span::after { transform: translateX(-22px); background: var(--hxcc-gold-light); }
.hxcc__switch input:focus-visible + span { outline: 3px solid rgba(215, 173, 62, .4); outline-offset: 3px; }
.hxcc__switch input:disabled + span { opacity: .72; cursor: not-allowed; }
.hxcc__legal { margin: 8px 0 18px; border: 1px solid var(--hxcc-border); border-radius: 14px; background: rgba(255,255,255,.65); }
.hxcc__legal summary { padding: 13px 16px; color: var(--hxcc-navy); font-weight: 800; cursor: pointer; }
.hxcc__legal > div { padding: 0 16px 14px; font-size: 14px; line-height: 1.55; }
.hxcc__legal a { color: #8d1f57; font-weight: 700; }
.hxcc-footer-link { display: block; margin: 16px auto; padding: 7px 14px; font-size: 13px; }
.hxcc-inline-button { padding: 10px 17px; }
.hxcc-policy { border: 1px solid var(--hxcc-border); border-radius: 18px; padding: 22px; background: var(--hxcc-cream); }
body.hxcc-open { overflow: hidden; }

/* 1.0.5: the first decision is intentionally compact. Detailed controls keep
   the full dialog and open only when the visitor asks to customise. */
.hxcc[data-view="notice"] .hxcc__dialog,
.hxcc__dialog:has(.hxcc__notice:not([hidden])) {
  width: min(620px, calc(100vw - 32px));
  max-height: min(76vh, 520px);
}
.hxcc[data-view="notice"] .hxcc__header,
.hxcc__dialog:has(.hxcc__notice:not([hidden])) .hxcc__header {
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 22px 24px 10px;
}
.hxcc[data-view="notice"] .hxcc__brand,
.hxcc__dialog:has(.hxcc__notice:not([hidden])) .hxcc__brand {
  min-width: 58px;
  min-height: 58px;
  border-radius: 14px;
  font-size: 20px;
}
.hxcc[data-view="notice"] .hxcc__notice,
.hxcc__dialog:has(.hxcc__notice:not([hidden])) .hxcc__notice {
  padding: 0 24px 22px;
}
.hxcc[data-view="notice"] .hxcc__notice > p,
.hxcc__dialog:has(.hxcc__notice:not([hidden])) .hxcc__notice > p {
  margin: 2px 0 14px;
  font-size: 14px;
}
.hxcc[data-view="notice"] .hxcc__actions,
.hxcc__dialog:has(.hxcc__notice:not([hidden])) .hxcc__actions {
  justify-content:flex-start;
}

@media (max-width: 600px) {
  .hxcc__dialog { bottom: 0; width: 100%; max-height: min(88dvh, 760px); border-width: 1px 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .hxcc__header { grid-template-columns: 58px 1fr; gap: 12px; padding: 20px 18px 12px; }
  .hxcc__brand { min-width: 56px; min-height: 56px; border-radius: 14px; font-size: 19px; }
  .hxcc h2 { font-size: 23px; }
  .hxcc__header p, .hxcc__notice > p { font-size: 15px; }
  .hxcc__notice, .hxcc__preferences { padding-right: 18px; padding-left: 18px; }
  .hxcc__signal { margin-right: 18px; margin-left: 18px; }
  .hxcc__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hxcc__button { width: 100%; padding-right: 10px; padding-left: 10px; }
  .hxcc__button--link { grid-column: 1 / -1; }
  .hxcc__category { gap: 10px; }
  .hxcc__category p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hxcc *, .hxcc *::before, .hxcc *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-contrast: more) {
  .hxcc__dialog, .hxcc__category, .hxcc__legal { border-color: #7f5b00; }
}

/* Keep the consent controls branded when a theme loads generic button rules later. */
.hxcc .hxcc__button {
  appearance: none;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--hxcc-gold);
  border-radius: 999px;
  background: #fff;
  color: var(--hxcc-navy);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
}
.hxcc .hxcc__button--primary { border-color: var(--hxcc-navy); background: var(--hxcc-navy); color: var(--hxcc-gold-light); }
.hxcc .hxcc__button--link { border-color: transparent; background: transparent; color: var(--hxcc-navy); }
button.hxcc-footer-link, button.hxcc-inline-button { border-color: var(--hxcc-gold); border-radius: 999px; background: #fff; color: var(--hxcc-navy); font-family: inherit; font-weight: 700; }

@media (max-width:600px) {
  .hxcc[data-view="notice"] .hxcc__dialog,
  .hxcc[data-view="preferences"] .hxcc__dialog {
    right:0;
    bottom:0;
    transform:none;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    border-right:0;
    border-left:0;
    border-radius:22px 22px 0 0;
  }
}
