/*
 * Header, desktop only (> 1024px): logo left + search/account/cart right in row 1,
 * main menu centered in its own row 2. Tablet and mobile keep the Elementor layout.
 * Classes are set by migrations/014-header-desktop-rows.php.
 */
@media (min-width: 1025px) {
  .elementor-element.sm-header > .e-con-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .sm-header > .e-con-inner > .elementor-element.sm-header__logo {
    order: 1;
    --width: auto;
    margin-right: auto;
  }

  .sm-header > .e-con-inner > .elementor-element.sm-header__tools {
    order: 2;
    --width: auto;
  }

  .sm-header > .e-con-inner > .elementor-element.sm-header__nav {
    order: 3;
    --width: 100%;
    justify-content: center;
    border-top: 1px solid #eee;
  }
}

@media (min-width: 1025px) {
  /* roomy search: long book titles */
  .sm-header__tools .elementor-widget.elementor-widget-jet-ajax-search {
    flex: 0 0 380px;
    width: 380px;
    max-width: none;
  }

  /* the hover underline is a border-bottom on the <li>; reserve it so the header doesn't jump */
  .sm-header__nav .e-n-menu-item {
    border-bottom: 1px solid transparent;
  }
}
