    :root {
      --gap: 20px;
      --bg-block: #fff;
      --border-radius: 16px;
      --border-color: #ddd;
    }
    * { box-sizing: border-box; }

    body {
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      background: #f4f4f4;
      color: #333;
      line-height: 1.4;
    }

    h2 { margin-top: 0; }


    .prPage{
      max-width: 1368px;
      margin: 0px auto;
    }
    .checkout-page {
      display: flex;
      gap: var(--gap);
      max-width: 1400px;
/*      margin: 0px auto;*/
      padding: 0 16px;
      margin: 16px auto;
/*      padding: 0 var(--gap);*/
    }

    .checkout-left,
    .checkout-right {
      background: var(--bg-block);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
/*      border: 1px solid var(--border-color);*/
      border-radius: var(--border-radius);
      padding: var(--gap);
    }

    /* Левый блок: форма */
    .checkout-left {
      flex: 1;
    }
    .checkout-left form {
      display: flex;
      flex-direction: column;
      gap: var(--gap);
    }
    .checkout-left label {
      display: flex;
      flex-direction: column;
      font-size: 0.9rem;
    }
    .checkout-left input,
    .checkout-left textarea {
      margin-top: 4px;
      padding: 8px;
      font-size: 1rem;
      border: 1px solid var(--border-color);
      border-radius: 4px;
    }
    .checkout-left textarea { resize: vertical; }
    .btn-submit {
      margin-top: var(--gap);
      padding: 12px;
      background: var(--primary-color);
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 1rem;
      cursor: pointer;
    }
    .btn-submit:hover {
      background: #487cb1;
    }

    /* Правый блок: товары + промокод */
    .checkout-right {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: var(--gap);
      justify-content: space-between;
    }

    .order-items .item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.order-items .item:last-child {
  margin-bottom: 0;
}

/* мини-превью */
.order-items .thumb {
  flex: 0 0 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
}

.order-items .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-items .info .name {
  font-size: 0.95rem;
}

.order-items .info .price {
  font-weight: 600;
}

/* сам контейнер thumb остаётся 64×64px */
.order-items .item.total .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none; /* убрать фон */
}

/* иконка через маску */
.order-items .icon-total {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color, #00cd72);
  /* путь к вашему SVG-файлу */
  mask: url("../icons/total.svg") no-repeat center / contain;
  -webkit-mask: url("../icons/total.svg") no-repeat center / contain;
}
/* обёртка всей колонки */
.order-items { position: relative; }

/* общий вид строки товара */
.order-items .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

/* удаляющая кнопка */
.order-items .delete-btn {
  position: absolute;
  top: 8px;
  right: 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: color .2s;
}
.order-items .delete-btn:hover {
  color: #e2001a;
}

/* поле количества */
.order-items .quantity {
  display: flex;
  align-items: center;
  gap: 4px;
}
.order-items .qty-minus,
.order-items .qty-plus {
  width: 22px;
  height: 22px;
  border: 1px solid #ccc;
  background: none;
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.order-items .qty-input {
  width: 35px;
  height: 22px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* цена и наименование остаются как есть; счётчик total */
.order-items .item.total .delete-btn,
.order-items .item.total .quantity {
  display: none;
}
/* Firefox */
.qty-input[type=number] {
  -moz-appearance: textfield;
}

/* Chrome, Edge, Safari */
.qty-input[type=number]::-webkit-outer-spin-button,
.qty-input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.promo-input-wrap {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
#promoCode:disabled,
#applyPromo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

    .order-items,
    .promo-code {
      background: var(--bg-block);
      border: 1px solid var(--border-color);
      border-radius: var(--border-radius);
      padding: var(--gap);
    }

    .order-items h2,
    .promo-code h2 {
      margin: 0 0 var(--gap) 0;
      font-size: 1.2rem;
    }


    .order-items .item:last-child {
      margin-bottom: 0;
    }
    .order-items .total {
      font-weight: bold;
      margin-top: var(--gap);
      border-top: 1px solid var(--border-color);
      padding-top: var(--gap);
    }

    .promo-code input {
      width: 100%;
      padding: 8px;
      font-size: 1rem;
      border: 1px solid var(--border-color);
      border-radius: 4px;
      margin-bottom: 8px;
    }
    .promo-code button {
      padding: 10px;
      background: var(--primary-color);
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    .promo-code button:hover {
      background: #487cb1;
    }
    /* === Адаптив: мобилка ≤767px === */
    @media (max-width: 767px) {
      .checkout-page {
        flex-direction: column;
      }

      
    /* Применить ко всем .item, кроме .total */
    .order-items .item:not(.total) .info {
/*      display: block;*/
    }
      /* задаём порядок: 1) товары, 2) форма, 3) промокод */
      .order-items { order: 2; }
      .checkout-left { order: 0; }
      .promo-code  { order: 3; }
    }
.order-items .item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:8px;
  font-size:0.95rem;
  width:100%;
  min-width:0;
}

.order-items .info{
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:hidden;
}

.price-and-count{
  display:flex;
  justify-content:space-between;
  flex-direction:row-reverse;
  align-items:center;
  gap:10px;
  width:100%;
}

.cart-package{
  margin-top:10px;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}

.cart-package-title{
  font-size:12px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:6px;
}

.cart-package-list{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  width:100%;
  max-width:100%;
  min-width:0;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
}

.cart-package-item{
  flex:0 0 170px;
  width:170px;
  min-width:170px;
  max-width:170px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#f6f8fb;
  border-radius:12px;
  padding:8px;
  box-sizing:border-box;
}

.cart-package-thumb{
  flex:0 0 auto;
}

.cart-package-thumb img{
  width:42px;
  height:42px;
  border-radius:8px;
  object-fit:cover;
  display:block;
}

.cart-package-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.cart-package-name{
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  color:#0f172a;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.cart-package-qty{
  align-self:flex-start;
  font-size:10px;
  font-weight:800;
  background:var(--primary-color);
  color:#fff;
  padding:2px 7px;
  border-radius:999px;
}
