/* LEO header product search: visible, compact and touch-friendly. */
html body .wp-site-blocks .leo-search {
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

html body .wp-site-blocks .leo-search-input {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: #fff !important;
  color: #020912 !important;
}

html body .wp-site-blocks .leo-search-btn {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  border-left: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #020912 !important;
  cursor: pointer !important;
}

html body .wp-site-blocks .leo-search-btn:hover,
html body .wp-site-blocks .leo-search-btn:focus-visible {
  color: #ce202f !important;
  background: #f7f7f7 !important;
}

@media (min-width: 1024px) {
  html body .wp-site-blocks .leo-header-row {
    gap: 18px !important;
  }

  html body .wp-site-blocks .leo-logo-img {
    max-width: 180px !important;
  }

  html body .wp-site-blocks .leo-mega-bar {
    gap: clamp(9px, 1vw, 15px) !important;
  }

  html body .wp-site-blocks .leo-mega .leo-top-link,
  html body .wp-site-blocks .leo-mega .leo-top-btn {
    font-size: 12.5px !important;
  }

  html body .wp-site-blocks .leo-search {
    width: 168px !important;
    min-width: 168px !important;
    height: 38px !important;
  }

  html body .wp-site-blocks .leo-search-input {
    width: 128px !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  html body .wp-site-blocks .leo-search-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 8px !important;
  }
}

@media (max-width: 1023px) {
  html body .wp-site-blocks .leo-header-row {
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
    padding: 12px 0 !important;
    gap: 8px !important;
  }

  html body .wp-site-blocks .leo-header-actions .leo-search {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
  }

  html body .wp-site-blocks .leo-search-input {
    width: auto !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }

  html body .wp-site-blocks .leo-search-btn {
    width: 42px !important;
    min-width: 42px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 9px !important;
  }

  html body .wp-site-blocks .leo-mega-burger[aria-expanded="true"]::before {
    content: "\00d7" !important;
    font-size: 27px !important;
    font-weight: 300 !important;
  }

  html body .wp-site-blocks .leo-mega-bar {
    padding-top: 10px !important;
  }
}
