.cookie-preferences[hidden],
.cookie-preferences [hidden] {
  display: none;
}

.cookie-preferences {
  position: fixed;
  z-index: 1200;
  inset-inline-start: max(1rem, env(safe-area-inset-left));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid #cbd7d9;
  border-radius: .9rem;
  background: #fffdf8;
  color: #103b49;
  box-shadow: 0 .55rem 2rem rgb(16 59 73 / 19%);
  font: 400 .875rem/1.45 var(--font-body, system-ui);
}

.cookie-preferences h2 {
  margin: 0 0 .45rem;
  color: inherit;
  font-size: 1.55rem;
  line-height: 1.1;
}

.cookie-preferences p {
  margin: 0 0 .85rem;
}

.cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.cookie-preferences button {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: .45rem .7rem;
  border: 1px solid #276074;
  border-radius: .45rem;
  background: transparent;
  color: #103b49;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-preferences button:hover,
.cookie-preferences button[aria-expanded="true"] {
  background: #e1f3ef;
}

.cookie-preferences__options {
  display: grid;
  justify-items: start;
  gap: .7rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid #cbd7d9;
}

.cookie-preferences__options label {
  display: flex;
  align-items: start;
  gap: .6rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.cookie-preferences__options input {
  width: 1.15rem;
  height: 1.15rem;
  margin: .15rem 0 0;
  accent-color: #006191;
}

.cookie-preferences__options label span span {
  display: block;
}

.cookie-preferences__policy,
.cookie-preferences-link {
  display: inline-block;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.cookie-preferences__policy {
  margin-top: .75rem;
}

.cookie-preferences-link {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.cookie-preferences-link--standalone {
  margin: 1rem 1rem 10rem;
  color: #103b49;
}

.cookie-preferences :focus-visible,
.cookie-preferences-link:focus-visible {
  outline: 2px solid #006191;
  outline-offset: 3px;
}

@media (min-width: 1001px) {
  body:has(#bookingForm:not(.is-footer-visible)) .cookie-preferences {
    inset-block-end: calc(9rem + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 10rem);
  }
}

@media (max-width: 1000px) {
  body:has(.cookie-preferences:not([hidden])) #BeeBotStruct #icon-content {
    z-index: 1100;
  }

  body:has(.cookie-preferences:not([hidden])) #BeeBotStruct #icon-text {
    visibility: hidden;
  }

  .cookie-preferences {
    inset-block-start: max(5.5rem, calc(env(safe-area-inset-top) + 1rem));
    inset-block-end: auto;
    max-height: calc(100dvh - 6.5rem);
  }
}
