/* Cookie consent bar. Humane Business colours and Plus Jakarta Sans, already used on the site. */

.hb-consent[hidden] {
  display: none !important;
}

.hb-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--hb-consent-lift, 0px);
  z-index: 4000;
  box-sizing: border-box;
  background: #F7F7F5;
  color: #1B2E3C;
  border-top: 3px solid #C5A269;
  box-shadow: 0 -8px 28px rgba(27, 46, 60, 0.12);
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
}

.hb-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.hb-consent-copy {
  margin: 0;
  max-width: 46rem;
}

.hb-consent-copy a {
  color: #1B2E3C;
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.hb-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.hb-consent-actions button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  font: 600 15px/1 "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  min-height: 44px;
  min-width: 7.5rem;
  padding: 0 18px;
  border-radius: 6px;
  border: 1.5px solid #1B2E3C;
  background: transparent;
  color: #1B2E3C;
  cursor: pointer;
}

.hb-consent-actions button:hover {
  background: #1B2E3C;
  color: #F7F7F5;
}

.hb-consent-actions button:focus-visible,
.hb-consent a:focus-visible,
a.hb-cookie-settings:focus-visible {
  outline: 3px solid #1B2E3C;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #F7F7F5;
}

a.hb-cookie-settings {
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.hb-cookie-settings-row {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
}

.hb-cookie-footer {
  padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #1B2E3C;
  color: #F7F7F5;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
}

.hb-cookie-footer a {
  color: #F7F7F5;
}

body.hb-consent-open {
  padding-bottom: calc(var(--hb-consent-h, 7.5rem) + var(--hb-consent-lift, 0px));
}

@media (max-width: 700px) {
  .hb-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hb-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hb-consent-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-consent,
  .hb-consent-actions button {
    transition: none;
  }
}

@media print {
  .hb-consent,
  .hb-cookie-footer,
  .hb-cookie-settings,
  .hb-cookie-settings-sep,
  .hb-cookie-settings-row {
    display: none !important;
  }
}
