/* Keep the consent dialog readable when the browser has little vertical space. */
@media (max-height: 400px) {
  body.bde-host .cmplz-cookiebanner {
    zoom: 1;
    height: auto;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 6px;
    gap: 6px;
    padding: 8px 14px max(10px, env(safe-area-inset-bottom)) !important;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-header {
    grid-template-columns: auto minmax(0, 1fr) 44px;
    column-gap: 8px;
    max-height: none;
    margin-bottom: 0 !important;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-header .cmplz-title {
    display: block;
    justify-self: start;
    font-weight: 700;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-close,
  body.bde-host .cmplz-cookiebanner .cmplz-information,
  body.bde-host .cmplz-cookiebanner .cmplz-documents {
    zoom: 1 !important;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-divider {
    margin-inline: -14px;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-body {
    flex: none;
    overflow: visible;
    margin-top: 0 !important;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    zoom: 1 !important;
    height: auto !important;
    min-height: 44px !important;
    font-size: clamp(13px, 3.8vw, 15px) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    padding: 6px !important;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):not(.cmplz-deny) {
    grid-column: 1 / -1;
  }

  body.bde-host .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
    background-color: #201529;
  }
}
