
:root {
  --alv-green: #008a00;
  --alv-green-dark: #006f00;
  --alv-navy: #162b4c;
  --alv-text: #2f3438;
  --alv-muted: #68737d;
  --alv-border: #e5e8eb;
  --alv-bg: #f7f9fb;
  --alv-white: #ffffff;
  --alv-gray-icon: #747d86;
  --alv-red: #d61f2c;
  --alv-topbar: #343434;
  --alv-shadow: 0 10px 28px rgba(18, 39, 63, .14);
  --alv-header-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--alv-text);
  background: var(--alv-bg);
}

/*
 * The normal header stays in document flow.
 * The compact navbar is a separate fixed overlay, so switching states
 * never changes document height and cannot create a scroll feedback loop.
 */
.alv-header-shell {
  position: relative;
  z-index: 900;
  background: transparent;
}

.alv-site-header {
  position: relative;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 0 rgba(22,43,76,.08);
}

/* =========================================================
   TOP BAR
   ========================================================= */

.alv-topbar {
  background: var(--alv-topbar);
  color: #fff;
  font-size: .78rem;
}

.alv-topbar__inner {
  width: calc(100% - 48px);
  max-width: var(--alv-header-width);
  min-height: 34px;
  margin-inline: auto;
  padding: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 30px;
  text-align: center;
}

.alv-topbar__inner p { margin: 0; }

.alv-topbar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.alv-topbar-item::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

/* Truck */
.alv-topbar-shipping::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h12v10H2V5zm12 3h4l4 4v3h-8V8zM7 19a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm11 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h12v10H2V5zm12 3h4l4 4v3h-8V8zM7 19a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm11 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
}

/* Phone */
.alv-topbar-phone::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.4 15.4 0 0 0 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.2 1.3.4 2.7.7 4.1.7.7 0 1.3.6 1.3 1.3v3.5c0 .7-.6 1.3-1.3 1.3C10.4 21.8 2.2 13.6 2.2 3.3 2.2 2.6 2.8 2 3.5 2H7c.7 0 1.3.6 1.3 1.3 0 1.4.2 2.8.7 4.1.1.4 0 .9-.3 1.2l-2.1 2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.4 15.4 0 0 0 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.2 1.3.4 2.7.7 4.1.7.7 0 1.3.6 1.3 1.3v3.5c0 .7-.6 1.3-1.3 1.3C10.4 21.8 2.2 13.6 2.2 3.3 2.2 2.6 2.8 2 3.5 2H7c.7 0 1.3.6 1.3 1.3 0 1.4.2 2.8.7 4.1.1.4 0 .9-.3 1.2l-2.1 2.2z'/%3E%3C/svg%3E");
}

/* Email */
.alv-topbar-email::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5zm9 7L5 7v10h14V7l-7 5zm0-2 7-5H5l7 5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5zm9 7L5 7v10h14V7l-7 5zm0-2 7-5H5l7 5z'/%3E%3C/svg%3E");
}

/* =========================================================
   NORMAL WHITE ROW
   ========================================================= */

.alv-header-main {
  background: #fff;
}

.alv-header-main__inner {
  width: calc(100% - 48px);
  max-width: var(--alv-header-width);
  min-height: 80px;
  margin-inline: auto;
  padding: 10px 0;
  gap: 32px;
  align-items: center !important;
}

.alv-header-main__inner > .wp-block-site-logo {
  flex: 0 0 205px;
  display: flex;
  align-items: center;
}

.alv-header-main__inner .custom-logo-link,
.alv-header-main__inner .wp-block-site-logo a {
  display: inline-flex;
  align-items: center;
}

.alv-header-main__inner .custom-logo-link img,
.alv-header-main__inner .wp-block-site-logo img {
  width: 155px !important;
  max-height: 62px;
  object-fit: contain;
}

.alv-header-main__inner > .wp-block-shortcode {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.alv-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.alv-header-search {
  position: relative;
  flex: 1 1 520px;
  max-width: 570px;
  min-width: 240px;
}

.alv-header-search__input {
  width: 100%;
  min-height: 42px;
  padding: 0 52px 0 18px;
  border: 1.5px solid var(--alv-green);
  border-radius: 999px;
  background: #fff;
  color: var(--alv-text);
  font: inherit;
  font-size: .92rem;
  outline: none;
  box-sizing: border-box;
}

.alv-header-search__input:focus {
  border-color: var(--alv-green-dark);
  box-shadow: 0 0 0 4px rgba(0,138,0,.10);
}

.alv-header-search__button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 42px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--alv-green);
  color: transparent;
  cursor: pointer;
  font-size: 0;
}

.alv-header-search__button::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 13px;
  top: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.alv-header-search__button::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  left: 26px;
  top: 26px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* Search suggestions */
.alv-header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 2200;
  max-height: 430px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--alv-border);
  border-radius: 14px;
  box-shadow: var(--alv-shadow);
}

.alv-header-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--alv-text) !important;
  text-decoration: none;
  border-bottom: 1px solid #eef2f6;
}

.alv-header-search__item:last-child { border-bottom: 0; }

.alv-header-search__item:hover,
.alv-header-search__item:focus-visible {
  background: #f3faf3;
}

.alv-header-search__item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}

.alv-header-search__item strong {
  display: block;
  line-height: 1.25;
}

.alv-header-search__sku {
  display: block;
  margin-top: 3px;
  color: var(--alv-muted);
}

.alv-header-search__message {
  padding: 15px;
  color: var(--alv-muted);
}

/* Profile */
.alv-header-profile,
.alv-header-quote {
  flex: 0 0 auto;
  text-decoration: none !important;
}

.alv-header-profile {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 0 0 25px;
  color: #3a322d !important;
  background: transparent;
  font-weight: 500;
  white-space: nowrap;
}

.alv-header-profile::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a322d;
}

.alv-header-profile::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 15px;
  height: 11px;
  border-radius: 8px 8px 3px 3px;
  background: #3a322d;
}

