/* ==== Корзина как скролл-контейнер на всю высоту ==== */
#basket{
  position: fixed;
  top: 0;
  right: calc(-640px + 220 * ((100vw - 320px) / (1860 - 320)));
  width: calc(100% - 82 * ((100vw - 320px) / (1860 - 320)));
  height: 100vh;
  overflow-y: auto;                 /* важно для sticky в футере */
  transition: right .2s ease-in-out;
  background: #fff;
  display: flex;                    /* колонка для внутреннего layout */
  flex-direction: column;
  will-change: right;               /* плавность при открытии */
}
#basket.show{ right: 0; }
#basket-close, #basket-button{ cursor: pointer; }

/* Elementor-вставка или общий обёртка шорткода — растянуть на 100% */
#basket .elementor-shortcode,
.wcmc-cart-combined{
  flex: 1 1 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ====== Блок заказа (правая панель) ====== */
.wcmc-order-box{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex: 1 1 auto;
}
.wcmc-order-box__content{ flex: 1 1 auto; }  /* контент растягиваем */
.basket-items{ flex: 1 1 auto; }             /* если используешь список позиций */

/* ====== Минимальная сумма (хинт) ====== */
.wcmc-order-box .wcmc-order-box__hint--min{
  background-color: #fdf8e9;
  margin: 28px 0 12px;
  padding: 12px 12px 12px 64px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  width: 100%;
  position: relative;
}
.wcmc-order-box .wcmc-order-box__hint--min .wcmc-min-progress{
  position: absolute;
  top: 12px;
  left: 12px;
  border: 3px solid #1C1C1C0D;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wcmc-order-box .wcmc-order-box__hint--min .wcmc-min-progress .wcmc-min-progress__img{
  width: 28px;
  max-width: 28px;
  height: 28px;
}
.wcmc-order-box .wcmc-order-box__hint--min .wcmc-min-progress svg{
  position: absolute;
}
.wcmc-order-box .wcmc-order-box__hint--min .wcmc-min-text-box{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: 12px;               /* оставляем один раз */
  min-height: 54px;
}
.wcmc-order-box .wcmc-order-box__hint--min .wcmc-min-text-box .wcmc-min-text__more{
  font-size: 14px;
  font-weight: 600;
}
.wcmc-order-box .wcmc-order-box__hint--min .wcmc-min-text-box .wcmc-min__text{
  font-size: 13px;
  font-weight: 600;
}

/* ====== Контролы ====== */
.wcmc-order-box__controls .wcmc-order-box__row{
  background-color: #f2f2f2;
  border-radius: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  padding: 16px;
  cursor: pointer;
}
.wcmc-order-box__controls .wcmc-order-box__row:hover{
  background-color: #f2f2f2;
}
.wcmc-order-box__controls .wcmc-order-box__row .wcmc-order-box__row__icon-block{
  width: 60%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}
.wcmc-order-box__controls .wcmc-order-box__row .wcmc-order-box__row__icon-block img,
.wcmc-order-box__controls .wcmc-order-box__row .wcmc-order-box__row__icon-block span{
  display: flex;
}
.wcmc-order-box__controls .wcmc-order-box__row .wcmc-order-box__row__icon-block span{
  font-size: 17px;
  font-weight: 500;
  color: #1c1c1c;
  font-family: 'Inter', sans-serif;
}
.wcmc-order-box__row__icon-block{ display: flex; align-items: center; }
.wcmc-order-box__row__counter-block{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  width: 40%;
}
.wcmc-order-box__row__counter-block .counter-block__button{
  color: #1c1c1c;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  width: 32px;
  height: 32px;
  background-color: transparent;
  padding: 0;
}
.wcmc-order-box__row__counter-block .counter-block__button:hover{
  transform: scale(0.9);
  color: #5c5c5c;
}
.wcmc-comment-trigger .wcmc-order-box__row__icon-block,
.wcmc-promocode-trigger .wcmc-order-box__row__icon-block{
  width: 100% !important;
}
.wcmc-order-box__row__icon-block .icon-block__content {
  display: flex;
  align-items: center;
  width: 90%;
  gap: 20px;
}
.wcmc-order-box__row__icon-block .icon-block__content .fa-solid{
  color: #000;
  font-size: 24px;
}

/* ====== Summary ====== */
.wcmc-order-box__summary{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;    
  margin-top: 28px;
}
.wcmc-order-box__summary .wcmc-order-box__line{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.wcmc-order-box__summary .wcmc-order-box__line .wcmc-order-box__line--value{ font-weight: 700; }
.wcmc-order-box__summary .wcmc-order-box__line .wcmc-order-box__line--title,
.wcmc-order-box__summary .wcmc-order-box__line .wcmc-order-box__line--value{
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* ====== Кнопка и «приклейка» футера ====== */
.wcmc-order-box__pay{
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
}

.wcmc-order-box__pay:disabled{
    background-color: #c7c7c7;
    cursor: no-drop;
}

.wcmc-order-box__footer{
  border-top: 1px solid #E8E8E8;
  position: sticky;                         /* приклейка к низу видимой области */
  bottom: 0;
  background: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 10;                              /* над контентом */
}
.wcmc-order-box--empty .wcmc-order-box__controls, .wcmc-order-box--empty .wcmc-order-box__summary { display: none; }
