/* Keep fixed overlays out of the entrance animation's stacking contexts. */
html.loader-ready body > .cookie-banner,
html.loader-ready body > .cookie-reopen {
  animation: none;
}

.cookie-banner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
}

.cookie-banner p,
.cookie-actions {
  min-width: 0;
}

.cookie-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.cookie-actions button {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* The signature bitmap has transparent margins: scale those proportionally. */
.loader-signature img {
  left: -40%;
  width: 180%;
  max-width: none;
}

@media (max-width: 780px) {
  .hero-title {
    left: 5% !important;
    top: 42px !important;
    width: 90% !important;
    height: auto !important;
    aspect-ratio: 2.5;
    transform: none !important;
  }

  .hero-title img {
    top: 50% !important;
    left: 50% !important;
    width: 180% !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  .cookie-banner {
    inset: 50% auto auto 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
    padding: 20px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 18px !important;
  }
}