/* Cart: gray original-style circular icon + badge only. */
.alv-header-quote {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  min-width: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: #f1f5f2;
  color: var(--alv-gray-icon) !important;
}

.alv-header-quote::after { display: none; }

.alv-header-quote__icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: transparent;
  font-size: 0;
  background-color: var(--alv-gray-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.3 10.1a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 1.9-1.4L21 8H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.2' fill='black' stroke='none'/%3E%3Ccircle cx='18' cy='20' r='1.2' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.3 10.1a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 1.9-1.4L21 8H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.2' fill='black' stroke='none'/%3E%3Ccircle cx='18' cy='20' r='1.2' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.alv-header-quote__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 2px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--alv-red);
  color: #fff;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1;
}

.alv-header-quote__badge.is-empty { display: none; }

/* =========================================================
   NORMAL GREEN NAV + WHITE PILL HOVER
   ========================================================= */

.alv-header-nav {
  background: var(--alv-green);
}

.alv-header-nav > * {
  width: calc(100% - 48px);
  max-width: var(--alv-header-width);
  margin-inline: auto;
}

.alv-primary-nav {
  min-height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
}

.alv-primary-nav .wp-block-navigation__container {
  gap: 8px;
  align-items: center !important;
  justify-content: center !important;
}

.alv-primary-nav .wp-block-navigation-item {
  display: flex;
  align-items: center;
}

.alv-primary-nav .wp-block-navigation-item__content {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff !important;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.alv-primary-nav .wp-block-navigation-item__content:hover,
.alv-primary-nav .wp-block-navigation-item__content:focus-visible {
  color: var(--alv-green) !important;
  background: #fff;
}

/* =========================================================
   FIXED COMPACT BAR
   ========================================================= */

.alv-compact-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 3000;
  display: none;
  width: calc(100% - 32px);
  max-width: var(--alv-header-width);
  min-height: 58px;
  box-sizing: border-box;
  transform: translateX(-50%);
  padding: 0 18px;
  border-radius: 999px;
  background: var(--alv-green);
  box-shadow: 0 8px 24px rgba(0,80,0,.18);
}

body.admin-bar .alv-compact-bar {
  top: 44px;
}

.alv-compact-bar.is-visible {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 10px;
}

/* Official white A */
.alv-compact-logo {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.alv-compact-logo img {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.alv-compact-logo-fallback {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
}

/* Centered navigation */
.alv-compact-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.alv-compact-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff !important;
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.alv-compact-nav a:hover,
.alv-compact-nav a:focus-visible {
  color: var(--alv-green) !important;
  background: #fff;
}

/* Right tools fixed width keeps nav visually centered. */
.alv-compact-tools-slot {
  width: 140px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.alv-compact-bar .alv-header-tools {
  width: auto;
  gap: 5px;
}

.alv-compact-bar .alv-header-search {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
}

.alv-compact-bar:not(.is-search-open) .alv-header-search__input {
  position: absolute;
  inset: 0;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}

.alv-compact-bar .alv-header-search__button {
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
}

.alv-compact-bar .alv-header-search__button:hover,
.alv-compact-bar .alv-header-search__button:focus-visible {
  background: rgba(255,255,255,.14);
}

.alv-compact-bar .alv-header-search__button::before { border-color: #fff; }
.alv-compact-bar .alv-header-search__button::after { background: #fff; }

/* Compact profile icon */
.alv-compact-bar .alv-header-profile {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
}

.alv-compact-bar .alv-header-profile:hover,
.alv-compact-bar .alv-header-profile:focus-visible {
  background: rgba(255,255,255,.14);
}

.alv-compact-bar .alv-header-profile::before {
  left: 16px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: #fff;
}

.alv-compact-bar .alv-header-profile::after {
  left: 12px;
  top: 20px;
  width: 16px;
  height: 11px;
  background: #fff;
}

/* Compact cart white */
.alv-compact-bar .alv-header-quote {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: transparent;
}

.alv-compact-bar .alv-header-quote:hover,
.alv-compact-bar .alv-header-quote:focus-visible {
  background: rgba(255,255,255,.14);
}

.alv-compact-bar .alv-header-quote__icon {
  background-color: #fff;
}

.alv-compact-bar .alv-header-quote__badge {
  top: -3px;
  right: -3px;
}

/* =========================================================
   COMPACT SEARCH OPEN
   ========================================================= */

.alv-compact-bar.is-search-open {
  grid-template-columns: 52px auto minmax(300px, 1fr);
  gap: 10px;
}

.alv-compact-bar.is-search-open .alv-compact-nav {
  gap: 4px;
}

/* Accessible text remains in the link; visual text becomes SVG icon. */
.alv-compact-bar.is-search-open .alv-compact-nav a {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 0;
  background: rgba(255,255,255,.10);
}

.alv-compact-bar.is-search-open .alv-compact-nav a::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.alv-compact-bar.is-search-open .alv-compact-nav a:hover,
.alv-compact-bar.is-search-open .alv-compact-nav a:focus-visible {
  background: #fff;
}

.alv-compact-bar.is-search-open .alv-compact-nav a:hover::before,
.alv-compact-bar.is-search-open .alv-compact-nav a:focus-visible::before {
  background: var(--alv-green);
}

/* Home */
.alv-compact-bar.is-search-open .alv-compact-nav a:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5V21h-6v-6H9v6H3v-9.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5V21h-6v-6H9v6H3v-9.5z'/%3E%3C/svg%3E");
}

/* Catalog */
.alv-compact-bar.is-search-open .alv-compact-nav a:nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z'/%3E%3C/svg%3E");
}

/* Products */
.alv-compact-bar.is-search-open .alv-compact-nav a:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 9 5-9 5-9-5 9-5zm-9 8 8 4.5V22l-8-4.5V10zm18 0v7.5L13 22v-7.5L21 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 9 5-9 5-9-5 9-5zm-9 8 8 4.5V22l-8-4.5V10zm18 0v7.5L13 22v-7.5L21 10z'/%3E%3C/svg%3E");
}

/* News */
.alv-compact-bar.is-search-open .alv-compact-nav a:nth-child(4)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2zm7 12 1 2.8L23 18l-3 1.2L19 22l-1-2.8L15 18l3-1.2L19 14zM5 14l1 2.8L9 18l-3 1.2L5 22l-1-2.8L1 18l3-1.2L5 14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2zm7 12 1 2.8L23 18l-3 1.2L19 22l-1-2.8L15 18l3-1.2L19 14zM5 14l1 2.8L9 18l-3 1.2L5 22l-1-2.8L1 18l3-1.2L5 14z'/%3E%3C/svg%3E");
}

/* Quote */
.alv-compact-bar.is-search-open .alv-compact-nav a:nth-child(5)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h14v18H5V3zm3 4h8V5H8v2zm0 4h8V9H8v2zm0 4h6v-2H8v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h14v18H5V3zm3 4h8V5H8v2zm0 4h8V9H8v2zm0 4h6v-2H8v2z'/%3E%3C/svg%3E");
}

