/* Catalog pictograms use the same rose tone as the existing navigation. */
@supports (mask-image: url("")) {
  body .section_item_inner .image .bm-catalog-icon {
    position: relative;
  }
  body .section_item_inner .image .bm-catalog-icon img {
    opacity: 0;
  }
  body .section_item_inner .image .bm-catalog-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--bm-tone, #c98296);
    -webkit-mask: var(--bm-category-image) center / contain no-repeat;
    mask: var(--bm-category-image) center / contain no-repeat;
  }
}

/* A distinct interactive card, using the storefront's rose and powder palette. */
body :is(#bm-figq, #bm-cch) {
  background: linear-gradient(135deg, #f5e7eb, var(--bm-surface, #fcf7f6));
  border: 1px solid #dfc1ca;
  border-top: 4px solid var(--bm-accent, #885765);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 12px 32px rgb(136 87 101 / 10%);
}
body #bm-figq .bm-figq__head::before,
body #bm-cch .bm-cch__head::before {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bm-accent, #885765);
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
}
body #bm-figq .bm-figq__head::before {
  content: "Подбор по фигуре";
}
body #bm-cch .bm-cch__head::before {
  content: "Подбор размера";
}
html[data-bm-typography] body :is(#bm-figq, #bm-cch),
html[data-bm-typography] body :is(#bm-figq, #bm-cch) * {
  --bm-content-case: uppercase;
  text-transform: uppercase !important;
}
body #bm-figq .bm-figq__title,
body #bm-cch .bm-cch__title {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.25;
  color: #593c46;
  margin-bottom: 12px;
}
body #bm-figq .bm-figq__sub,
body #bm-cch .bm-cch__sub {
  color: #69535a;
}
body #bm-figq .bm-figq__q {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}
body #bm-figq .bm-figq__opt {
  position: relative;
  background: #fff;
  border: 1px solid #dfc1ca;
  padding: 18px 38px 18px 18px;
  text-align: left;
  box-shadow: 0 3px 10px rgb(136 87 101 / 4%);
}
body #bm-figq .bm-figq__opt::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bm-accent, #885765);
}
body #bm-figq .bm-figq__opt strong {
  color: #593c46;
}
body #bm-figq .bm-figq__opt span {
  color: #695f63;
}
body #bm-figq .bm-figq__opt:is(:hover, :focus-visible) {
  border-color: var(--bm-accent, #885765);
  background: #fff9fb;
  outline: 2px solid var(--bm-accent, #885765);
  outline-offset: 2px;
}
body #bm-figq .bm-figq__result {
  background: #fff9fb;
  border: 1px solid #dfc1ca;
}
body #bm-figq .bm-figq__result-icon {
  color: var(--bm-tone, #c98296);
}
body #bm-figq .bm-figq__result-name {
  color: #593c46;
}
body #bm-figq .bm-figq__progress .dot.is-on {
  background: var(--bm-tone, #c98296);
}

body #bm-cch::before {
  content: none;
}
body #bm-cch .bm-cch__head {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}
body #bm-cch .bm-cch__icon {
  display: none;
}
body #bm-cch .bm-cch__sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
}
body #bm-cch .bm-cch__field {
  min-width: 0;
}
body #bm-cch .bm-cch__field span {
  color: #593c46;
}
body #bm-cch .bm-cch__field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfc1ca;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(136 87 101 / 4%);
}
body #bm-cch .bm-cch__field input:focus {
  border-color: var(--bm-accent, #885765);
  box-shadow: 0 0 0 3px rgb(136 87 101 / 12%);
}
body #bm-cch .bm-cch__field input::placeholder {
  text-transform: uppercase;
}
body #bm-cch .bm-cch__btn,
body #bm-cch .bm-cch__result-cta:not(.bm-cch__result-cta--alt) {
  background: var(--bm-accent, #885765);
  border-color: var(--bm-accent, #885765);
  color: #fff;
  border-radius: 12px;
  animation: none;
}
body #bm-cch .bm-cch__btn:hover,
body #bm-cch .bm-cch__result-cta:not(.bm-cch__result-cta--alt):hover {
  background: var(--bm-accent-hover, #734653);
}
body #bm-cch .bm-cch__result {
  background: #fff9fb;
  border: 1px solid #dfc1ca;
}
body #bm-cch .bm-cch__result-value {
  color: #593c46;
}

/* Do not reserve a grey rectangle for a map that has not loaded. */
body #bm-fitt-map:empty {
  display: none;
}

/* Preserve the source's natural capitalization in VK publication copy. */
html[data-bm-typography] body .vk-list__item-text-wrapper,
html[data-bm-typography] body .vk-list__item-text-post,
html[data-bm-typography] body .vk-list__item-period-date {
  --bm-content-case: none;
  text-transform: none !important;
  letter-spacing: normal;
}
