#mbv-cookie-notice {
  position: relative !important; inset: auto !important; z-index: auto !important;
  width: 100%; max-width: none !important; margin: 0 !important; box-sizing: border-box;
  flex-direction: row !important; align-items: center !important; justify-content: center;
  padding: 8px 12px !important; gap: 12px !important; border: 0 !important;
  border-bottom: 1px solid #e5e0da !important; border-radius: 0 !important;
  background: #f8f6f3 !important; color: #403a35 !important; box-shadow: none !important;
  font-family: inherit; font-size: 13px; line-height: 1.4;
}
#mbv-cookie-notice button {
  min-height: 44px !important; width: auto !important; padding: 5px 14px !important;
  border-color: #93291e !important; border-radius: 8px !important; background: #93291e !important;
}
body.pq-open #mbv-cookie-notice { visibility: visible !important; }
.b24-widget-button-popup { display: none !important; }
.pl20-covers-action,
body.pl20-ui-busy .pq__launcher,
body.pl20-ui-busy .b24-widget-button-wrapper,
body.pl20-ui-busy .bottom-icons-panel,
body.pl20-ui-busy .metal-quiz-offer,
body.pl20-quiz-offered .pq__launcher:not(.pl20-nav-quote) {
  visibility: hidden !important; pointer-events: none !important;
}
body:has(#pq-panel[open]) { overflow: hidden !important; }
#pq-panel.pq__panel {
  margin: auto; inset: 12px; width: min(850px, calc(100% - 24px));
  padding: 0; max-height: calc(100dvh - 24px);
}
#pq-panel:not([open]) { display: none; }
#pq-panel::backdrop { background: #201c19a8; }
#pq-panel .pq__scroll { max-height: calc(100dvh - 26px); }
#pq-panel .pq__close { min-width: 44px; min-height: 44px; }
.metal-quiz[open] .metal-quiz__shell { max-height: min(850px, calc(100dvh - 30px)); }
.metal-quiz__body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.metal-quiz__header,.metal-quiz__footer,.metal-quiz__progress { flex-shrink: 0; }
.metal-quiz__footer { position: static; }
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(var(--pl20-nav-height,61px) + 12px); }
  #mbv-cookie-notice { font-size: 12px !important; }
  #mbv-cookie-notice button { min-width: 64px; }
  .bottom-icons-panel .pl20-nav-quote {
    position: static !important; visibility: visible; min-width: 65px; flex: 0 0 auto;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: #93291e; background: #fbf1ed; border: 0; border-radius: 0;
    gap: 3px; box-shadow: none; padding: 5px 8px; font-size: 10px !important;
    line-height: 1.25; min-height: 52px; white-space: nowrap;
  }
  .bottom-icons-panel .pl20-nav-quote:hover { color:#792019; background:#f5e6df; }
  .bottom-icons-panel .pl20-nav-quote .pl20-desktop-label { display:none; }
  .bottom-icons-panel .pl20-nav-quote::after { content:'Расчёт'; }
  .b24-widget-button-wrapper.b24-widget-button-position-bottom-right {
    right: 10px !important; bottom: calc(var(--pl20-nav-height,61px) + 8px) !important;
  }
  body:has(.metal-quiz-offer:not([hidden])) .metal-quiz-offer {
    bottom: calc(var(--pl20-nav-height,61px) + 9px) !important;
  }
  body.pl20-quiz-offered .b24-widget-button-wrapper { visibility:hidden!important; pointer-events:none!important; }
  #pq-panel.pq__panel, .metal-quiz[open] {
    inset: calc(var(--pl20-visual-top,0px) + 6px) 6px auto;
    margin: 0 auto; width: calc(100% - 12px); max-width: 620px;
    max-height: calc(var(--pl20-visual-height,100dvh) - 12px);
  }
  #pq-panel .pq__scroll { max-height: calc(var(--pl20-visual-height,100dvh) - 14px); }
  .metal-quiz[open] .metal-quiz__shell { max-height: calc(var(--pl20-visual-height,100dvh) - 14px); }
  .metal-quiz input:not([type=radio],[type=checkbox],[type=file]), .metal-quiz textarea { font-size:16px; }
}

.pq__launcher[hidden] { display:none !important; }
.pl20-nav-quote svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }

body.pl20-chat-menu :is(.pq__launcher,.metal-quiz-offer) { visibility:hidden !important; pointer-events:none !important; }
@media (max-width:767px) {
  .bx-livechat-wrapper.bx-livechat-show {
    position: fixed !important;
    inset: calc(var(--pl20-visual-top,0px) + 4px) 4px auto !important;
    width: auto !important; height: calc(var(--pl20-visual-height,100dvh) - 8px) !important;
    max-width: none !important; max-height: none !important; margin: 0 !important;
  }
  .bx-livechat-wrapper.bx-livechat-show .bx-livechat-box { width: 100%; height: 100% !important; }
  .bx-livechat-wrapper.bx-livechat-show .bx-livechat-body { min-height: 0; flex: 1 1 auto; }
  .bx-livechat-wrapper.bx-livechat-show :is(.bx-livechat-head-wrap,.bx-livechat-textarea) { flex-shrink: 0; }
  .bx-livechat-wrapper.bx-livechat-show textarea { font-size: 16px; }
}