/* Learn */
.alv-compact-bar.is-search-open .alv-compact-nav a:nth-child(6)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 4.5C5.5 3.5 8.5 4 11 6v14c-2.5-2-5.5-2.5-9-1.5v-14zm20 0c-3.5-1-6.5-.5-9 1.5v14c2.5-2 5.5-2.5 9-1.5v-14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 4.5C5.5 3.5 8.5 4 11 6v14c-2.5-2-5.5-2.5-9-1.5v-14zm20 0c-3.5-1-6.5-.5-9 1.5v14c2.5-2 5.5-2.5 9-1.5v-14z'/%3E%3C/svg%3E");
}

/* Open search gets the full remaining right side without overlap. */
.alv-compact-bar.is-search-open .alv-compact-tools-slot {
  width: 100%;
  min-width: 0;
}

.alv-compact-bar.is-search-open .alv-header-tools {
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

.alv-compact-bar.is-search-open .alv-header-search {
  flex: 1 1 auto;
  width: auto;
  min-width: 180px;
  max-width: none;
  height: 40px;
}

.alv-compact-bar.is-search-open .alv-header-search__input {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 46px 0 16px;
  border: 0;
  opacity: 1;
  pointer-events: auto;
  background: #fff;
  box-shadow: none;
}

.alv-compact-bar.is-search-open .alv-header-search__button {
  right: 2px;
  width: 36px;
  height: 36px;
  background: var(--alv-green-dark);
}

/* =========================================================
   CONTENT / RESPONSIVE
   ========================================================= */

.alv-site-main {
  min-height: 45vh;
  padding: 32px 24px;
}

@media (max-width: 900px) {
  .alv-topbar__inner,
  .alv-header-main__inner,
  .alv-header-nav > * {
    width: calc(100% - 32px);
  }

  .alv-topbar__inner {
    gap: 14px;
    flex-wrap: wrap;
  }

  .alv-header-main__inner {
    flex-wrap: wrap !important;
    gap: 12px;
  }

  .alv-header-main__inner > .wp-block-site-logo {
    flex: 1 1 auto;
  }

  .alv-header-main__inner > .wp-block-shortcode {
    flex: 1 0 100%;
  }

  .alv-header-search {
    flex-basis: auto;
    max-width: none;
  }

  .alv-header-profile {
    margin-left: auto;
  }

  .alv-compact-bar {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .alv-topbar__inner {
    min-height: 30px;
    padding: 4px 0;
  }

  .alv-topbar-email { display: none; }

  .alv-header-main__inner {
    min-height: auto;
    padding: 10px 0;
  }

  .alv-header-main__inner > .wp-block-site-logo {
    flex-basis: 130px;
  }

  .alv-header-main__inner .wp-block-site-logo img {
    width: 125px !important;
  }

  .alv-header-tools {
    align-items: stretch;
    gap: 7px;
  }

  .alv-header-search { min-width: 0; }

  .alv-header-profile {
    min-width: 40px;
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .alv-header-profile::before { left: 16px; }
  .alv-header-profile::after { left: 13px; }

  .alv-site-main {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .alv-primary-nav .wp-block-navigation-item__content,
  .alv-compact-nav a {
    transition: none !important;
  }
}


/* =========================================================
   0.4.4 — Header polish
   ========================================================= */

/* Normal-state profile: same visual language as the cart. */
.alv-header-profile {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  overflow: hidden;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f2;
  color: transparent !important;
  font-size: 0;
}

.alv-header-profile::before {
  left: 18px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--alv-gray-icon);
}

.alv-header-profile::after {
  left: 14px;
  top: 23px;
  width: 18px;
  height: 12px;
  border-radius: 9px 9px 4px 4px;
  background: var(--alv-gray-icon);
}

.alv-header-profile:hover,
.alv-header-profile:focus-visible,
.alv-header-quote:hover,
.alv-header-quote:focus-visible {
  background: #e8efea;
  outline: none;
}

/*
 * Compact navbar is always mounted on desktop so its entrance can animate.
 * Hidden state uses opacity/transform instead of display:none.
 */
@media (min-width: 901px) {
  .alv-compact-bar {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 140px;
    align-items: center;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -12px) scale(.985);

    transition:
      opacity .22s ease,
      transform .28s cubic-bezier(.2,.75,.25,1),
      visibility 0s linear .28s,
      box-shadow .28s ease;
  }

  .alv-compact-bar.is-visible {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
  }

  /* Cleaner compact profile icon, matching the cart footprint. */
  .alv-compact-bar .alv-header-profile {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: transparent;
  }

  .alv-compact-bar .alv-header-profile::before {
    left: 16px;
    top: 9px;
    width: 8px;
    height: 8px;
    background: #fff;
  }

  .alv-compact-bar .alv-header-profile::after {
    left: 12px;
    top: 20px;
    width: 16px;
    height: 11px;
    background: #fff;
  }

  /*
   * Closed compact state: search is a true icon only.
   * The input is kept in the DOM (so bindings remain intact) but cannot occupy space.
   */
  .alv-compact-bar:not(.is-search-open) .alv-header-search {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
  }

  .alv-compact-bar:not(.is-search-open) .alv-header-search__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: none !important;
  }

  /*
   * Search-open state:
   * A | compact nav icons | [search] [profile] [cart]
   * Search gets a controlled width instead of taking the whole bar.
   */
  .alv-compact-bar.is-search-open {
    grid-template-columns: 52px minmax(220px, 1fr) 430px;
    gap: 12px;
  }

  .alv-compact-bar.is-search-open .alv-compact-nav {
    justify-content: center;
    gap: 5px;
  }

  .alv-compact-bar.is-search-open .alv-compact-tools-slot {
    width: 430px;
    min-width: 430px;
  }

  .alv-compact-bar.is-search-open .alv-header-tools {
    width: 100%;
    justify-content: flex-end;
    gap: 7px;
  }

  .alv-compact-bar.is-search-open .alv-header-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 260px;
    max-width: 330px;
    height: 40px;
  }

  .alv-compact-bar.is-search-open .alv-header-search__input {
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 46px 0 16px !important;
    clip: auto;
    clip-path: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    border: 0 !important;
    border-radius: 999px;
    background: #fff;
    box-shadow: none !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__button {
    top: 50%;
    right: 3px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--alv-green-dark);
  }

  .alv-compact-bar.is-search-open .alv-header-search__button::before {
    left: 9px;
    top: 8px;
  }

  .alv-compact-bar.is-search-open .alv-header-search__button::after {
    left: 22px;
    top: 23px;
  }

  /* Keep suggestions aligned to the actual opened search field. */
  .alv-compact-bar.is-search-open .alv-header-search__results {
    top: calc(100% + 7px);
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .alv-compact-bar.is-search-open {
    grid-template-columns: 48px auto minmax(350px, 390px);
  }

  .alv-compact-bar.is-search-open .alv-compact-tools-slot {
    width: 390px;
    min-width: 390px;
  }

  .alv-compact-bar.is-search-open .alv-header-search {
    min-width: 220px;
    max-width: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alv-compact-bar {
    transition: none !important;
  }
}


/* =========================================================
   0.4.5 — Navbar behavior + centered search
   ========================================================= */

/* Center the normal desktop search independently of profile/cart presence. */
@media (min-width: 901px) {
  .alv-header-main {
    position: relative;
  }

  .alv-header-main__inner {
    position: relative;
  }

  .alv-header-main__inner > .wp-block-shortcode {
    position: static;
  }

  .alv-header-tools {
    position: static;
    min-height: 46px;
    justify-content: flex-end;
  }

  .alv-header-main .alv-header-search {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(570px, 42vw);
    min-width: 340px;
    max-width: 570px;
    transform: translate(-50%, -50%);
    z-index: 5;
  }

  /*
   * Leave the right side to profile/cart while the search remains truly centered.
   * When no profile is present, cart simply occupies the last position.
   */
  .alv-header-main .alv-header-profile,
  .alv-header-main .alv-header-quote {
    position: relative;
    z-index: 6;
  }

  /* The compact navbar is a fixed overlay; normal header remains untouched. */
  .alv-compact-bar {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -14px) scale(.985);
    transition:
      opacity .22s ease,
      transform .30s cubic-bezier(.2,.75,.25,1),
      visibility 0s linear .30s,
      box-shadow .30s ease;
  }

  .alv-compact-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
  }

  /*
   * Closed compact search = only the magnifier.
   * Width transitions here are what allow the field to grow beside the icon.
   */
  .alv-compact-bar .alv-header-search {
    position: relative;
    left: auto;
    top: auto;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    transform: none;
    flex: 0 0 40px;
    transition:
      width .30s cubic-bezier(.2,.75,.25,1),
      min-width .30s cubic-bezier(.2,.75,.25,1),
      max-width .30s cubic-bezier(.2,.75,.25,1);
  }

  .alv-compact-bar:not(.is-search-open) .alv-header-search__input {
    position: absolute !important;
    right: 40px;
    left: auto;
    top: 0;
    width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: auto;
    clip-path: none;
    background: #fff;
    box-shadow: none !important;
    transition:
      width .30s cubic-bezier(.2,.75,.25,1),
      opacity .18s ease,
      padding .30s cubic-bezier(.2,.75,.25,1);
  }

  .alv-compact-bar .alv-header-search__button {
    right: 0;
    z-index: 3;
  }

  /*
   * Search open:
   * logo | nav (now icons) | tools
   * The search grows LEFT from the magnifier, so it sits beside it rather than
   * underneath or on top of it. The growing tools area naturally "pushes" nav.
   */
  .alv-compact-bar.is-search-open {
    grid-template-columns: 56px minmax(220px, 1fr) auto;
  }

  .alv-compact-bar.is-search-open .alv-compact-nav {
    justify-content: center;
    gap: 5px;
    transition: gap .24s ease;
  }

  .alv-compact-bar.is-search-open .alv-compact-tools-slot {
    width: auto;
    min-width: 0;
  }

  .alv-compact-bar.is-search-open .alv-header-tools {
    width: auto;
    min-width: 0;
    gap: 7px;
  }

  .alv-compact-bar.is-search-open .alv-header-search {
    width: 330px;
    min-width: 330px;
    max-width: 330px;
  }

  .alv-compact-bar.is-search-open .alv-header-search__input {
    position: absolute !important;
    top: 0;
    right: 0;
    left: auto;
    width: 330px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 48px 0 16px !important;
    border: 0 !important;
    border-radius: 999px;
    opacity: 1 !important;
    pointer-events: auto !important;
    clip: auto;
    clip-path: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 70, 0, .12) !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__button {
    top: 50%;
    right: 3px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--alv-green-dark);
  }

  .alv-compact-bar.is-search-open .alv-header-search__results {
    top: calc(100% + 7px);
    left: auto;
    right: 0;
    width: 330px;
  }

  /* Smoothly turn page labels into compact icon buttons while search grows. */
  .alv-compact-nav a {
    transition:
      width .26s cubic-bezier(.2,.75,.25,1),
      min-width .26s cubic-bezier(.2,.75,.25,1),
      padding .26s cubic-bezier(.2,.75,.25,1),
      color .18s ease,
      background-color .18s ease,
      opacity .18s ease;
  }

  .alv-compact-bar.is-search-open .alv-compact-nav a {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    overflow: hidden;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .alv-header-main .alv-header-search {
    width: min(520px, 40vw);
    min-width: 300px;
  }

  .alv-compact-bar.is-search-open .alv-header-search,
  .alv-compact-bar.is-search-open .alv-header-search__input,
  .alv-compact-bar.is-search-open .alv-header-search__results {
    width: 285px !important;
    min-width: 285px;
    max-width: 285px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alv-compact-bar,
  .alv-compact-bar .alv-header-search,
  .alv-compact-bar .alv-header-search__input,
  .alv-compact-nav a {
    transition: none !important;
  }
}


/* =========================================================
   0.4.6 — Cart badge optical centering
   ========================================================= */

.alv-header-quote__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  box-sizing: border-box;
  line-height: 20px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  vertical-align: middle;
}

