/* Keep the mobile cookie notice content-sized so it does not cover half the page. */
@media (max-width: 768px) {
  html body .hp-cookie-banner {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .hp-cookie-banner .hp-cookie-inner {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  html body .hp-cookie-banner .hp-cookie-text {
    flex: 0 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
  }

  html body .hp-cookie-banner .hp-cookie-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    gap: 10px !important;
  }

  html body .hp-cookie-banner .hp-cookie-btn {
    box-sizing: border-box !important;
    min-height: 44px !important;
    flex: 1 1 0 !important;
  }
}
