.idmm-enabled {
  position: relative;
}

.idmm-menu-toggle {
  display: none;
}

@media (min-width: 992px) {
  .idmm-enabled:hover > .idmm-dropdown,
  .idmm-enabled:focus-within > .idmm-dropdown {
    display: block;
  }
}

.idmm-enabled > .idmm-dropdown {
  left: 50% !important;
  width: min(1240px, calc(100vw - 32px)) !important;
  margin-left: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(33, 37, 41, 0.16);
}

.idmm-shell {
  color: #212529;
  background: #fff;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.idmm-layout {
  position: relative;
  min-height: 440px;
}

.idmm-list {
  display: flex;
  flex-direction: column;
  width: 35%;
  min-height: 440px;
  padding: 26px 18px 28px;
  border-right: 1px solid rgba(33, 37, 41, 0.1);
  background: #f7f8f9;
}

.idmm-custom-link {
  display: block;
  margin: auto 10px 0;
  padding: 11px 16px;
  border-radius: 6px;
  color: #fff;
  background: #c45a1d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.idmm-custom-link:hover,
.idmm-custom-link:focus-visible {
  color: #fff;
  background: #a84f12;
  text-decoration: none;
  outline: 2px solid #fa8939;
  outline-offset: 2px;
}

.idmm-category {
  margin: 2px 0;
}

.idmm-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  color: #212529;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.idmm-trigger:hover,
.idmm-trigger:focus-visible,
.idmm-category.is-active > .idmm-trigger {
  color: #a84f12;
  background: #fff;
  outline: none;
}

.idmm-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px #fa8939;
}

.idmm-panel {
  position: absolute;
  inset: 0 0 0 35%;
  padding: 34px 36px 38px;
  overflow: auto;
  background: #fff;
}

.idmm-panel[hidden] {
  display: none !important;
}

.idmm-panel h3 {
  margin: 0 0 22px;
  color: #212529;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.idmm-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.idmm-pages li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.idmm-pages a {
  display: block;
  grid-column: 2;
  padding: 8px 0;
  color: #343a40;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

.idmm-pages a:hover,
.idmm-pages a:focus-visible {
  color: #a84f12;
  text-decoration: underline;
  text-decoration-color: #fa8939;
  text-underline-offset: 3px;
  outline: none;
}

.idmm-badges {
  display: inline-flex;
  grid-column: 1;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 8px;
}

.idmm-badges:empty {
  min-height: 1px;
}

.idmm-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--idmm-badge-ink);
  background-color: var(--idmm-badge-bg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.idmm-empty {
  margin: 0;
  color: #6c7278;
  font-size: 13px;
}

@media (max-width: 991.98px) {
  .idmm-enabled > a {
    padding-right: 48px !important;
  }

  .idmm-menu-toggle {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: currentColor;
    background: transparent;
    cursor: pointer;
  }

  .idmm-menu-toggle > span[aria-hidden="true"] {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 120ms ease;
  }

  .idmm-enabled.idmm-menu-open > .idmm-menu-toggle > span[aria-hidden="true"] {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .idmm-enabled > .idmm-dropdown {
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none !important;
  }

  .idmm-enabled.idmm-menu-open > .idmm-dropdown {
    display: block !important;
  }

  .idmm-layout,
  .idmm-list {
    min-height: 0;
  }

  .idmm-list {
    width: 100%;
    padding: 12px;
    border-right: 0;
    background: #fff;
  }

  .idmm-custom-link {
    margin: 12px 10px 4px;
  }

  .idmm-pages li {
    grid-template-columns: 94px minmax(0, 1fr);
    column-gap: 8px;
  }

  .idmm-trigger {
    padding: 12px 10px;
    border-top: 1px solid rgba(33, 37, 41, 0.1);
    border-radius: 0;
  }

  .idmm-panel {
    position: static;
    padding: 4px 10px 18px;
    overflow: visible;
  }

  .idmm-panel h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .idmm-pages {
    display: block;
  }

  .idmm-pages a {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idmm-trigger {
    transition: none;
  }
}