.alv-header-quote__badge.is-empty {
  display: none !important;
}

/* Compact navbar: keep the badge centered and visually separated from cart icon. */
.alv-compact-bar .alv-header-quote__badge {
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  line-height: 20px !important;
}


/* =========================================================
   0.4.7 — Cart badge true centering
   ========================================================= */

/*
 * The previous line-height matched the full border-box height and could
 * visually push the numeral downward. Use CSS Grid + line-height: 1 so the
 * glyph itself is centered inside the circle.
 */
.alv-header-quote__badge {
  display: grid !important;
  place-items: center !important;
  min-width: 20px !important;
  width: auto !important;
  height: 20px !important;
  padding: 0 5px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
}

.alv-header-quote__badge.is-empty {
  display: none !important;
}

/* Single digit stays circular; multiple digits can grow into a pill. */
.alv-header-quote__badge:not(.is-empty) {
  border-radius: 999px !important;
}

/* Optical correction for the glyph baseline. */
.alv-header-quote__badge {
  padding-top: 1px !important;
}

.alv-compact-bar .alv-header-quote__badge {
  top: -5px !important;
  right: -5px !important;
}


/* =========================================================
   0.4.8 — Robust cart badge centering
   ========================================================= */

.alv-header-quote__badge {
  position: absolute !important;
  display: block !important;
  min-width: 20px !important;
  width: auto !important;
  height: 20px !important;
  padding: 0 5px !important;
  box-sizing: border-box !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: var(--alv-red) !important;

  /* Hide the browser-baseline-rendered text. */
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  overflow: visible !important;
}

