.msm-mobile-menu {
  position: relative;
  width: 100%;
}

.msm-mobile-menu__desktop {
  display: block;
  min-width: 220px;
  background: #fff;
  padding: 16px 12px;
  font-size: 14px;
}

.msm-mobile-menu__desktop-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

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

.msm-mobile-menu__list--desktop li + li {
  margin-top: 4px;
}

.msm-mobile-menu__list--desktop a,
.msm-mobile-menu__desktop .msm-mobile-menu__list a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  padding: 0 10px !important;
  color: #222;
  text-decoration: none;
  font-size: 16px !important;
  line-height: 1.2;
  font-weight: 400;
  border-radius: 6px;
}

.msm-mobile-menu__list--desktop a:hover {
  background: #f4f4f4;
}

.msm-mobile-menu__list--desktop .current-menu-item > a,
.msm-mobile-menu__list--desktop .current_page_item > a,
.msm-mobile-menu__list--desktop .current-menu-ancestor > a {
  font-weight: 600;
  color: #000;
}

.msm-mobile-menu__trigger {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 11px 16px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
  cursor: pointer;
}

.msm-mobile-menu__trigger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.msm-mobile-menu__trigger-icon span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.msm-mobile-menu__trigger-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msm-mobile-menu__overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 12, 12, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.msm-mobile-menu.is-open .msm-mobile-menu__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.msm-mobile-menu__surface {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 20px 18px 28px;
  background:
    radial-gradient(circle at top left, rgba(244, 235, 226, 0.92), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 236, 0.98));
  color: #161616;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.msm-mobile-menu.is-open .msm-mobile-menu__surface {
  opacity: 1;
  transform: scale(1);
}

.msm-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.msm-mobile-menu__mobile-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msm-mobile-menu__mobile-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: calc(100% - 64px);
}

.msm-mobile-menu__mobile-logo .custom-logo-link,
.msm-mobile-menu__mobile-logo .custom-logo {
  display: block;
  max-height: 42px;
  width: auto;
}

.msm-mobile-menu__site-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msm-mobile-menu__close {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: #111;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.msm-mobile-menu__mobile-nav {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.msm-mobile-menu__list--mobile {
  width: min(100%, 640px);
}

.msm-mobile-menu__list--mobile li + li {
  margin-top: 8px;
}

.msm-mobile-menu__list--mobile a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  color: #171717;
  text-decoration: none;
  font-size: clamp(1.15rem, 6vw, 2rem);
  line-height: 1.1;
  font-weight: 500;
  position: relative;
}

.msm-mobile-menu__list--mobile a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.msm-mobile-menu__list--mobile a:hover::after,
.msm-mobile-menu__list--mobile .current-menu-item > a::after,
.msm-mobile-menu__list--mobile .current_page_item > a::after,
.msm-mobile-menu__list--mobile .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.msm-mobile-menu-notice {
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  background: #f8f5f1;
  color: #222;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 10px;
}

body.msm-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .msm-mobile-menu__desktop {
    display: none;
  }

  .msm-mobile-menu__trigger {
    display: inline-flex;
  }
}
