.mps-header {
  --mps-header-divider: #e3e8e4;
  --mps-header-action-green: var(--mps-brand, #00BC70);
  background: #fff;
  border-bottom-color: var(--mps-header-divider);
}

.mps-header .mps-utility,
.mps-header .mps-catalog,
.mps-header .mps-category-panel {
  background: #fff;
}

.mps-header .mps-utility {
  border-bottom-color: var(--mps-header-divider);
}

.mps-header .mps-catalog,
.mps-header .mps-category-row + .mps-category-row {
  border-top: 1px solid var(--mps-header-divider);
}

.mps-header .mps-site-search button {
  background: var(--mps-header-action-green);
  color: var(--mps-action-ink, #082c20);
  transition: background-color 160ms ease-out;
}

.mps-header .mps-site-search button:hover,
.mps-header .mps-site-search button:focus-visible {
  background: var(--mps-brand-hover, #00AA65);
  color: var(--mps-action-ink, #082c20);
}

.mps-header .mps-contact > a::before {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  background: var(--mps-header-action-green);
  mask: var(--mps-contact-icon) center / contain no-repeat;
}

.mps-header .mps-contact > a[href^="tel:"] {
  --mps-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 18 18 0 0 1-7.8-2.8 18 18 0 0 1-5.6-5.6A18 18 0 0 1 3.6 5.7 2 2 0 0 1 5.6 3.5h3a2 2 0 0 1 2 1.7l.5 3a2 2 0 0 1-.6 2.1l-1.3 1.3a14 14 0 0 0 5.6 5.6l1.3-1.3a2 2 0 0 1 2.1-.6l3 .5a2 2 0 0 1 .8 1.1Z'/%3E%3C/svg%3E");
}

.mps-header .mps-contact > a[href^="mailto:"] {
  --mps-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.mps-header :is(.mps-account, .mps-mobile-account) a {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
}

.mps-header :is(.mps-account, .mps-mobile-account) a::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  background: var(--mps-header-action-green);
  -webkit-mask: var(--mps-account-icon) center / contain no-repeat;
  mask: var(--mps-account-icon) center / contain no-repeat;
}

.mps-header :is(.mps-account, .mps-mobile-account) a[href*="/member/login"] {
  --mps-account-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'5'%20y%3D'10'%20width%3D'14'%20height%3D'11'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%2010V7a4%204%200%200%201%208%200v3M12%2014v3'%2F%3E%3C%2Fsvg%3E");
}

.mps-header :is(.mps-account, .mps-mobile-account) a[href*="/member/register"] {
  --mps-account-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'8'%20r%3D'4'%2F%3E%3Cpath%20d%3D'M4%2021v-2a8%208%200%200%201%2016%200v2'%2F%3E%3C%2Fsvg%3E");
}

.mps-header :is(.mps-contact, .mps-primary-nav, .mps-account, .mps-mobile-account, .mps-panel-top, .mps-panel-group) a,
.mps-header .mps-panel-leaf-link {
  background-image: linear-gradient(var(--mps-header-action-green), var(--mps-header-action-green));
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0 2px;
  text-decoration: none;
  transition: background-size 160ms ease-out;
}

.mps-header :is(.mps-contact, .mps-primary-nav, .mps-account, .mps-mobile-account, .mps-panel-top, .mps-panel-group) a:is(:hover, :focus-visible),
.mps-header .mps-panel-leaf-link:is(:hover, :focus-visible) {
  background-size: 100% 2px;
  text-decoration: none;
}

.mps-header .mps-catalog-button::before {
  position: absolute;
  inset: auto 9px 6px;
  height: 2px;
  background: var(--mps-header-action-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease-out;
  content: "";
}

.mps-header .mps-catalog-button:is(:hover, :focus-visible, [aria-expanded="true"])::before {
  transform: scaleX(1);
}

.mps-header .mps-catalog-button::after {
  position: absolute;
  top: 50%;
  inset-inline-end: 5px;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-65%) rotate(45deg);
  content: "";
}

.mps-header .mps-catalog-button[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.mps-header .mps-catalog-button:is(:hover, :focus-visible, [aria-expanded="true"])::after {
  border-color: var(--mps-header-action-green);
}

.mps-header .mps-catalog-button:focus-visible {
  outline: 2px solid var(--mps-header-action-green);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .mps-header .mps-site-search button,
  .mps-header .mps-catalog-button::before,
  .mps-header :is(.mps-contact, .mps-primary-nav, .mps-account, .mps-mobile-account, .mps-panel-top, .mps-panel-group) a,
  .mps-header .mps-panel-leaf-link {
    transition: none;
  }
}
