/* Cookie banner — expands in place for settings */

.mhero-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  color: var(--navy, #063677);
  background: #fff;
  box-shadow: 0 -8px 32px rgba(6, 54, 119, 0.16);
  border-top: 1px solid rgba(6, 54, 119, 0.12);
}

.mhero-cookie[hidden] {
  display: none !important;
}

html.mhero-cookie-open {
  padding-bottom: 9rem;
}

html.mhero-cookie-open:has(.mhero-cookie.is-settings) {
  padding-bottom: 18rem;
}

.mhero-ck-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy actions"
    "cats cats";
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.25rem;
}

.mhero-ck-lead {
  grid-area: copy;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.mhero-ck-cookie {
  flex: 0 0 2.85rem;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 135, 28, 0.14);
  color: var(--accent, #fb871c);
}

.mhero-ck-cookie svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.mhero-ck-copy {
  min-width: 0;
}

.mhero-ck-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy, #063677);
}

.mhero-ck-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3d4a5c;
}

.mhero-ck-text p {
  margin: 0;
}

.mhero-ck-text a {
  color: var(--navy, #063677);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.mhero-ck-text a:hover {
  color: var(--accent, #fb871c);
}

.mhero-ck-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.mhero-ck-actions .btn {
  white-space: normal;
  text-align: center;
}

.mhero-ck-icon-only {
  min-width: 2.65rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.mhero-ck-icon-only .btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mhero-ck-accept,
.mhero-ck-cancel {
  display: none !important;
}

.mhero-cookie.is-settings .mhero-ck-choice,
.mhero-cookie.is-settings .mhero-ck-refuse {
  display: none !important;
}

.mhero-cookie.is-settings .mhero-ck-accept,
.mhero-cookie.is-settings .mhero-ck-cancel {
  display: inline-flex !important;
}

.mhero-ck-cats {
  display: none;
  grid-area: cats;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(6, 54, 119, 0.12);
  background: #f7f9fd;
}

.mhero-cookie.is-settings .mhero-ck-cats,
.mhero-cookie.is-settings .mhero-ck-cats[hidden] {
  display: grid !important;
}

.mhero-ck-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(6, 54, 119, 0.1);
}

.mhero-ck-cat:last-child {
  border-bottom: 0;
}

.mhero-ck-cat-copy {
  min-width: 0;
  display: block;
}

.mhero-ck-cat-title {
  display: block;
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy, #063677);
}

.mhero-ck-cat-desc {
  display: block;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #3d4a5c;
}

.mhero-ck-cat-desc p {
  margin: 0;
}

.mhero-ck-cat-desc p + p {
  margin-top: 0.35em;
}

.mhero-ck-cat-desc a {
  color: var(--navy, #063677);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.mhero-ck-cat-desc a:hover {
  color: var(--accent, #fb871c);
}

.mhero-ck-cat-desc ul,
.mhero-ck-cat-desc ol {
  margin: 0.25em 0 0;
  padding-left: 1.2em;
}

.mhero-ck-switch {
  position: relative;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 1.55rem;
}

.mhero-ck-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mhero-ck-switch.is-locked input {
  cursor: not-allowed;
}

.mhero-ck-switch-ui {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #c5cdd6;
  pointer-events: none;
}

.mhero-ck-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(6, 54, 119, 0.25);
  transition: transform 0.16s ease;
}

.mhero-ck-switch.is-on .mhero-ck-switch-ui,
.mhero-ck-switch:has(input:checked) .mhero-ck-switch-ui {
  background: var(--navy, #063677);
}

.mhero-ck-switch.is-on .mhero-ck-switch-ui::after,
.mhero-ck-switch:has(input:checked) .mhero-ck-switch-ui::after {
  transform: translateX(1.2rem);
}

.mhero-cookie .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mhero-ck-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 19990;
  width: 3.15rem;
  height: 3.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent, #fb871c);
  box-shadow: 0 8px 24px rgba(6, 54, 119, 0.2);
  cursor: pointer;
}

.mhero-ck-fab[hidden] {
  display: none !important;
}

.mhero-ck-fab:hover {
  color: var(--navy, #063677);
}

.mhero-ck-fab:focus-visible {
  outline: 2px solid var(--accent, #fb871c);
  outline-offset: 3px;
}

.mhero-ck-fab svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  margin: 0 auto;
}

.footer-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-cookie-settings:hover {
  color: var(--accent, #fb871c);
}

@media (max-width: 720px) {
  .mhero-ck-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "cats"
      "actions";
    padding: 1rem 1rem 1.1rem;
  }

  .mhero-ck-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .mhero-ck-actions .btn,
  .mhero-cookie.is-settings .mhero-ck-accept {
    width: 100%;
    justify-content: center;
  }
}
