/* L'espresso header V3 — mobile admin preview only, via ?leshdr=1.
 * Left/right controls anchored to equal 12px viewport insets.
 * Overlapping grid items put the logo at the exact viewport midpoint,
 * not midway between unequal left and right columns.
 */
@media (max-width: 767px) {
  .leshdr-v3-active > .elementor-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  .leshdr-v3-active > .elementor-container > .elementor-column {
    grid-area: 1 / 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: max-content !important;
    flex: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .leshdr-v3-active > .elementor-container > .leshdr-v3-menu {
    justify-self: start !important;
    z-index: 3;
  }
  .leshdr-v3-active > .elementor-container > .leshdr-v3-actions {
    justify-self: end !important;
    z-index: 3;
    white-space: nowrap !important;
    min-width: max-content !important;
  }
  .leshdr-v3-active > .elementor-container > .leshdr-v3-logo {
    justify-self: center !important;
    max-width: min(155px, var(--leshdr-v3-logo-max, 155px)) !important;
    width: min(155px, var(--leshdr-v3-logo-max, 155px)) !important;
    min-width: 0 !important;
    text-align: center !important;
    overflow: visible !important;
    z-index: 2;
  }
  .leshdr-v3-logo .elementor-widget-wrap,
  .leshdr-v3-logo .elementor-widget,
  .leshdr-v3-logo .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .leshdr-v3-logo img {
    display: block !important;
    width: min(155px, 100%) !important;
    max-width: 155px !important;
    height: auto !important;
    object-fit: contain !important;
    margin-inline: auto !important;
      min-width: 0 !important;
}
  /* Elementor nested account and cart columns must grow to real content width. */
  .leshdr-v3-actions .leshdr-v3-inner,
  .leshdr-v3-actions .leshdr-v3-inner > .elementor-container {
    width: max-content !important;
    max-width: none !important;
    min-width: max-content !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .leshdr-v3-actions .leshdr-v3-inner > .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
  .leshdr-v3-actions .leshdr-v3-inner > .elementor-container > .elementor-column,
  .leshdr-v3-actions .elementor-widget-woocommerce-menu-cart,
  .leshdr-v3-actions .elementor-widget-wrap,
  .leshdr-v3-actions .elementor-widget-container,
  .leshdr-v3-actions .elementor-menu-cart__toggle,
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button {
    width: max-content !important;
    max-width: none !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
    padding: 0 !important;
  }
  /* On mobile the amount itself is the cart trigger; the trailing cart icon
   * wastes 25-30px and can push the dollar amount away from the right edge. */
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button .elementor-button-icon,
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button .elementor-menu-cart__toggle_button-icon {
    display: none !important;
  }
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button .elementor-button-text {
    white-space: nowrap !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-variant-numeric: tabular-nums;
  }
  .leshdr-v3-menu .elementor-menu-toggle { margin: 0 !important;     padding: 0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    justify-content: flex-start !important;
    align-items: center !important;
}
  /* Mobile account access is now inside the hamburger menu. */
  .leshdr-v3-actions .elementor-element-ef4f8ad {
    display: none !important;
  }

  /* leshdr-v3-final-cart-amount */
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button .woocommerce-Price-amount,
  .leshdr-v3-actions a.elementor-menu-cart__toggle_button .woocommerce-Price-amount bdi {
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
}
