/* Best Mebel V2 — самостоятельный переиспользуемый компонент обратного звонка. */
body.bm-theme-v2 #bm-app .bm-container .bm-callback {
  display: grid;
  grid-template-columns: minmax(0,45fr) minmax(0,55fr);
  align-items: center;
  width: 75%;
  margin-inline: auto;
  gap: clamp(22px,3vw,50px);
}
body.bm-theme-v2 #bm-app .bm-container .bm-callback--no-image {
  grid-template-columns: minmax(0,1fr);
}
.bm-callback__content,.bm-callback__media {
  min-width: 0;
}
.bm-callback__content {
  order: 1;
}
.bm-callback__media {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-callback__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.bm-callback__title {
  margin: 0 0 26px;
  font-size: var(--bm-font-size-sc-section);
  font-weight: var(--bm-font-weight-medium);
  line-height: 1.18;
  color: var(--bm-ink);
}
.bm-callback__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
  min-width: 0;
}
.bm-callback__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.bm-callback__label {
  font-size: var(--bm-font-size-compact);
  line-height: 1.4;
  color: var(--bm-ink);
}
.bm-callback__input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #dadbd5;
  border-radius: 12px;
  background: var(--bm-surface);
  color: var(--bm-ink);
  font-size: var(--bm-font-size-body-lg);
  font-weight: var(--bm-font-weight-regular);
  line-height: 1.4;
  box-shadow: 0 3px 16px rgba(35,35,35,.035);
  transition: border-color .2s ease,box-shadow .2s ease;
}
.bm-callback__input::placeholder {
  color: #858585;
  opacity: 1;
}
.bm-callback__input:focus {
  outline: 0;
  border-color: #e2b400;
  box-shadow: 0 0 0 3px rgba(255,212,0,.20);
}
.bm-callback__input[aria-invalid="true"] {
  border-color: #c44848;
}
.bm-callback__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1px;
  font-size: var(--bm-font-size-small);
  line-height: 1.48;
  color: var(--bm-ink);
  cursor: pointer;
}
.bm-callback__checkbox {
  appearance: auto;
  accent-color: #e2b400;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  cursor: pointer;
}
.bm-callback__consent a {
  color: #735a1c!important;
  text-decoration: underline!important;
  text-decoration-thickness: 1px!important;
  text-underline-offset: 3px;
}
.bm-callback__consent a:hover {
  color: #3c310c!important;
}
/* Кнопка полностью наследует фирменный стиль «Позвонить» из 08-contact-buttons.css. */
.bm-callback__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border-radius: var(--bm-pill);
  padding: 12px 16px;
  cursor: pointer;
  font-size: var(--bm-font-size-body-lg);
  font-weight: var(--bm-contact-font-weight);
}
.bm-callback__submit:focus-visible,.bm-callback__success-close:focus-visible {
  outline: 3px solid var(--bm-ink);
  outline-offset: 3px;
}
.bm-callback__error {
  margin: 0;
  font-size: var(--bm-font-size-small);
  line-height: 1.5;
  color: #b42e2e;
}
.bm-callback__success {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 12px;
  border: 1px solid #c5e6d1;
  border-radius: 13px;
  background: #effaf3;
  color: #225b38;
  box-shadow: 0 8px 24px rgba(15,91,45,.08);
  animation: bmCallbackNoticeIn .25s ease-out both;
}
.bm-callback__success[hidden],.bm-callback__error[hidden] {
  display: none!important;
}
.bm-callback__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #218c4a;
  color: #fff;
  font-size: 19px;
  line-height: 1;
}
.bm-callback__success>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.bm-callback__success strong {
  font-size: var(--bm-font-size-body);
  font-weight: var(--bm-font-weight-medium);
}
.bm-callback__success>div span {
  font-size: var(--bm-font-size-meta);
  line-height: 1.4;
}
.bm-callback__success-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  padding: 0 2px;
  flex: none;
}
.bm-callback__trap {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  border: 0!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  clip-path: inset(50%)!important;
  white-space: nowrap!important;
}
@keyframes bmCallbackNoticeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media(max-width:767px) {
  body.bm-theme-v2 #bm-app .bm-container .bm-callback {
    width: 100%;
    grid-template-columns: minmax(0,1fr);
    gap: 22px;
  }
  .bm-callback__media {
    order: 1;
    width: 95%;
    justify-self: center;
  }
  .bm-callback__content {
    order: 2;
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .bm-callback__title {
    text-align: center;
    margin-bottom: 22px;
  }
}
@media(max-width:500px) {
  .bm-callback__form {
    gap: 15px;
  }
  .bm-callback__input {
    min-height: 50px;
  }
  .bm-callback__submit {
    min-height: 50px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .bm-callback__submit {
    transition: none;
  }
  .bm-callback__success {
    animation: none;
  }
}

/* Единый компонент внутри мобильной нижней панели — те же поля и кнопка, без изображения. */
@media (max-width: 767px) {
  .bm-footer-panel .bm-callback--panel {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .bm-footer-panel .bm-callback--panel .bm-callback__content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .bm-footer-panel .bm-callback--panel .bm-callback__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .bm-footer-panel .bm-callback--panel .bm-callback__input {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }
  .bm-footer-panel .bm-callback--panel .bm-callback__submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .bm-callback__panel-intro {
    color: var(--bm-muted);
    line-height: 1.6;
    text-align: center;
    margin: 0 0 24px;
  }
}
