/* Cookie banner — colours are kept from the original design. */
.cookie-notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: calc(100% - 40px);
  padding: 10px 12px 10px 16px;
  background: #006F8A;
  color: #fff;
  border-radius: 10px;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(calc(100% + 20px));
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cookie-notice__link,
.cookie-notice__link:visited {
  color: #fff;
  text-decoration: underline;
}

.cookie-notice__link:hover,
.cookie-notice__link:focus {
  color: inherit !important;
  text-decoration: none;
}

.cookie-notice__btn {
  flex-shrink: 0;
  margin: 0 0 0 auto;
  padding: 6px 15px;
  background: rgba(0, 0, 0, 0);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: all ease 0.3s;
}

.cookie-notice__btn:hover,
.cookie-notice__btn:focus-visible {
  background: #057f96;
}

/* Mobile: a single full-width strip, max 64px high. */
@media (max-width: 767px) {
  .cookie-notice {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    min-height: 52px;
    max-height: 64px;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    font-size: 13px;
    gap: 8px;
  }

  .cookie-notice__btn {
    min-height: 36px;
    padding: 6px 14px;
  }

  /* Keep floating buttons above the strip while it is shown. */
  body.cookie-visible .premier-float-btn {
    bottom: calc(64px + 12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    transition: none;
  }
}
