/* AV_CART_POPUP_V2 — двухколоночную компоновку заменяем вертикальной.
   Только окно с заголовком «Добавлено в корзину!», помеченное JS. */
.av-cartpop-root, .av-cartpop-root * {box-sizing:border-box!important}
.av-cartpop-root.modal .modal-dialog {width:calc(100% - 32px)!important;max-width:720px!important;margin:4vh auto 25px!important}
.av-cartpop-root .modal-content,
.av-cartpop-root .popup-content,
.av-cartpop-root .mfp-content,
.av-cartpop-root .fancybox-content,
.av-cartpop-root .box-modal,
.av-cartpop-root .popup-inner {
  border:1px solid #dce8f1!important;border-radius:20px!important;
  background:#fff!important;box-shadow:0 24px 70px rgba(20,56,83,.19)!important;
  max-width:100%!important;
}
.av-cartpop-root.modal .modal-content {padding:0!important;overflow:hidden!important}
.av-cartpop-root .modal-header,.av-cartpop-root .popup-header,.av-cartpop-root .box-modal__header {
  padding:21px 65px 21px 26px!important;background:#f6fbff!important;
  border-bottom:1px solid #e5eef6!important;position:relative!important;
}
.av-cartpop-root .av-cartpop-title {
  color:#234a65!important;font-size:21px!important;font-weight:750!important;
  line-height:1.35!important;letter-spacing:-.02em!important;margin:0!important;
  padding:0!important;display:flex!important;gap:12px;align-items:center;
}
.av-cartpop-root .av-cartpop-title::before {
  content:'✓';display:inline-flex;flex:none;align-items:center;justify-content:center;
  width:35px;height:35px;border-radius:10px;background:#e6f6ef;
  color:#23976a;font-weight:800;font-size:19px;
}
.av-cartpop-root .modal-header .close,.av-cartpop-root button.close,
.av-cartpop-root .popup-close,.av-cartpop-root .box-modal_close,.av-cartpop-root .mfp-close {
  border:1px solid #dce8f1!important;border-radius:10px!important;
  width:35px!important;height:35px!important;line-height:1!important;
  background:#fff!important;color:#68849a!important;opacity:1!important;
  box-shadow:none!important;text-shadow:none!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
}
.av-cartpop-root .modal-header .close {position:absolute!important;right:20px!important;top:20px!important;margin:0!important}
.av-cartpop-root .modal-body,.av-cartpop-root .popup-body,.av-cartpop-root .box-modal__body {
  padding:24px 26px!important;background:#fff!important;min-width:0!important;
  color:#567185;font-size:14px;line-height:1.55;
}
/* Ключевое исправление: вместо панели 80/20 — две полноширинные строки. */
.av-cartpop-root .av-cp-layout {
  display:flex!important;flex-flow:column nowrap!important;gap:18px!important;
  width:100%!important;max-width:100%!important;
  margin:0!important;padding:0!important;float:none!important;
  min-width:0!important;height:auto!important;
}
.av-cartpop-root .av-cp-layout > * {
  float:none!important;position:relative!important;left:auto!important;right:auto!important;
  flex:0 0 auto!important;clear:both!important;display:block!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding-left:0!important;padding-right:0!important;
  height:auto!important;box-sizing:border-box!important;
}
.av-cartpop-root .av-cp-layout > .av-cp-product-pane {order:0!important}
.av-cartpop-root .av-cp-layout > .av-cp-actions-pane {
  order:1!important;border-top:1px solid #e6eff5!important;
  padding:18px 0 0!important;
}
/* На случай, когда тема сама задаёт flex-ширины дочерним панелям. */
.av-cartpop-root .av-cp-actions-pane,
.av-cartpop-root .av-cp-product-pane {
  min-width:0!important;max-width:100%!important;
  word-wrap:break-word;overflow-wrap:break-word;
}
.av-cartpop-root .av-cp-actions-pane > * {max-width:100%!important}
.av-cartpop-root .av-cp-product-pane img,
.av-cartpop-root .modal-body img,
.av-cartpop-root .popup-body img {max-width:100%!important;height:auto!important;object-fit:contain}
/* Итог корзины в отдельной полосе под товаром, а не в узком сайдбаре. */
.av-cartpop-root .av-cartpop-summary {
  display:block!important;float:none!important;width:100%!important;
  max-width:100%!important;height:auto!important;
  padding:13px 16px!important;margin:12px 0!important;
  background:#f4f9fe!important;border:1px solid #deebf4!important;
  border-radius:12px!important;color:#355d76!important;
  font-size:14px!important;font-weight:650!important;line-height:1.6!important;
  white-space:normal!important;overflow-wrap:break-word!important;
}
/* Не сжимаем ссылки в колонки и не позволяем обрезать подписи. */
.av-cartpop-root .av-cp-btn,
.av-cartpop-root a.av-cp-btn,
.av-cartpop-root button.av-cp-btn,
.av-cartpop-root input.av-cp-btn {
  display:flex!important;align-items:center!important;justify-content:center!important;
  float:none!important;clear:both!important;position:static!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:48px!important;margin:10px 0 0!important;
  padding:12px 17px!important;border-radius:12px!important;
  line-height:1.45!important;white-space:normal!important;
  word-break:normal!important;overflow-wrap:break-word!important;
  font-size:14px!important;font-weight:700!important;text-align:center!important;
  text-transform:none!important;letter-spacing:normal!important;
  text-decoration:none!important;box-shadow:none!important;
}
.av-cartpop-root .av-cp-btn--primary {
  background:#2381bd!important;color:#fff!important;border:1px solid #2381bd!important;
}
.av-cartpop-root .av-cp-btn--primary:hover {background:#166c9f!important;border-color:#166c9f!important;color:#fff!important}
.av-cartpop-root .av-cp-btn--cart {
  background:#eef7fc!important;border:1px solid #cfe3f0!important;color:#216c98!important;
}
.av-cartpop-root .av-cp-btn--cart:hover {background:#e2f1fa!important;color:#155b83!important}
.av-cartpop-root .av-cp-btn--back {
  background:#fff!important;border:1px solid #d7e6f0!important;color:#457790!important;
}
.av-cartpop-root .av-cp-btn--back:hover {background:#f6fafd!important;color:#265d7e!important}
.av-cartpop-root .av-cp-btn:focus-visible {outline:3px solid #a8d9f5!important;outline-offset:2px}
.av-cartpop-root .modal-footer,.av-cartpop-root .popup-footer,.av-cartpop-root .box-modal__footer,
.av-cartpop-root .av-cp-button-zone {
  padding:18px 26px 22px!important;width:100%!important;min-width:0!important;
  display:flex!important;flex-flow:column nowrap!important;align-items:stretch!important;
  gap:8px!important;background:#fff!important;float:none!important;
}
.av-cartpop-root .av-cp-actions-pane .av-cp-button-zone {padding:0!important;border:0!important}
.av-cartpop-root .av-cp-actions-pane .av-cp-btn {margin:8px 0 0!important}
/* Для нестандартных standalone popup темы. */
.av-cartpop-root.popup-cart,.av-cartpop-root.popup_addtocart,
.av-cartpop-root.popup-addcart,.av-cartpop-root.addcart-popup,.av-cartpop-root.add-to-cart-popup {
  border:1px solid #dce8f1!important;border-radius:20px!important;
  background:#fff!important;box-shadow:0 24px 70px rgba(20,56,83,.19)!important;
  max-width:min(720px,calc(100vw - 24px))!important;
}
@media(max-width:620px) {
  .av-cartpop-root.modal .modal-dialog {width:calc(100% - 20px)!important;margin:12px auto!important}
  .av-cartpop-root .modal-header,.av-cartpop-root .popup-header {padding:17px 58px 17px 18px!important}
  .av-cartpop-root .av-cartpop-title {font-size:18px!important}
  .av-cartpop-root .av-cartpop-title::before {width:31px;height:31px;font-size:17px}
  .av-cartpop-root .modal-header .close {top:15px!important;right:14px!important}
  .av-cartpop-root .modal-body,.av-cartpop-root .popup-body {padding:17px 18px!important}
  .av-cartpop-root .modal-footer,.av-cartpop-root .popup-footer {padding:15px 18px 19px!important}
  .av-cartpop-root .av-cp-layout {gap:12px!important}
  .av-cartpop-root .av-cp-layout > .av-cp-actions-pane {padding-top:13px!important}
}
@media(prefers-reduced-motion:reduce){.av-cartpop-root .av-cp-btn{transition:none!important}}
