/* ===== toast («Ссылка скопирована») ===== */
.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  padding: 12px 20px;
  border-radius: 12px;
  background: #4F467C;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}
.shop-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== пустая корзина (Figma: 229-7191) ===== */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 40px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 20, 56, .06);
  text-align: center;
}
.cart-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #F9EDEF;
  color: #4F467C;
}
.cart-empty__icon svg { width: 22px; height: 22px; }
.cart-empty__title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: #12102B;
}
.cart-empty__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #3D3A52;
}

/* ссылки внутри карточки товара в корзине не должны менять вид */
.cart-item__image a { display: block; }
.cart-item__title a { color: inherit; text-decoration: none; }
.js-cart-remove { display: flex; margin: 0; }

/* ===== оформление заказа ===== */
.checkout-form__contact { display: flex; flex-direction: column; gap: 16px; }
.checkout-card__hint { margin: -4px 0 16px; font-size: 14px; line-height: 1.5; color: #3D3A52; }
.form-alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #FDECEC;
  color: #A32121;
  font-size: 14px;
  line-height: 1.4;
}
.form-field__error { display: block; margin-top: 4px; font-size: 12px; color: #A32121; }
.checkout-summary__cta:disabled { opacity: .7; cursor: default; }

/* ===== «Оплата прошла успешно» (Figma: 229-6179) ===== */
.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 64px;
}
.order-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #E9E5F5;
  color: #4F467C;
}
.order-success__icon svg { width: 30px; height: 30px; }
.order-success__title { margin: 0 0 8px; font-size: 28px; font-weight: 600; line-height: 1.3; color: #12102B; }
.order-success__text { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: #3D3A52; }
.order-success__note { max-width: 514px; margin: -8px 0 24px; font-size: 14px; line-height: 1.5; color: #4F467C; }
.order-success__card {
  width: 100%;
  max-width: 514px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 20, 56, .06);
  text-align: left;
}
.order-success__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ECEBF2;
}
.order-success__number { margin: 0; font-size: 18px; font-weight: 500; color: #12102B; }
.order-success__date { font-size: 14px; color: #6B6880; white-space: nowrap; }
.order-success__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #ECEBF2;
}
.order-success__item { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.order-success__item-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.order-success__item-title { margin: 0; font-size: 14px; line-height: 1.4; color: #12102B; }
.order-success__item-price { font-size: 16px; font-weight: 500; color: #12102B; }
.order-success__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 16px;
  color: #12102B;
}
.order-success__total-value { font-size: 24px; font-weight: 600; }
.order-success__cta {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  background: #4F467C;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.order-success__cta:hover { background: #433B6B; }

/* ===== промокод и старая сумма (корзина + оформление) ===== */
[data-promo] [hidden], .total-amount [hidden] { display: none !important; }
.total-amount { display: flex; align-items: baseline; gap: 10px; }
.total-old {
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: var(--color-text-60);
  text-decoration: line-through;
}
.promo-applied { gap: 8px; padding: 8px 10px; font-size: 14px; }
.promo-applied svg { width: 16px; height: 16px; }
.promo-applied b { font-weight: var(--fw-semibold); letter-spacing: .02em; }
.promo-remove {
  margin-left: 4px;
  padding: 0 2px;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: .7;
  cursor: pointer;
}
.promo-remove:hover { opacity: 1; }
.promo-apply:disabled { opacity: .7; cursor: default; }
[data-promo-error] { margin: 0; font-size: 13px; }
