.hls-consent-banner[hidden],
.hls-consent-panel[hidden],
.hls-consent-backdrop[hidden] { display: none !important; }

.hls-consent-banner {
  position: fixed;
  z-index: 10020;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  max-width: 72rem;
  margin: 0 auto;
  border: 1px solid #d6dee6;
  border-radius: 1rem;
  background: #fff;
  color: #122235;
  padding: 1.25rem;
  box-shadow: 0 18px 48px rgba(7, 24, 39, .24);
}

.hls-consent-banner h2,
.hls-consent-panel h2,
.hls-consent-panel h3 { color: #0b1f33; }

.hls-consent-banner h2,
.hls-consent-panel h2 { margin: .15rem 0 .45rem; font-size: 1.35rem; line-height: 1.2; }

.hls-consent-banner p,
.hls-consent-panel p { margin: .4rem 0; }

.hls-consent-eyebrow {
  color: #9f4c05;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hls-consent-links,
.hls-consent-panel__links { font-size: .84rem; }

.hls-consent-actions,
.hls-consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.hls-consent-button,
.hls-consent-close,
.hls-inline-privacy-button,
.hls-footer-privacy-button {
  font: inherit;
}

.hls-consent-button {
  min-height: 2.75rem;
  border: 2px solid #0b1f33;
  border-radius: .6rem;
  background: #fff;
  color: #0b1f33;
  padding: .65rem .9rem;
  font-weight: 800;
  cursor: pointer;
}

.hls-consent-button--primary {
  background: #f28c28;
  color: #0b1f33;
}

.hls-consent-button:hover,
.hls-consent-button:focus-visible,
.hls-consent-close:hover,
.hls-consent-close:focus-visible,
.hls-inline-privacy-button:focus-visible,
.hls-footer-privacy-button:focus-visible {
  outline: 3px solid rgba(242, 140, 40, .42);
  outline-offset: 2px;
}

.hls-consent-backdrop {
  position: fixed;
  z-index: 10030;
  inset: 0;
  background: rgba(7, 24, 39, .58);
}

.hls-consent-panel {
  position: fixed;
  z-index: 10040;
  top: 50%;
  left: 50%;
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 1rem;
  background: #fff;
  color: #122235;
  padding: 1.35rem;
  box-shadow: 0 24px 70px rgba(7, 24, 39, .34);
}

.hls-consent-panel__header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.hls-consent-close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #aebbc7;
  border-radius: .55rem;
  background: #fff;
  color: #0b1f33;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.hls-consent-category {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  border: 1px solid #d6dee6;
  border-radius: .75rem;
  padding: 1rem;
}

.hls-consent-category h3 { margin: 0 0 .25rem; font-size: 1rem; }
.hls-consent-category p { color: #526373; font-size: .9rem; }

.hls-consent-category--toggle > span {
  display: grid;
  gap: .25rem;
}

.hls-consent-category--toggle input {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  accent-color: #0b1f33;
}

.hls-consent-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef3f7;
  padding: .35rem .65rem;
  color: #0b1f33;
  font-size: .78rem;
  font-weight: 800;
}

.hls-inline-privacy-button,
.hls-footer-privacy-button {
  display: inline;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

/* WordPress/global button styles can outrank a bare class selector in the
 * footer. Reset the footer privacy control explicitly so it renders like the
 * surrounding text links while retaining native button semantics. */
.hls-footer .hls-footer-privacy-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e6f0f7 !important;
  padding: 0 !important;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .18em;
  vertical-align: baseline;
  cursor: pointer;
}

.hls-footer .hls-footer-privacy-button:hover { color: #fff !important; }

@media (max-width: 48rem) {
  .hls-consent-banner {
    bottom: 5.5rem;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 7rem);
    overflow: auto;
  }

  .hls-consent-actions,
  .hls-consent-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hls-consent-button { width: 100%; }
}

@media (max-width: 34rem) {
  .hls-consent-category { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hls-consent-banner,
  .hls-consent-panel { scroll-behavior: auto; }
}