.alv-header-quote__badge::after {
  content: attr(data-alv-count);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;

  /* Tiny optical lift, independent of the element's baseline. */
  transform: translateY(-0.5px);
}

.alv-header-quote__badge.is-empty,
.alv-header-quote__badge[data-alv-count="0"],
.alv-header-quote__badge[data-alv-count=""] {
  display: none !important;
}

.alv-compact-bar .alv-header-quote__badge {
  top: -5px !important;
  right: -5px !important;
}


/* =========================================================
   0.5.11 — Footer 2.0 clean final layer
   ========================================================= */

/* ---------- Structure ---------- */

.wp-site-blocks > .wp-block-template-part:has(.alv-footer-component),
.alv-footer-shell,
.alv-footer-component {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.alv-footer-component,
.alv-footer-component *,
.alv-footer-component *::before,
.alv-footer-component *::after {
  box-sizing: border-box;
}

.wp-site-blocks > .wp-block-template-part:has(.alv-footer-component) {
  clear: both !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding: 0 !important;
}

.alv-footer-shell {
  clear: both !important;
  display: flow-root !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.alv-footer-shell > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

body:has(.alv-footer-component),
body:has(.alv-footer-component) .wp-site-blocks {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  overflow-x: clip;
}

/* ---------- Request band ---------- */

.alv-footer-request {
  clear: both !important;
  position: relative !important;
  width: 100%;
  height: 270px;
  min-height: 270px;
  margin: 0 !important;
  padding: 30px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff;
  color: var(--alv-text);
  overflow: hidden;
}

.alv-footer-request__inner {
  width: min(1210px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  grid-template-rows: auto !important;
  align-items: center !important;
  align-content: center !important;
  column-gap: clamp(40px, 7vw, 100px) !important;
  row-gap: 0 !important;
}

.alv-footer-request__inner > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.alv-footer-request__form-col {
  min-width: 0;
  align-self: center !important;
}

.alv-footer-request h2 {
  position: static !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
  color: #30343a !important;
  font-size: clamp(1.3rem, 2vw, 1.62rem);
  font-weight: 800;
  line-height: 1.15 !important;
  transform: none !important;
}

.alv-info-request-form {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 !important;
  padding: 0 !important;
}

.alv-info-request-form__row {
  display: flex !important;
  align-items: stretch !important;
  width: 100%;
  height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #dfe5e8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22,43,76,.04);
}

.alv-info-request-form__row:focus-within {
  border-color: var(--alv-green);
  box-shadow: 0 0 0 4px rgba(0,138,0,.08);
}

.alv-info-request-form input[type="email"] {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--alv-text);
  font: inherit;
  font-size: .98rem;
}

.alv-info-request-form button[type="submit"] {
  position: relative !important;
  flex: 0 0 112px !important;
  width: 112px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  background: var(--alv-green) !important;
  color: #fff !important;
  cursor: pointer;
  overflow: hidden;
  line-height: 1 !important;
  transform: none !important;
}

.alv-info-request-form__button-label {
  position: static !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  color: #fff !important;
  font: inherit !important;
  font-size: .96rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(-.5px) !important;
  pointer-events: none;
}

.alv-info-request-form button[type="submit"]::after {
  content: none !important;
}

.alv-info-request-form button[type="submit"]:hover,
.alv-info-request-form button[type="submit"]:focus-visible {
  background: var(--alv-green-dark) !important;
}

.alv-info-request-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.alv-info-request-form__status {
  margin: 8px 4px 0 !important;
  padding: 0 !important;
  min-height: 0;
  font-size: .88rem;
  line-height: 1.35;
}

.alv-info-request-form__status:empty {
  display: none !important;
}

.alv-info-request-form__status.is-success { color: #087a19; }
.alv-info-request-form__status.is-error { color: #b42318; }

.alv-footer-request__message {
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--alv-green) !important;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

/* ---------- Main footer ---------- */

.alv-footer-main {
  width: 100%;
  margin: 0 !important;
  padding: 54px 28px 0;
  background: linear-gradient(135deg, #005d00 0%, #006f00 45%, #008200 100%);
  color: #fff;
  overflow: hidden;
}

.alv-footer-main__grid {
  width: min(1210px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1.1fr .95fr 1fr;
  align-items: start;
  gap: clamp(34px, 5vw, 72px);
}

.alv-footer-main__grid > *,
.alv-footer-column,
.alv-footer-column ul,
.alv-footer-column li {
  min-width: 0;
}

.alv-footer-brand__logo {
  min-height: 96px;
  display: flex;
  align-items: center;
}

.alv-footer-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.alv-footer-logo-image {
  display: block;
  width: min(315px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 118px;
  object-fit: contain;
  object-position: left center;
}

.alv-footer-brand__tagline {
  max-width: 330px;
  margin: 18px 0 12px;
  color: rgba(255,255,255,.94);
  font-size: .98rem;
  line-height: 1.55;
}

.alv-footer-brand__address {
  display: flex;
  max-width: 370px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.94) !important;
  font-size: .9rem;
  line-height: 1.5;
  text-decoration: none !important;
}

.alv-footer-brand__address:hover,
.alv-footer-brand__address:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.alv-footer-brand__address-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.alv-footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.alv-footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  transform: translateY(0);
  transition: transform .16s ease, background-color .16s ease;
}

.alv-footer-socials a:hover,
.alv-footer-socials a:focus-visible {
  background: rgba(255,255,255,.16);
  transform: translateY(-3px);
}

.alv-footer-socials svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.alv-footer-column h2 {
  margin: 10px 0 20px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.alv-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alv-footer-column li {
  margin: 0 0 8px;
  padding: 0;
}

.alv-footer-column a,
.alv-footer-link {
  display: inline-block;
  margin: 0;
  padding: 5px 0;
  color: rgba(255,255,255,.94) !important;
  text-decoration: none !important;
  line-height: 1.35;
  transform: translateX(0);
  transition: transform .18s cubic-bezier(.2,.75,.25,1), color .18s ease;
}

.alv-footer-column a:hover,
.alv-footer-column a:focus-visible {
  color: #fff !important;
  transform: translateX(7px);
}

.alv-footer-link.is-disabled {
  opacity: .52;
}

.alv-footer-bottom {
  width: min(1210px, 100%);
  min-height: 72px;
  margin: 48px auto 0 !important;
  padding: 20px 78px 20px 0;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.84);
  font-size: .87rem;
}

.alv-footer-bottom p {
  margin: 0;
}

.alv-footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.alv-footer-legal a {
  color: rgba(255,255,255,.84) !important;
  text-decoration: none !important;
}

.alv-footer-legal a:hover,
.alv-footer-legal a:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* ---------- Floating actions ---------- */

.alv-footer-floating-actions {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2500;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
  pointer-events: none;
}

.alv-back-to-top,
.alv-whatsapp-float {
  position: relative !important;
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.17);
}

.alv-back-to-top {
  background: var(--alv-green) !important;
  color: #fff !important;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.alv-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.alv-whatsapp-float {
  background: #25d366 !important;
}

.alv-back-to-top > svg,
.alv-whatsapp-float > svg {
  display: none !important;
}

.alv-back-to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
}

@keyframes alv-arrow-hover-bounce {
  0%,100% { transform: translate(-50%, -30%) rotate(45deg); }
  42% { transform: translate(-50%, -72%) rotate(45deg); }
  70% { transform: translate(-50%, -46%) rotate(45deg); }
}

.alv-back-to-top:hover::before,
.alv-back-to-top:focus-visible::before {
  animation: alv-arrow-hover-bounce .68s ease-in-out infinite;
}

.alv-whatsapp-float::before {
  content: "";
  position: absolute;
  left: 50.5%;
  top: 49.5%;
  width: 27px;
  height: 27px;
  background: #fff;
  transform: translate(-50%, -50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.7 11.7 0 0 0 12.1 0C5.6 0 .3 5.3.3 11.8c0 2.1.6 4.1 1.6 5.9L.2 24l6.5-1.7a11.8 11.8 0 0 0 5.4 1.4h.1c6.5 0 11.7-5.3 11.7-11.8 0-3.1-1.2-6.1-3.4-8.4zM12.2 21.7h-.1a9.8 9.8 0 0 1-5-1.4l-.4-.2-3.9 1 1-3.8-.2-.4a9.7 9.7 0 0 1-1.5-5.1c0-5.4 4.4-9.8 9.9-9.8a9.8 9.8 0 0 1 9.8 9.9c0 5.4-4.4 9.8-9.6 9.8zm5.4-7.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2s-.8 1-.9 1.2c-.2.2-.3.2-.7.1-.3-.2-1.3-.5-2.5-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.7l.5-.5c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6-.1-.2-.7-1.7-1-2.3-.3-.7-.5-.6-.7-.6h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.6c.2.2 2.4 3.7 5.9 5.2.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4-.1-.2-.3-.3-.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.7 11.7 0 0 0 12.1 0C5.6 0 .3 5.3.3 11.8c0 2.1.6 4.1 1.6 5.9L.2 24l6.5-1.7a11.8 11.8 0 0 0 5.4 1.4h.1c6.5 0 11.7-5.3 11.7-11.8 0-3.1-1.2-6.1-3.4-8.4zM12.2 21.7h-.1a9.8 9.8 0 0 1-5-1.4l-.4-.2-3.9 1 1-3.8-.2-.4a9.7 9.7 0 0 1-1.5-5.1c0-5.4 4.4-9.8 9.9-9.8a9.8 9.8 0 0 1 9.8 9.9c0 5.4-4.4 9.8-9.6 9.8zm5.4-7.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2s-.8 1-.9 1.2c-.2.2-.3.2-.7.1-.3-.2-1.3-.5-2.5-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.7l.5-.5c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6-.1-.2-.7-1.7-1-2.3-.3-.7-.5-.6-.7-.6h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.6c.2.2 2.4 3.7 5.9 5.2.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4-.1-.2-.3-.3-.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .alv-footer-main__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 960px) {
  .alv-footer-shell {
    margin-top: 16px !important;
  }

  .alv-footer-request {
    height: auto !important;
    min-height: 0 !important;
    padding: 30px 22px !important;
    display: block !important;
  }

  .alv-footer-request__inner {
    grid-template-columns: 1fr;
    row-gap: 24px !important;
  }

  .alv-footer-request__message {
    text-align: left;
  }

  .alv-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .alv-footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .alv-footer-main {
    padding: 42px 20px 0;
  }

  .alv-footer-main__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .alv-footer-floating-actions {
    right: 14px !important;
    bottom: 14px !important;
  }

  .alv-back-to-top,
  .alv-whatsapp-float {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alv-footer-column a,
  .alv-footer-socials a {
    transition: none !important;
  }

  .alv-back-to-top:hover::before,
  .alv-back-to-top:focus-visible::before {
    animation: none !important;
  }
}


/* 1.1.0 — Perfil en header */
.alv-header-profile{padding-right:12px;padding-left:34px;border-radius:999px;transition:background-color .16s ease,color .16s ease}
.alv-header-profile:hover,.alv-header-profile:focus-visible,.alv-header-profile.is-current{background:#edf7ee;color:var(--alv-green)!important}
.alv-header-profile:hover::before,.alv-header-profile:focus-visible::before,.alv-header-profile.is-current::before,.alv-header-profile:hover::after,.alv-header-profile:focus-visible::after,.alv-header-profile.is-current::after{background:var(--alv-green)}
.alv-header-profile.is-guest{color:#59636e!important}
.alv-header-profile__label{display:inline-block}
.alv-compact-bar .alv-header-profile__label{display:none}
@media (max-width:600px){.alv-header-profile__label{display:none}}


/* =========================================================
   1.2.4 — Acceso a Mi Perfil circular y consistente
   ========================================================= */

.alv-header-main .alv-header-profile {
  box-sizing: border-box !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  overflow: hidden !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  color: transparent !important;
}

.alv-header-main .alv-header-profile__label,
.alv-compact-bar .alv-header-profile__label {
  display: none !important;
}

.alv-header-main .alv-header-profile::before {
  left: 18px !important;
  top: 10px !important;
}

.alv-header-main .alv-header-profile::after {
  left: 14px !important;
  top: 23px !important;
}

@media (max-width: 600px) {
  .alv-header-main .alv-header-profile {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .alv-header-main .alv-header-profile::before {
    left: 15px !important;
    top: 8px !important;
  }

  .alv-header-main .alv-header-profile::after {
    left: 11px !important;
    top: 19px !important;
  }
}


/* 1.3.0 — brand label in instant search */
.alv-header-search__brand {
  display: block;
  margin-bottom: 2px;
  color: #008200;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* =========================================================
   2.0.0 — Búsqueda global 2.0 en Header
   ========================================================= */

.alv-header-search__results {
  max-height: min(540px, 72vh);
}

.alv-header-search__options {
  overflow-y: auto;
  max-height: min(455px, 61vh);
}

.alv-header-search__item {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 66px;
}

.alv-header-search__item.is-active,
.alv-header-search__item[aria-selected="true"] {
  background: #f0f8f1;
  outline: none;
}

.alv-header-search__visual {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #edf1ef;
  border-radius: 9px;
  background: #fff;
}

.alv-header-search__visual img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.alv-header-search__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #eff7f0;
  color: #008200;
  font-size: 1rem;
  font-weight: 850;
}

.alv-header-search__fallback--brand {
  background: #eef3f8;
  color: #162b4c;
}

.alv-header-search__fallback--concept {
  background: #f1f8ef;
}

.alv-header-search__item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.alv-header-search__type {
  margin-bottom: 2px;
  color: #008200;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.alv-header-search__item--brand .alv-header-search__type {
  color: #365b7e;
}

.alv-header-search__item strong {
  overflow: hidden;
  color: #162b4c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alv-header-search__subtitle {
  overflow: hidden;
  margin-top: 2px;
  color: #7d8792;
  font-size: .65rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alv-header-search__all {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-top: 1px solid #e7ece9;
  background: #fbfdfb;
  color: #008200 !important;
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none !important;
}

.alv-header-search__all > span:last-child {
  transition: transform .17s ease;
}

.alv-header-search__all:hover,
.alv-header-search__all:focus-visible {
  background: #eef8ef;
  outline: none;
}

.alv-header-search__all:hover > span:last-child,
.alv-header-search__all:focus-visible > span:last-child {
  transform: translateX(3px);
}

.alv-header-search__message + .alv-header-search__all {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .alv-header-search__all > span:last-child {
    transition: none;
  }
}


/* =========================================================
   2.0.1 — Normal header search alignment fix
   ========================================================= */

.alv-header-main .alv-header-search {
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
}

.alv-header-main .alv-header-search__input {
  display: block;
  height: 42px;
  min-height: 42px;
  margin: 0 !important;
}

.alv-header-main .alv-header-search__button {
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}


/* =========================================================
   2.0.2 — Search field/button as one physical control
   ========================================================= */

/*
 * El form puede recibir reglas globales de WordPress/WooCommerce.
 * El contenedor interno evita que input y botón terminen en filas distintas.
 */
.alv-header-search {
  position: relative !important;
}

.alv-header-search__field {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.alv-header-search__field > .alv-header-search__input {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 54px 0 18px !important;
  border: 1.5px solid var(--alv-green) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  line-height: 40px !important;
}

.alv-header-search__field > .alv-header-search__button {
  position: absolute !important;
  z-index: 3 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: 44px !important;
  height: 42px !important;
  min-width: 44px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  background: var(--alv-green) !important;
  transform: none !important;
  line-height: 42px !important;
}

/* El dropdown sigue perteneciendo al form completo, no al control interno. */
.alv-header-search__results {
  top: calc(42px + 8px) !important;
}

/* Sticky/compact header conserva el mismo acople. */
.alv-header-compact .alv-header-search__field {
  height: 38px !important;
  min-height: 38px !important;
}

.alv-header-compact .alv-header-search__field > .alv-header-search__input {
  height: 38px !important;
  min-height: 38px !important;
  line-height: 36px !important;
}

.alv-header-compact .alv-header-search__field > .alv-header-search__button {
  width: 40px !important;
  height: 38px !important;
  min-width: 40px !important;
  min-height: 38px !important;
  line-height: 38px !important;
}

.alv-header-compact .alv-header-search__results {
  top: calc(38px + 8px) !important;
}


/* =========================================================
   2.0.3 — Re-center normal desktop header search
   ========================================================= */

/*
 * 2.0.2 agrupó input + botón correctamente, pero su position:relative!important
 * tenía mayor prioridad que el centrado absoluto histórico del buscador.
 * En el header normal recuperamos el centro geométrico del contenedor.
 */
@media (min-width: 901px) {
  .alv-header-main .alv-header-search {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(570px, 42vw) !important;
    min-width: 340px !important;
    max-width: 570px !important;
    height: 42px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
  }
}


/* =========================================================
   2.0.4 — Header search geometry cleanup
   ========================================================= */

/*
 * NORMAL HEADER
 * The search must be centered against the full header container, not against
 * the remaining space between logo and action icons.
 */
@media (min-width: 901px) {
  .alv-header-main__inner {
    position: relative !important;
  }

  .alv-header-main .alv-header-tools {
    position: static !important;
  }

  .alv-header-main .alv-header-search {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(570px, 42vw) !important;
    min-width: 340px !important;
    max-width: 570px !important;
    height: 42px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
  }
}

/*
 * COMPACT / STICKY HEADER
 * 2.0.2 introduced an inner field wrapper so input + button cannot split.
 * These rules restore the original compact-header geometry while preserving
 * that wrapper.
 */
@media (min-width: 901px) {
  .alv-compact-bar .alv-header-search {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    transform: none !important;
    flex: 0 0 40px !important;
  }

  .alv-compact-bar .alv-header-search__field {
    position: relative !important;
    display: block !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Closed sticky search: only the circular magnifier is visible. */
  .alv-compact-bar:not(.is-search-open) .alv-header-search__field > .alv-header-search__input {
    position: absolute !important;
    top: 0 !important;
    right: 40px !important;
    bottom: auto !important;
    left: auto !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .alv-compact-bar:not(.is-search-open) .alv-header-search__field > .alv-header-search__button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    transform: none !important;
    line-height: 40px !important;
  }

  /* Open sticky search: input grows left, magnifier stays inside it. */
  .alv-compact-bar.is-search-open .alv-header-search {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    height: 40px !important;
    flex-basis: 330px !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__field {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__field > .alv-header-search__input {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    width: 330px !important;
    min-width: 330px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 47px 0 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(0,70,0,.12) !important;
    line-height: 40px !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__field > .alv-header-search__button {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    bottom: auto !important;
    left: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--alv-green-dark) !important;
    transform: none !important;
    line-height: 34px !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__field > .alv-header-search__button::before {
    left: 8px !important;
    top: 7px !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__field > .alv-header-search__button::after {
    left: 21px !important;
    top: 22px !important;
  }

  .alv-compact-bar .alv-header-search__results {
    top: calc(100% + 7px) !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__results {
    left: auto !important;
    right: 0 !important;
    width: 330px !important;
  }
}


/* =========================================================
   2.0.5 — Header vertical alignment final pass
   ========================================================= */

/*
 * NORMAL HEADER
 * The shortcode block can become a positioned containing block depending on
 * WordPress/global styles. Forcing it static makes the centered search resolve
 * against .alv-header-main__inner, the same row that owns the logo.
 */
@media (min-width: 901px) {
  .alv-header-main__inner {
    position: relative !important;
    min-height: 80px !important;
    height: 80px !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
  }

  .alv-header-main__inner > .wp-block-shortcode {
    position: static !important;
    margin: 0 !important;
  }

  .alv-header-main .alv-header-tools {
    position: static !important;
    align-items: center !important;
    min-height: 42px !important;
  }

  .alv-header-main .alv-header-search {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(570px, 42vw) !important;
    min-width: 340px !important;
    max-width: 570px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    align-self: center !important;
  }

  .alv-header-main .alv-header-search__field {
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
}

/*
 * STICKY HEADER
 * The search + profile + quote controls become one explicit 424px tool row
 * when search is open. Search is absolutely centered vertically INSIDE that
 * row, while profile and quote remain normal flex items at the right.
 */
@media (min-width: 901px) {
  .alv-compact-bar.is-search-open .alv-compact-tools-slot {
    width: 424px !important;
    min-width: 424px !important;
    max-width: 424px !important;
    height: 40px !important;
    align-self: center !important;
  }

  .alv-compact-bar.is-search-open .alv-header-tools {
    position: relative !important;
    display: flex !important;
    width: 424px !important;
    min-width: 424px !important;
    max-width: 424px !important;
    height: 40px !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  .alv-compact-bar.is-search-open .alv-header-search__field {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 330px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    transform: none !important;
  }

  /*
   * Reserve the left side of the tools row for the 330px search.
   * Profile/cart stay aligned to the same 40px vertical center.
   */
  .alv-compact-bar.is-search-open .alv-header-profile {
    margin-left: 337px !important;
  }

  .alv-compact-bar.is-search-open .alv-header-profile,
  .alv-compact-bar.is-search-open .alv-header-quote {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
