/*
 * Health Qwest — cookie consent.
 * Reject and Accept are deliberately identical in size, weight and colour. Only
 * "Manage" is visually quieter, because it is not a choice, it opens a panel.
 */
.hq-consent {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 9999;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  /* Paper ground, chocolate ink. This banner sets BOTH halves of every pair itself:
     inheriting one from the theme and one from here is what once rendered the
     disclosure as dark text on a dark field. */
  background: var(--wp--preset--color--paper, #fffaf4);
  color: var(--wp--preset--color--chocolate, #3e2b25);
  border-block-start: 1px solid rgba(62, 43, 37, 0.42);
  box-shadow: 0 -12px 32px -20px rgba(42, 28, 23, 0.45);
  font-size: 0.9375rem;
}
.hq-consent__inner {
  max-inline-size: 1240px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.hq-consent__title { margin: 0 0 0.2rem; font-size: 1.0625rem; line-height: 1.25; }
.hq-consent__text  { margin: 0; max-inline-size: 62ch; line-height: 1.5; }
.hq-consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hq-consent__btn {
  min-block-size: 44px;
  min-inline-size: 44px;
  padding: 0.6rem 1.15rem;
  border: 1.5px solid rgba(62, 43, 37, 0.6); /* 0.42 was 2.33:1, under 3:1 for a control boundary */
  border-radius: 999px;
  background: transparent;
  color: var(--wp--preset--color--chocolate, #3e2b25);
  font: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.hq-consent__btn:hover { background: var(--wp--preset--color--chocolate, #3e2b25); color: var(--wp--preset--color--paper, #fffaf4); }
.hq-consent__btn--quiet {
  border-color: rgba(62, 43, 37, 0.6);
  font-weight: 600;
}

.hq-consent__panel { grid-column: 1 / -1; padding-block-start: 0.5rem; }
.hq-consent__row { margin: 0 0 0.5rem; }
.hq-consent__row label { display: flex; gap: 0.55rem; align-items: flex-start; line-height: 1.5; }
.hq-consent__row input { margin-block-start: 0.25rem; inline-size: 1.1rem; block-size: 1.1rem; }
.hq-consent__note { margin: 0 0 0.75rem; font-size: 0.8125rem; color: rgba(62, 43, 37, 0.76); }

.hq-consent-reopen { margin: 0; }
.hq-consent-reopen__btn {
  min-block-size: 44px;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

:where(.hq-consent, .hq-consent-reopen) :focus-visible {
  /* Chocolate, 11:1 on paper. Coral was 2.58:1; the theme happened to override it, but this
     plugin is meant to stand on its own after a theme switch. */
  outline: 3px solid var(--wp--preset--color--chocolate, #3e2b25);
  outline-offset: 2px;
}

@media (max-width: 781px) {
  .hq-consent { padding-block: 0.75rem; font-size: 0.875rem; }
  .hq-consent__title { font-size: 0.9375rem; }
  .hq-consent__text { font-size: 0.8125rem; }
  .hq-consent__inner { gap: 0.5rem; grid-template-columns: 1fr; }
  .hq-consent__actions { justify-content: stretch; }
  .hq-consent__actions .hq-consent__btn { flex: 1 1 auto; }
}
