:root {
  --ezypak-cat-blue: var(--global-palette1, #1767b7);
  --ezypak-cat-ink: #111827;
  --ezypak-cat-muted: #5b6775;
  --ezypak-cat-line: #dce5ef;
  --ezypak-cat-bg: #ffffff;
}

.ezypak-shop-menu { position: relative; }
.ezypak-shop-menu > .ezypak-shop-trigger {
  align-items: center;
  display: inline-flex !important;
  gap: 7px;
}
.ezypak-shop-menu > .ezypak-shop-trigger::after {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1.7px solid currentColor !important;
  border-right: 1.7px solid currentColor !important;
  bottom: auto !important;
  content: '' !important;
  display: block !important;
  height: 6px !important;
  left: auto !important;
  margin-top: -3px !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: rotate(45deg) !important;
  transition: transform .18s ease;
  width: 6px !important;
}
.ezypak-shop-menu:hover > .ezypak-shop-trigger::after,
.ezypak-shop-menu:focus-within > .ezypak-shop-trigger::after {
  margin-top: 3px !important;
  transform: rotate(225deg) !important;
}
.ezypak-category-mega {
  background: transparent;
  display: block;
  left: 50%;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 1px);
  transform: translate(-35%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  visibility: hidden;
  width: min(1050px, calc(100vw - 48px));
  z-index: 9999;
}
.ezypak-shop-menu:hover > .ezypak-category-mega,
.ezypak-shop-menu:focus-within > .ezypak-category-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-35%, 0);
  visibility: visible;
}
.ezypak-mega-heading {
  align-items: center;
  background: rgba(255,255,255,.99);
  border: 1px solid var(--ezypak-cat-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--ezypak-cat-line);
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 14px 16px 12px;
  width: 310px;
}
.ezypak-mega-heading strong { color: var(--ezypak-cat-ink); font-size: 16px; }
.ezypak-mega-heading a { color: var(--ezypak-cat-blue); font-size: 13px; font-weight: 700; }
.ezypak-mega-tree {
  background: rgba(255,255,255,.99);
  border: 1px solid var(--ezypak-cat-line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 22px 55px rgba(15,35,60,.18);
  list-style: none;
  margin: 0;
  padding: 4px 0 7px;
  position: relative;
  width: 310px;
}
.ezypak-mega-tree > .ezypak-level-1 {
  border-bottom: 1px solid #edf1f5;
  margin: 0;
  width: 100%;
}
.ezypak-mega-tree > .ezypak-level-1 > .ezypak-category-link {
  border-radius: 7px;
  color: var(--ezypak-cat-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 40px;
  padding: 11px 38px 11px 12px;
  position: relative;
}
.ezypak-mega-tree > .ezypak-level-1.has-children > .ezypak-category-link::after {
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  content: '';
  height: 6px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
}
.ezypak-mega-tree > .ezypak-level-1:hover > .ezypak-category-link,
.ezypak-mega-tree > .ezypak-level-1:focus-within > .ezypak-category-link,
.ezypak-mega-tree > .ezypak-level-1.is-active > .ezypak-category-link {
  background: #eaf3fc;
  color: var(--ezypak-cat-blue);
}
.ezypak-mega-tree > .ezypak-level-1 > .ezypak-mega-subtree {
  align-content: start;
  background: rgba(255,255,255,.99);
  border: 1px solid var(--ezypak-cat-line);
  border-radius: 0 12px 12px 0;
  box-shadow: 18px 22px 42px rgba(15,35,60,.14);
  display: none;
  gap: 8px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: calc(100% - 1px);
  list-style: none;
  margin: 0;
  max-height: min(72vh, 650px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 18px 22px;
  position: absolute;
  top: var(--ezypak-subtree-top, 0px);
  width: 740px;
  z-index: 3;
}
.ezypak-mega-tree > .ezypak-level-1 > .ezypak-mega-subtree::before {
  bottom: 0;
  content: '';
  left: -14px;
  position: absolute;
  top: 0;
  width: 14px;
}
.ezypak-mega-tree > .ezypak-level-1:hover > .ezypak-mega-subtree,
.ezypak-mega-tree > .ezypak-level-1:focus-within > .ezypak-mega-subtree,
.ezypak-mega-tree > .ezypak-level-1.is-open > .ezypak-mega-subtree {
  display: grid;
}
.ezypak-mega-tree .ezypak-level-2 {
  break-inside: avoid;
  margin: 0 0 8px;
  padding: 0 4px;
}
.ezypak-mega-tree .ezypak-level-2 > .ezypak-category-link {
  border-radius: 5px;
  color: var(--ezypak-cat-ink);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 8px;
}
.ezypak-mega-tree .ezypak-level-2 > .ezypak-category-link:hover,
.ezypak-mega-tree .ezypak-level-2 > .ezypak-category-link:focus,
.ezypak-mega-tree .ezypak-level-3 > .ezypak-category-link:hover,
.ezypak-mega-tree .ezypak-level-3 > .ezypak-category-link:focus {
  background: #f1f7fd;
  color: var(--ezypak-cat-blue);
}
.ezypak-mega-tree .ezypak-level-2 > .ezypak-mega-subtree {
  border-left: 1px solid #e7edf4;
  list-style: none;
  margin: 1px 0 0 8px;
  padding: 0 0 0 8px;
}
.ezypak-mega-tree .ezypak-level-3 > .ezypak-category-link {
  border-radius: 4px;
  color: #4b5a6b;
  font-size: 12px;
  line-height: 1.35;
  padding: 4px 7px;
}
.ezypak-category-tree ul,
.ezypak-category-details ul,
.ezypak-mobile-tree,
.ezypak-shop-category-tree { list-style: none; margin: 0; padding: 0; }
.ezypak-category-details summary { cursor: pointer; list-style: none; position: relative; }
.ezypak-category-details summary::-webkit-details-marker { display: none; }
.ezypak-category-details summary::after {
  color: var(--ezypak-cat-muted);
  content: '+';
  font-weight: 700;
  position: absolute;
  right: 0;
  top: 0;
}
.ezypak-category-details[open] > summary::after { content: '−'; }
.ezypak-category-link { color: var(--ezypak-cat-ink); display: block; line-height: 1.35; text-decoration: none; }
.ezypak-category-link:hover,
.ezypak-category-link[aria-current='page'] { color: var(--ezypak-cat-blue); }
.ezypak-level-1 > .ezypak-category-details > summary > .ezypak-category-link { font-size: 14px; font-weight: 800; padding: 4px 22px 5px 0; }
.ezypak-level-2 > .ezypak-category-details > summary > .ezypak-category-link,
.ezypak-shop-category-tree .ezypak-level-2 > .ezypak-category-link,
.ezypak-mobile-tree .ezypak-level-2 > .ezypak-category-link { font-size: 13px; font-weight: 700; padding: 4px 20px 4px 0; }
.ezypak-shop-category-tree .ezypak-level-3 > .ezypak-category-link,
.ezypak-mobile-tree .ezypak-level-3 > .ezypak-category-link { color: #465466; font-size: 12px; padding: 3px 0 3px 12px; }
.ezypak-category-details ul { border-left: 1px solid #e9eef4; margin: 3px 0 2px 4px; padding-left: 8px; }

.widget_product_categories .ezypak-category-note { color: var(--ezypak-cat-muted); font-size: 12px; line-height: 1.45; margin: 0 0 12px; }
.ezypak-shop-category-tree > li { border-top: 1px solid var(--ezypak-cat-line); padding: 7px 0; }
.ezypak-shop-category-tree .ezypak-category-link { font-size: 13px; }
.ezypak-shop-category-tree .ezypak-level-1 > .ezypak-category-details > summary > .ezypak-category-link { font-size: 14px; }

.ezypak-mobile-categories { border-top: 1px solid rgba(17,24,39,.12); margin: 0 20px 12px; padding-top: 8px; }
.ezypak-mobile-categories > summary { color: var(--ezypak-cat-blue); cursor: pointer; font-size: 13px; font-weight: 800; padding: 8px 0; }
.ezypak-mobile-tree { max-height: 58vh; overflow: auto; padding-bottom: 12px; }
.ezypak-mobile-tree .ezypak-category-link { font-size: 13px; padding-block: 5px; }

/* Keep the desktop language selector out of the already crowded main row. */
@media (min-width: 1025px) {
  #main-header { position: relative; }
  #main-header .site-header-main-section-right-center {
    display: block !important;
    height: 26px !important;
    margin: 0 !important;
    min-width: 112px !important;
    padding: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: -29px !important;
    width: 112px !important;
    z-index: 100;
  }
  #main-header .site-header-main-section-right-center .gtranslate_wrapper {
    display: block !important;
    height: 26px !important;
    width: 112px !important;
  }
  #main-header .site-header-main-section-right-center select.gt_selector {
    background: #1767b7 !important;
    border: 1px solid rgba(255,255,255,.58) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    height: 26px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 22px 0 8px !important;
    position: static !important;
    width: 112px !important;
  }
  #main-header .site-header-main-section-right-center select.gt_selector:hover,
  #main-header .site-header-main-section-right-center select.gt_selector:focus {
    background: #0f559d !important;
    border-color: #fff !important;
    outline: 0;
  }
  #main-header .site-header-main-section-right-center select.gt_selector option {
    background: #fff;
    color: #1f2937;
  }
}

