.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;
}

@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 {
    /* Scale the bitmap's transparent margins without cropping the signature. */
    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;
  }
}
