.hypr-consent {
  color-scheme: dark;
  position: fixed;
  z-index: 9999;
  inset: auto auto 24px 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1024px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #443b52;
  border-radius: 12px;
  background: #1e1b24;
  box-shadow: 0 12px 48px rgb(0 0 0 / 35%), 0 2px 8px rgb(0 0 0 / 20%);
  color: #f5f2fa;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.hypr-consent[hidden],
.hypr-consent__preferences[hidden] { display: none; }
.hypr-consent__header { display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.hypr-consent__icon { flex: 0 0 20px; width: 20px; height: 20px; color: #cdbdf3; }
.hypr-consent h2 { margin: 0; color: inherit; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.45; text-transform: none; }
.hypr-consent p { margin: 0; color: #c9c2d1; font: inherit; }
.hypr-consent .hypr-consent__intro { margin-top: 12px; }
.hypr-consent .hypr-consent__privacy { margin-top: 8px; font-size: 12px; }
.hypr-consent a { color: #d4c3ff; text-decoration: underline; text-underline-offset: 3px; }
.hypr-consent a:hover { color: #fff; }
.hypr-consent__close {
  appearance: none; position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 6px; background: transparent;
  color: #c9c2d1; cursor: pointer;
}
.hypr-consent__close svg { width: 20px; height: 20px; }
.hypr-consent__close:hover { color: #fff; background: #302a3a; }
.hypr-consent__preferences { margin-top: 20px; padding-top: 20px; border-top: 1px solid #403747; }
.hypr-consent__category + .hypr-consent__category { margin-top: 20px; }
.hypr-consent__category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 8px; font-weight: 600; }
.hypr-consent h3 { margin: 0; color: inherit; font: inherit; font-weight: 600; }
.hypr-consent label { cursor: pointer; }
.hypr-consent__badge { font-size: 12px; font-weight: 400; color: #d4c3ff; white-space: nowrap; }
.hypr-consent input[type="checkbox"] { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #b8a1ed; cursor: pointer; }
.hypr-consent__save { display: flex; justify-content: flex-end; margin-top: 18px; }
.hypr-consent__actions { position: sticky; bottom: -24px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 20px -1px -1px; padding-top: 18px; background: #1e1b24; border-top: 1px solid #403747; }
.hypr-consent__button {
  appearance: none; box-sizing: border-box; max-width: 100%; min-height: 42px; margin: 0; padding: 9px 16px;
  border: 1px solid #6255a0; border-radius: 7px; background: #6255a0; color: #fff; font: inherit;
  font-weight: 500; line-height: 22px; text-align: center; text-transform: none; white-space: normal;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.hypr-consent__button:hover { background: #7664b6; border-color: #7664b6; }
.hypr-consent__button--choice { min-width: 170px; }
.hypr-consent__button--customize { margin-right: auto; background: transparent; border-color: transparent; color: #e6dff1; }
.hypr-consent__button--customize:hover { background: #302a3a; border-color: transparent; }
.hypr-consent :is(button, input, a):focus-visible { outline: 2px solid #d4c3ff; outline-offset: 3px; }
.site-footer__cookie-settings {
  background: transparent; border: 0; padding: 0; color: inherit; font: inherit;
  text-decoration: underline; cursor: pointer;
}
@media (max-width: 600px) {
  .hypr-consent { bottom: 16px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 20px; }
  .hypr-consent__close { top: 12px; right: 12px; }
  .hypr-consent__actions { bottom: -20px; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .hypr-consent__button { width: 100%; }
  .hypr-consent__button--choice { min-width: 0; }
  .hypr-consent__button--customize { margin-right: 0; }
  .hypr-consent__save { display: block; }
}

/* Necessary-only is the secondary consent action. */
.hypr-consent [data-hypr-consent-choice="declined"]{background:transparent;border-color:#b5a6ce;color:#f5f2fa}
.hypr-consent [data-hypr-consent-choice="declined"]:hover{background:#302a3a;border-color:#d4c3ff}
