.so-mcm,
.so-mcm * {
  box-sizing: border-box;
}

.so-mcm {
  --so-mcm-width: min(86vw, 390px);
  --so-mcm-ink: #2a1717;
  --so-mcm-muted: #756a70;
  --so-mcm-line: #ece6e6;
  --so-mcm-red: #e61010;
  --so-mcm-bar: #0f0f12;
  --so-mcm-soft: #fafafa;
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  pointer-events: none;
  visibility: hidden;
}

.so-mcm.is-open {
  pointer-events: auto;
  visibility: visible;
}

.so-mcm__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, .58);
  opacity: 0;
  transition: opacity .28s ease;
}

.so-mcm.is-open .so-mcm__shade {
  opacity: 1;
}

.so-mcm__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--so-mcm-width);
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  box-shadow: -24px 0 70px rgba(8, 8, 12, .28);
  transform: translate3d(104%, 0, 0);
  transition: transform .32s cubic-bezier(.2, .72, .2, 1);
}

.so-mcm.is-open .so-mcm__drawer {
  transform: translate3d(0, 0, 0);
}

.so-mcm__viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.so-mcm__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  background: #fff;
  transform: translate3d(100%, 0, 0);
  transition: transform .28s cubic-bezier(.2, .72, .2, 1), opacity .2s ease;
  opacity: 0;
  pointer-events: none;
}

.so-mcm__panel.is-active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.so-mcm__panel.is-before {
  transform: translate3d(-28%, 0, 0);
  opacity: .25;
}

.so-mcm__bar {
  flex: 0 0 auto;
  min-height: 54px;
  background: var(--so-mcm-bar);
  color: #fff;
}

.so-mcm__bar--root {
  background: var(--so-mcm-red);
}

.so-mcm__close,
.so-mcm__back {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.so-mcm__close strong,
.so-mcm__back strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}

.so-mcm__panel-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: #1a171c;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.so-mcm__back {
  min-height: 52px;
  background: var(--so-mcm-red);
}

.so-mcm__list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.so-mcm__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--so-mcm-line);
}

.so-mcm__row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px 0 18px;
  border: 0;
  background: #fff;
  color: var(--so-mcm-ink) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}

.so-mcm__row:active {
  background: #f7f7f7;
}

.so-mcm__text {
  min-width: 0;
}

.so-mcm__text--with-image {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}

.so-mcm__category-image {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #ececef;
  border-radius: 4px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 200% 200%;
  box-shadow: 0 2px 8px rgba(20, 17, 24, .06);
}

.so-mcm__category-image--nested {
  background-size: contain;
  background-position: 50% 50% !important;
}

.so-mcm__label {
  min-width: 0;
}

.so-mcm__panel[data-panel="root"] .so-mcm__row {
  min-height: 66px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.so-mcm__item--manufacturer .so-mcm__row {
  min-height: 66px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.so-mcm__text small {
  color: var(--so-mcm-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.so-mcm__text span {
  overflow-wrap: anywhere;
}

.so-mcm__arrow {
  flex: 0 0 auto;
  color: var(--so-mcm-ink);
  font-size: 31px;
  line-height: 1;
  font-weight: 300;
}

body.so-mcm-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (min-width: 768px) {
  .so-mcm {
    --so-mcm-width: min(430px, 32vw);
  }
}

@media (max-width: 380px) {
  .so-mcm {
    --so-mcm-width: min(92vw, 360px);
  }

  .so-mcm__row {
    min-height: 50px;
    font-size: 14px;
  }

  .so-mcm__text--with-image {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .so-mcm__category-image {
    width: 44px;
    height: 44px;
  }

  .so-mcm__panel[data-panel="root"] .so-mcm__row {
    min-height: 62px;
  }
}

/* Desktop trigger polish 20260708 */
.so-mcm__panel {
  z-index: 1;
}

.so-mcm__panel.is-active {
  z-index: 3;
}

.so-mcm__panel.is-before {
  z-index: 1;
  transform: translate3d(-100%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.so-mcm__bar,
.so-mcm__panel-title,
.so-mcm__back,
.so-mcm__close {
  position: relative;
  z-index: 4;
}

@media (min-width: 768px) {
  .so-mcm {
    --so-mcm-width: min(420px, 30vw);
  }

  .so-mcm__drawer {
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    border-radius: 0 0 0 10px;
  }

  .so-mcm__shade {
    background: rgba(10, 10, 14, .46);
  }
}

/* Desktop opens from left, mobile keeps right side 20260708 */
@media (min-width: 768px) {
  .so-mcm__drawer {
    right: auto !important;
    left: 0 !important;
    box-shadow: 24px 0 70px rgba(8, 8, 12, .28) !important;
    transform: translate3d(-104%, 0, 0) !important;
  }

  .so-mcm.is-open .so-mcm__drawer {
    transform: translate3d(0, 0, 0) !important;
  }
}
