/* Cookie banner, footer links, map placeholder and policy table. Bump ?v= on every page when this changes. */
:root {
  --consent-text: #374151; /* about 10:1 on white; the template body colour is too light */
}

/* Banner */
.hh-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #fff;
  color: var(--consent-text);
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  padding: 16px 20px;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
}

.hh-consent__text {
  flex: 1 1 320px;
  max-width: 760px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hh-consent__title {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--title-font-color);
}

.hh-consent__body,
.hh-consent__status {
  margin: 0;
  color: var(--consent-text);
}

.hh-consent__status:empty {
  display: none;
}

.hh-consent a,
.hh-privacy a,
[data-consent-map] a,
.hh-form-note a {
  color: var(--primary-color);
  text-decoration: underline;
}

.hh-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Accept and Decline share one style so neither is favoured. */
.hh-consent__btn,
[data-consent-map] button {
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  min-width: 120px;
  padding: 10px 28px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
}

.hh-consent__btn:hover,
[data-consent-map] button:hover {
  background: #1b4263;
  border-color: #1b4263;
}

.hh-consent__btn:focus-visible,
[data-consent-map] button:focus-visible,
button[data-cookie-settings]:focus-visible,
.hh-privacy a:focus-visible,
.hh-consent a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hh-consent__actions { width: 100%; }
  .hh-consent__btn { flex: 1 1 120px; }
}

/* Footer links */
.hh-footer-links {
  margin-top: 8px;
}

.hh-footer-links a,
button[data-cookie-settings] {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #4b5563;
  text-decoration: underline !important;
  cursor: pointer;
}

footer.footer-light .hh-footer-links a {
  color: #4b5563;
}

.hh-footer-links .hh-sep {
  margin: 0 8px;
}

.hh-privacy button[data-cookie-settings] {
  color: var(--primary-color);
}

.hh-privacy button[data-cookie-settings][hidden] {
  display: none;
}

/* Map placeholder */
[data-consent-map] .hh-map-placeholder {
  min-height: 200px;
  padding: 32px 20px;
  border-radius: 10px;
  background: var(--bg-grey);
  color: var(--consent-text);
  text-align: center;
  overflow-wrap: anywhere;
}

[data-consent-map] .hh-map-placeholder p {
  max-width: 640px;
  margin: 0 auto 12px;
  color: var(--consent-text);
}

[data-consent-map] button[hidden] {
  display: none;
}

[data-consent-map] iframe {
  max-width: 100%;
  display: block;
}

/* Contact form note */
.hh-form-note {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--consent-text);
}

/* Privacy policy page */
.hh-privacy {
  max-width: 760px;
  color: var(--consent-text);
  overflow-wrap: break-word;
}

.hh-privacy p,
.hh-privacy li {
  color: var(--consent-text);
}

.hh-privacy h2 {
  margin-top: 40px;
  font-size: 28px;
}

.hh-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.hh-table-wrap:focus-visible {
  outline: 3px solid #f59e0b;
}

.hh-privacy table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--consent-text);
}

.hh-privacy caption {
  caption-side: top;
  padding: 0 0 8px;
  font-weight: bold;
  text-align: left;
  color: var(--title-font-color);
}

.hh-privacy th,
.hh-privacy td {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  text-align: left;
  vertical-align: top;
}

.hh-privacy thead th {
  background: var(--bg-grey);
  color: var(--title-font-color);
}

@media (prefers-reduced-motion: reduce) {
  .hh-consent, .hh-consent * { transition: none !important; animation: none !important; }
}

/* Gap between the copyright text and the privacy links in the subfooter */
.hh-footer-links {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .subfooter .de-flex-col:has(> .hh-footer-links) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 24px;
  }
  .subfooter .hh-footer-links {
    margin-top: 0;
  }
}