#mobile-menu .ezypak-mobile-language {
  border-top: 1px solid rgba(17,24,39,.12);
  display: none !important;
  list-style: none;
  margin: 8px 20px 0;
  padding: 12px 0 0;
}
#mobile-menu .ezypak-mobile-language-select {
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  color: #1f2937;
  display: block;
  font-size: 15px;
  font-weight: 600;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  width: 100%;
}
#mobile-menu .ezypak-mobile-language-select:focus {
  border-color: var(--ezypak-cat-blue);
  box-shadow: 0 0 0 2px rgba(43,108,176,.12);
  outline: 0;
}

.ezypak-banner-language-control { display: none; }

@media (max-width: 1180px) {
  .ezypak-category-mega { transform: translate(-28%, 8px); }
  .ezypak-shop-menu:hover > .ezypak-category-mega,
  .ezypak-shop-menu:focus-within > .ezypak-category-mega { transform: translate(-28%, 0); }
}
@media (max-width: 1024px) {
  .ezypak-category-mega { display: none !important; }
  #main-header .site-header-main-section-right-center { display: none !important; }
  #main-header .site-top-header-inner-wrap,
  #mobile-header .site-top-header-inner-wrap { position: relative !important; }
  #main-header .site-header-top-section-center,
  #mobile-header .site-header-top-section-center {
    justify-content: flex-start !important;
    min-width: 0;
    padding-right: 104px;
    text-align: left;
  }
  #main-header .header-html-inner,
  #main-header .header-html-inner p,
  #mobile-header .mobile-html-inner,
  #mobile-header .mobile-html-inner p { text-align: left !important; }
  #main-header .ezypak-banner-language-control,
  #mobile-header .ezypak-banner-language-control {
    display: block;
    position: absolute;
    right: 0;
    top: 3px;
    width: 96px;
    z-index: 100;
  }
  #main-header .ezypak-banner-language-select,
  #mobile-header .ezypak-banner-language-select {
    background: #1767b7;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 12px;
    font-weight: 600;
    height: 26px;
    line-height: 1.2;
    margin: 0;
    padding: 0 20px 0 7px;
    width: 96px;
  }
  #main-header .ezypak-banner-language-select:focus,
  #mobile-header .ezypak-banner-language-select:focus {
    border-color: #fff;
    outline: 0;
  }
  #main-header .ezypak-banner-language-select option,
  #mobile-header .ezypak-banner-language-select option {
    background: #fff;
    color: #1f2937;
  }
}

@media (max-width: 480px) {
  #main-header .site-header-top-section-center,
  #mobile-header .site-header-top-section-center { padding-right: 94px; }
  #main-header .header-html-inner p,
  #mobile-header .mobile-html-inner p {
    font-size: 11px !important;
    white-space: nowrap;
  }
  #main-header .ezypak-banner-language-control,
  #main-header .ezypak-banner-language-select,
  #mobile-header .ezypak-banner-language-control,
  #mobile-header .ezypak-banner-language-select { width: 88px; }
}
