/* The collapsed home header follows its contents, rather than the desktop width. */
@media (max-width: 900px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize):has(#cart-drawer[data-open="true"], #cart-checkout-modal[data-open="true"]) .landing-header {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .landing-header-inner {
    box-sizing: border-box;
    width: max-content !important;
    max-width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    margin-inline: auto !important;
    padding: 7px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .landing-wordmark {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .landing-header-actions {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    gap: 4px !important;
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .landing-icon-button,
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .ep-contact-links a {
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    flex: 0 0 44px;
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .landing-header-quote {
    height: 44px !important;
    min-height: 44px !important;
    white-space: nowrap;
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .landing-header .landing-panel {
    box-sizing: border-box;
    top: calc(100% + 8px);
    width: calc(100% - 20px);
    max-width: 640px;
    margin-inline: auto;
    max-height: calc(100dvh - 96px) !important;
  }
}
