/* Airsoft Plaza mobile mega menu. Scoped to the shortcode root only. */

.ap-mobile-mega-menu {
  --ap-mm-bg: #050505;
  --ap-mm-fg: #fafafa;
  --ap-mm-fg-soft: rgba(250, 250, 250, .76);
  --ap-mm-fg-muted: rgba(250, 250, 250, .56);
  --ap-mm-border: rgba(255, 255, 255, .11);
  --ap-mm-panel-bg: rgba(0, 0, 0, .42);
  --ap-mm-accent: #fb5104;
  --ap-mm-row-height: 52px;
  --ap-mm-row-padding-x: 20px;
  --ap-mm-toggle-width: 56px;
  --ap-mm-font-display: var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
  --ap-mm-font-body: var(--e-global-typography-text-font-family, sans-serif), sans-serif;
  display: block;
  width: 100%;
  color: var(--ap-mm-fg);
  background: var(--ap-mm-bg);
  border-top: 1px solid var(--ap-mm-border);
  font-family: var(--ap-mm-font-body);
}

.elementor-popup-modal .dialog-message:has(.ap-mobile-mega-menu) {
  box-sizing: border-box;
  align-items: flex-start;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.elementor-popup-modal .dialog-message:has(.ap-mobile-mega-menu) > .elementor {
  width: 100%;
}

.elementor-popup-modal .dialog-message:has(.ap-mobile-mega-menu) .ap-header-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.elementor-popup-modal .dialog-message:has(.ap-mobile-mega-menu) .ap-header-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
  font-size: 14px;
}

.elementor-popup-modal .dialog-message:has(.ap-mobile-mega-menu) .e-con-inner:has(> .elementor-widget-shortcode .ap-mobile-mega-menu) > .elementor-widget-shortcode:has(.ap-mobile-mega-menu) {
  order: 10;
}

.elementor-popup-modal .dialog-message:has(.ap-mobile-mega-menu) .e-con-inner:has(> .elementor-widget-shortcode .ap-mobile-mega-menu) > .e-con:has(> .elementor-widget-icon-box) {
  order: 20;
  margin-top: 24px;
  margin-bottom: 18px;
}

.ap-mobile-mega-menu__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ap-mobile-mega-menu__item {
  border-bottom: 1px solid var(--ap-mm-border);
}

.ap-mobile-mega-menu__row {
  display: flex;
  align-items: center;
  min-height: var(--ap-mm-row-height);
  padding: 14px var(--ap-mm-row-padding-x);
  gap: 8px;
  color: var(--ap-mm-fg);
  text-decoration: none;
  background: transparent;
}

.ap-mobile-mega-menu__row--split {
  padding: 0;
  gap: 0;
}

.ap-mobile-mega-menu__label-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: var(--ap-mm-row-height);
  padding: 14px var(--ap-mm-row-padding-x);
  gap: 8px;
  color: var(--ap-mm-fg);
  text-decoration: none;
  background: transparent;
}

.ap-mobile-mega-menu .ap-mobile-mega-menu__row,
.ap-mobile-mega-menu .ap-mobile-mega-menu__label-link {
  color: var(--ap-mm-fg);
  text-decoration: none;
  background: transparent;
}

.ap-mobile-mega-menu__label {
  min-width: 0;
  font-family: var(--ap-mm-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.18;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.ap-mobile-mega-menu__item--highlight .ap-mobile-mega-menu__label {
  color: var(--ap-mm-accent);
}

.ap-mobile-mega-menu__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 18px;
  padding: 2px 6px;
  font-family: var(--ap-mm-font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: #fff;
  background: var(--ap-mm-accent);
  text-transform: uppercase;
}

.ap-mobile-mega-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--ap-mm-toggle-width);
  width: var(--ap-mm-toggle-width);
  min-height: var(--ap-mm-row-height);
  padding: 0;
  margin: 0;
  color: var(--ap-mm-fg);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--ap-mm-border);
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.ap-mobile-mega-menu .ap-mobile-mega-menu__toggle {
  color: var(--ap-mm-fg);
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--ap-mm-border);
  border-radius: 0;
  box-shadow: none;
}

.ap-mobile-mega-menu__toggle:hover,
.ap-mobile-mega-menu__toggle:focus-visible {
  color: var(--ap-mm-accent);
}

.ap-mobile-mega-menu__toggle:focus-visible,
.ap-mobile-mega-menu__row:focus-visible,
.ap-mobile-mega-menu__label-link:focus-visible {
  outline: 2px solid var(--ap-mm-accent);
  outline-offset: -2px;
}

.ap-mobile-mega-menu__chevron {
  transition: transform 180ms ease;
}

.ap-mobile-mega-menu__toggle[aria-expanded="true"] .ap-mobile-mega-menu__chevron {
  transform: rotate(180deg);
}

.ap-mobile-mega-menu__panel {
  padding: 20px var(--ap-mm-row-padding-x);
  background: var(--ap-mm-panel-bg);
}

.ap-mobile-mega-menu__panel[hidden] {
  display: none;
}

.ap-mobile-mega-menu__grid {
  display: block;
  column-count: 1;
  column-gap: 20px;
}

.ap-mobile-mega-menu__group {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.ap-mobile-mega-menu__group:last-child {
  margin-bottom: 0;
}

.ap-mobile-mega-menu__group-heading {
  display: block;
  margin: 0 0 8px;
  padding-bottom: 6px;
  font-family: var(--ap-mm-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.2;
  color: var(--ap-mm-accent);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ap-mm-border);
  overflow-wrap: anywhere;
}

.ap-mobile-mega-menu .ap-mobile-mega-menu__group-heading {
  color: var(--ap-mm-accent);
  text-decoration: none;
}

.ap-mobile-mega-menu__children {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ap-mobile-mega-menu__children > li + li {
  margin-top: 2px;
}

.ap-mobile-mega-menu__child {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0;
  color: var(--ap-mm-fg-soft);
  font-family: var(--ap-mm-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease;
}

.ap-mobile-mega-menu .ap-mobile-mega-menu__child {
  color: var(--ap-mm-fg-soft);
  text-decoration: none;
}

.ap-mobile-mega-menu__child:hover,
.ap-mobile-mega-menu__child:focus-visible {
  color: var(--ap-mm-accent);
}

.ap-mobile-mega-menu__child:focus-visible {
  outline: 2px solid var(--ap-mm-accent);
  outline-offset: 2px;
}

.ap-mobile-mega-menu__child-bullet {
  flex: 0 0 auto;
  color: rgba(251, 81, 4, .55);
}

.ap-mobile-mega-menu__child-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ap-mobile-mega-menu__child-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 16px;
  padding: 2px 4px;
  color: #fff;
  background: var(--ap-mm-accent);
  font-family: var(--ap-mm-font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 390px) {
  .ap-mobile-mega-menu__grid {
    column-count: 2;
  }
}

@media (min-width: 760px) {
  .ap-mobile-mega-menu {
    --ap-mm-row-padding-x: 24px;
  }

  .ap-mobile-mega-menu__grid {
    column-count: 3;
    column-gap: 24px;
  }

  .ap-mobile-mega-menu__group {
    margin-bottom: 24px;
  }
}

.ap-mobile-mega-menu__grid:has(> .ap-mobile-mega-menu__group:only-child) {
  column-count: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ap-mobile-mega-menu__chevron,
  .ap-mobile-mega-menu__child {
    transition: none;
  }
}
