/* Published from Horyzon design kit — edit sources in horyzon-design-kit/, then sync. */
html.hc-open { overflow: hidden; }
.horyzon-consent {
  --hc-accent: #fff;
  --hc-size-ease: cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  margin: 0;
  width: min(900px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 40px);
  padding: 0; border: 0; border-radius: 9px;
  background: #080808; color: #fff; box-shadow: 0 24px 90px #0005;
  font: 400 15px/1.6 Satoshi, Arial, sans-serif; overflow: auto; overscroll-behavior: contain;
}
/* Pinned while open: grow/shrink downward instead of recentering (avoids the “trip”). */
.horyzon-consent.hc-pinned {
  top: var(--hc-pin-top);
  left: var(--hc-pin-left);
  width: var(--hc-pin-width);
  translate: none;
}
.horyzon-consent:focus,
.horyzon-consent:focus-visible { outline: none; }
.horyzon-consent::backdrop { background: rgb(0 0 0 / 68%); }
.horyzon-consent *, .horyzon-consent *::before, .horyzon-consent *::after { box-sizing: border-box; }
.horyzon-consent [hidden] { display: none !important; }
.horyzon-consent .hc-tabs button { font: 700 15px/1.3 Satoshi, Arial, sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }
.horyzon-consent button:focus-visible:not([role="tab"]),
.horyzon-consent a:focus-visible,
.horyzon-consent [role="tabpanel"]:focus-visible { outline: 2px solid var(--hc-accent); outline-offset: -5px; }
.hc-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px; min-height: 76px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.hc-header img { display: block; width: 132px; height: auto; filter: brightness(0) invert(1); }
.hc-header > span { font-size: 14px; color: #bdbdbd; }
.hc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.hc-tabs button {
  min-height: 58px;
  padding: 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgb(255 255 255 / 52%);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hc-tabs button:hover { background: transparent; color: #fff; }
.hc-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--hc-accent); }
.hc-tabs button:focus,
.hc-tabs button:focus-visible { outline: none; }
.hc-content {
  padding: 21px 23px 23px;
  overflow: hidden;
}
.hc-content.hc-sizing {
  transition: height 0.34s var(--hc-size-ease);
}
.horyzon-consent h2 { margin: 0 0 8px; color: #fff; font: 700 16px/1.5 Satoshi, Arial, sans-serif; letter-spacing: 0; }
.horyzon-consent p { margin: 0; font: inherit; }
.horyzon-consent p + p { margin-top: 12px; }
.horyzon-consent a { color: var(--hc-accent); text-decoration: underline; display: inline-block; padding-block: 8px; }
.horyzon-consent dl { margin: 12px 0; }
.horyzon-consent dt { font-weight: 700; }
.horyzon-consent dd { margin: 0 0 12px; color: #ccc; }
.hc-categories { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgb(255 255 255 / 8%); }
.hc-category { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 10px; min-height: 114px; font-weight: 700; cursor: pointer; }
.hc-category + .hc-category { border-left: 1px solid rgb(255 255 255 / 8%); }
.hc-category:first-child { cursor: default; }
.hc-category input { position: absolute; width: 58px; height: 34px; bottom: 22px; opacity: 0; margin: 0; }
.hc-switch {
  display: block; position: relative; width: 58px; height: 34px; border: 0; border-radius: 30px;
  background: #363636; pointer-events: none;
  transition: background-color 0.22s ease;
}
.hc-switch::after {
  content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.hc-category input:checked + .hc-switch { background: var(--hc-accent); }
.hc-category input:checked + .hc-switch::after { transform: translateX(24px); background: #080808; }
@media (prefers-reduced-motion: reduce) {
  .hc-switch,
  .hc-switch::after { transition: none; }
}
.hc-category input:focus-visible + .hc-switch { outline: 2px solid var(--hc-accent); outline-offset: 5px; }

/* Deny left, Allow actions right — same site button system. */
.hc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 23px 22px;
}
.hc-actions__allow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}
.horyzon-consent .hc-actions .btn {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: #212121;
  text-align: left;
}
/* Only “Allow all” stays white primary; other actions use dark-dialog outline style. */
.horyzon-consent .hc-actions .btn:not([data-choice="all"]) .btn__bg {
  background-color: transparent;
  background-image: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%);
}
.horyzon-consent .hc-actions .btn:not([data-choice="all"]) .btn__text,
.horyzon-consent .hc-actions .btn:not([data-choice="all"]) .btn__span {
  color: #fff;
}
.horyzon-consent .hc-actions .btn:not([data-choice="all"]) .arrow {
  background-color: rgb(255 255 255 / 14%);
  background-image: none;
}
.horyzon-consent .hc-actions .btn:not([data-choice="all"]) .arrow .arrow__box {
  color: #fff;
}
/* Allow all: white shell + dark label (primary theme was white-on-white). */
.horyzon-consent .hc-actions .btn[data-choice="all"] .btn__bg {
  background-color: #fff !important;
  background-image: none !important;
}
.horyzon-consent .hc-actions .btn[data-choice="all"] .btn__text,
.horyzon-consent .hc-actions .btn[data-choice="all"] .btn__span {
  color: #080808 !important;
}
.horyzon-consent .hc-actions .btn[data-choice="all"] .arrow,
.horyzon-consent .hc-actions .btn[data-choice="all"] .arrow__bg,
.horyzon-consent .hc-actions .btn[data-choice="all"]:hover .arrow,
.horyzon-consent .hc-actions .btn[data-choice="all"]:hover .arrow__bg {
  background-color: #080808 !important;
  background-image: none !important;
}
.horyzon-consent .hc-actions .btn[data-choice="all"] .arrow .arrow__box,
.horyzon-consent .hc-actions .btn[data-choice="all"]:hover .arrow .arrow__box {
  color: #fff !important;
}
.horyzon-consent .hc-actions .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.horyzon-consent .hc-actions .btn[data-btn-theme="primary"]:focus-visible {
  outline-color: #fff;
}

@media (max-width: 600px) {
  .horyzon-consent { width: calc(100% - 24px); max-height: calc(100dvh - 24px); font-size: 14px; }
  .hc-header { padding: 18px; min-height: 68px; }
  .hc-header img { width: 112px; }
  .hc-header > span { font-size: 12px; }
  .hc-tabs button { padding: 13px 8px; min-height: 52px; font-size: 14px; }
  .hc-content { padding: 18px; }
  .hc-categories { grid-template-columns: repeat(2, 1fr); }
  .hc-category { min-height: 102px; padding: 16px 8px; gap: 9px; }
  .hc-category input { bottom: 16px; }
  .hc-category:nth-child(3) { border-left: 0; }
  .hc-category:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 8%); }
  .hc-actions { padding: 14px 18px 18px; flex-direction: column; align-items: stretch; }
  .hc-actions__allow { width: 100%; margin-left: 0; flex-direction: column; }
  .horyzon-consent .hc-actions .btn { width: 100%; justify-content: space-between; }
}
