/* Mobile menu panel — header breakpoint ≤991px */

.mobile-menu {
  --mm-navy: #04245d;
  --mm-accent: #fdd300;
  --mm-text: #ffffff;
  --mm-muted: rgba(255, 255, 255, 0.72);
  --mm-line: rgba(255, 255, 255, 0.12);
  --mm-panel-width: min(86vw, 360px);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(4, 20, 48, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  width: var(--mm-panel-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mm-navy);
  color: var(--mm-text);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--mm-line);
}

.mobile-menu__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  color: var(--mm-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
  border-color: var(--mm-accent);
  color: var(--mm-accent);
  outline: none;
}

.mobile-menu__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 28px;
}

.mm-list,
.mm-sub,
.mm-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-item {
  border-bottom: 1px solid var(--mm-line);
}

.mm-row {
  display: flex;
  align-items: stretch;
  min-height: 52px;
}

.mm-link,
.mm-heading {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  color: var(--mm-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mm-link:hover,
.mm-link:focus-visible,
.mm-heading:hover,
.mm-heading:focus-visible {
  color: var(--mm-accent);
  outline: none;
}

.mm-link--label {
  cursor: default;
}

.mm-expand {
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--mm-line);
  background: transparent;
  color: var(--mm-text);
  cursor: pointer;
}

.mm-expand:hover,
.mm-expand:focus-visible {
  color: var(--mm-accent);
  outline: none;
}

.mm-expand__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.mm-expand[aria-expanded="true"] .mm-expand__icon {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.mm-sub {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--mm-line);
}

.mm-sub[hidden] {
  display: none !important;
}

.mm-sub .mm-link {
  padding-left: 28px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mm-muted);
}

.mm-sub .mm-link:hover,
.mm-sub .mm-link:focus-visible {
  color: var(--mm-accent);
}

.mm-item--section {
  border-bottom: 0;
}

.mm-heading {
  padding: 12px 16px 6px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mm-accent);
  text-transform: uppercase;
}

.mm-section-list .mm-link {
  padding-left: 28px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  color: var(--mm-muted);
}

body.mm-open {
  overflow: hidden;
}

/* Keep floating contact rail / chat from covering the panel */
body.mm-open .cs-action-button-container,
body.mm-open .cs-action-button {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}
