/* Advertising consent banner (loaded only when theme ads_consent is on). See js/hosp-consent.js. */
.hosp-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; color: var(--text, #3A4A57);
  border-top: 4px solid var(--sage, #BCD5CD);
  box-shadow: 0 -6px 24px rgba(13, 47, 76, .18);
  padding-block: 1rem;
}
.hosp-consent[hidden] { display: none; }
.hosp-consent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.hosp-consent__text { flex: 1 1 26rem; max-width: 46rem; }
.hosp-consent__title { margin: 0 0 .25rem; font-size: 1.15rem; color: var(--ink, #14436A); }
.hosp-consent__title:focus { outline: none; }
.hosp-consent__title:focus-visible { outline: 3px solid var(--sage-deep, #416D5F); outline-offset: 3px; }
.hosp-consent__text p { margin: 0; font-size: .95rem; line-height: 1.5; }
.hosp-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Both choices look the same: same class, size and colours */
.hosp-consent__btn { min-height: 2.75rem; min-width: 11rem; }
/* Content can scroll clear of the banner while it is open */
body.hosp-consent-open { padding-bottom: var(--hosp-consent-h, 0); }

/* Footer "Cookie settings": a button that looks like the links beside it, 44px tall */
.hosp-consent-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -.75rem;
  padding: 0; border: 0; background: none; font: inherit; color: var(--ink, #14436A);
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; cursor: pointer;
}
.hosp-consent-link:hover { text-decoration-thickness: 2px; }

@media (max-width: 30em) {
  .hosp-consent { padding-block: .75rem; }
  .hosp-consent__title { font-size: 1.05rem; }
  .hosp-consent__text p { font-size: .9rem; }
  .hosp-consent__actions { width: 100%; gap: .5rem; }
  .hosp-consent__btn { flex: 1 1 100%; min-width: 0; padding-inline: 1rem; }
}
