.site-header {
  position: relative;
}

.header-bottom .menu > li.menu-item-has-tavazo-mega-menu {
  position: static;
}

.menu-item-has-tavazo-mega-menu > ul.sub-menu {
  display: none !important;
}

.tavazo-mega-menu {
  position: absolute;
  z-index: 1000;
  inset-block-start: 100%;
  inset-inline: 0;
  inline-size: 100%;
  color: #1a1a1a;
  background: #fff;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08),
    0 4px 6px -2px rgba(16, 24, 40, 0.03);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.header-bottom .menu > li.menu-item-has-tavazo-mega-menu:hover > .tavazo-mega-menu,
.header-bottom .menu > li.menu-item-has-tavazo-mega-menu:focus-within > .tavazo-mega-menu,
.header-bottom .menu > li.menu-item-has-tavazo-mega-menu.is-tavazo-mega-open > .tavazo-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.tavazo-mega-menu__inner {
  inline-size: 100%;
  padding: 32px 64px;
}

.tavazo-mega-menu__title {
  margin: 0 0 20px;
  color: #0c3c30;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: start;
}

.tavazo-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.tavazo-mega-menu__item {
  position: relative;
  min-inline-size: 0;
}

.header-bottom .menu .tavazo-mega-menu__card,
.menu .tavazo-mega-menu__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  inline-size: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
  padding: 12px;
  color: #1a1a1a;
  border-radius: 8px;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.header-bottom .menu .tavazo-mega-menu__card:hover,
.header-bottom .menu .tavazo-mega-menu__card:focus-visible {
  color: #0c3c30;
  background: #f6f8f7;
  outline: none;
}

.tavazo-mega-menu__icon {
  flex: 0 0 24px;
  inline-size: 24px;
  block-size: 24px;
  color: #0c3c30;
}

.tavazo-mega-menu__copy {
  display: flex;
  flex: 1 1 auto;
  min-inline-size: 0;
  flex-direction: column;
  gap: 4px;
  text-align: start;
}

.tavazo-mega-menu__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
}

.tavazo-mega-menu__chevron {
  flex: 0 0 10px;
  inline-size: 10px;
  block-size: 10px;
  transition: transform 160ms ease;
}

.tavazo-mega-menu__item--has-submenu.is-tavazo-submenu-open .tavazo-mega-menu__label,
.tavazo-mega-menu__item--has-submenu.is-tavazo-submenu-open .tavazo-mega-menu__chevron {
  color: #bc9f72;
}

.tavazo-mega-menu__item--has-submenu.is-tavazo-submenu-open .tavazo-mega-menu__chevron {
  transform: rotate(180deg);
}

.tavazo-mega-menu__submenu {
  position: absolute;
  z-index: 1002;
  inset-block-start: 100%;
  inset-inline-start: 0;
  inline-size: 256px;
  padding-block-start: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.tavazo-mega-menu__submenu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(20, 32, 31, 0.16);
}

.header-bottom .menu .tavazo-mega-menu__submenu-link,
.menu .tavazo-mega-menu__submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-block-size: 40px;
  padding: 8px 12px;
  box-sizing: border-box;
  color: #666e6d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.header-bottom .menu .tavazo-mega-menu__submenu-link:hover,
.header-bottom .menu .tavazo-mega-menu__submenu-link:focus-visible {
  color: #666e6d;
  background: #f9fafa;
  border-color: #f3f4f4;
  outline: none;
}

.tavazo-mega-menu__badge {
  flex: 0 0 auto;
  padding: 1px 8px;
  color: #1b9fec;
  background: #f5f9fc;
  border: 1px solid #9fdcff;
  border-radius: 200px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0.75px 1.5px rgba(46, 127, 0, 0.05);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.11px;
  white-space: nowrap;
}

.header-bottom .menu .tavazo-mega-menu__submenu-link--view-all,
.menu .tavazo-mega-menu__submenu-link--view-all {
  font-weight: 600;
}

@media (min-width: 769px) {
  .tavazo-mega-menu__item--has-submenu:hover,
  .tavazo-mega-menu__item--has-submenu:focus-within,
  .tavazo-mega-menu__item--has-submenu.is-tavazo-submenu-open {
    z-index: 2;
  }

  .tavazo-mega-menu__item--has-submenu:hover > .tavazo-mega-menu__submenu,
  .tavazo-mega-menu__item--has-submenu:focus-within > .tavazo-mega-menu__submenu,
  .tavazo-mega-menu__item--has-submenu.is-tavazo-submenu-open > .tavazo-mega-menu__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.tavazo-mega-menu__label,
.tavazo-mega-menu__description {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tavazo-mega-menu__label {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.tavazo-mega-menu__description {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

@media (max-width: 768px) {
  .mobile-menu-wrapper .menu-item-has-tavazo-mega-menu {
    position: relative;
  }

  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu > a::after {
    content: "";
    inline-size: 5px;
    block-size: 5px;
    position: absolute;
    inset-inline-end: 15px;
    inset-block-start: 16px;
    background: transparent;
    border: 1px solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform 160ms ease;
  }

  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu.is-tavazo-mega-open > a::after {
    transform: rotate(135deg);
  }

  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu > a {
    position: relative;
    display: flex;
    inline-size: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: var(--Neutral---600, #525252);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 160ms ease;
  }

  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu > a:hover,
  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu > a:focus-visible,
  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu.is-tavazo-mega-open > a {
    color: #89724e;
  }

  .mobile-menu-wrapper .tavazo-mega-menu {
    position: static;
    display: none;
    inline-size: 100%;
    color: #1a1a1a;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .mobile-menu-wrapper .menu-item-has-tavazo-mega-menu.is-tavazo-mega-open > .tavazo-mega-menu {
    display: block;
    transform: none;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__inner {
    padding: 0;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__title {
    display: none;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-block: 4px 8px;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__item {
    inline-size: 100%;
  }

  .mobile-menu-wrapper ul.menu li .tavazo-mega-menu__card {
    display: flex;
    align-items: center;
    gap: 8px;
    inline-size: 100%;
    padding: 8px 12px;
    color: #1a1a1a;
    border-radius: 8px;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__icon {
    flex-basis: 20px;
    inline-size: 20px;
    block-size: 20px;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__copy {
    gap: 0;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__label-row {
    gap: 8px;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__submenu {
    position: static;
    display: none;
    inline-size: 100%;
    margin: 4px 0;
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__item--has-submenu.is-tavazo-submenu-open > .tavazo-mega-menu__submenu {
    display: block;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__submenu-list {
    inline-size: 100%;
    gap: 2px;
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid #f3f4f4;
    border-radius: 8px;
    box-shadow: none;
  }

  .mobile-menu-wrapper ul.menu li .tavazo-mega-menu__submenu-link {
    display: flex;
    inline-size: 100%;
    min-block-size: 40px;
    padding: 8px 10px;
    color: #666e6d;
    border-radius: 6px;
    font-size: 13px;
    line-height: 20px;
  }

  .mobile-menu-wrapper ul.menu li .tavazo-mega-menu__submenu-link--view-all {
    font-weight: 600;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
  }

  .mobile-menu-wrapper .tavazo-mega-menu__description {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .tavazo-mega-menu__inner {
    padding-inline: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tavazo-mega-menu,
  .mobile-menu-wrapper ul.menu li.menu-item-has-tavazo-mega-menu > a::after,
  .tavazo-mega-menu__chevron,
  .tavazo-mega-menu__submenu {
    transition: none;
  }
}
