/* Keep the home page phone number available before choosing cookie consent. */
#cookie-consent-banner .cc-mobile-phone {
  display: none;
}

@media (max-width: 767px) {
  #cookie-consent-banner {
    display: flex;
    flex-direction: column;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    max-height: calc(100vh - 110px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 110px - env(safe-area-inset-bottom));
    border-radius: 14px;
    background: #050808;
  }

  #cookie-consent-banner .cc-mobile-phone {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 12px 12px 0;
    padding: 10px;
    border-radius: 10px;
    color: #061719;
    background: var(--teal);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
  }

  #cookie-consent-banner .cc-mobile-phone:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
  }

  #cookie-consent-banner .cc-wrap,
  #cookie-consent-banner .cc-panel {
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #cookie-consent-banner .cc-wrap {
    gap: 10px;
  }

  #cookie-consent-banner .cc-title {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.3;
  }

  #cookie-consent-banner .cc-text {
    font-size: 13px;
    line-height: 1.45;
  }

  #cookie-consent-banner .cc-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
  }

  #cookie-consent-banner button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  #cookie-consent-banner.cc-settings-open .cc-wrap {
    display: none;
  }

  #cookie-consent-banner .cc-panel {
    margin-top: 12px;
  }

  #cookie-consent-banner .cc-actions-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #cookie-consent-banner input[type="checkbox"] {
    flex-shrink: 0;
  }
}