.checkout {
  padding: 28px 0 60px;
  background: #f8f7fb;
}

.checkout__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.checkout__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #231638;
}

.checkout__subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

/* табы */

.delivery-tabs {
  display: inline-flex;
  background: #f2edf9;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
}

.delivery-tabs__btn {
  border: none;
  background: transparent;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 13px;
  color: #6a6280;
  cursor: pointer;
}

.delivery-tabs__btn--active {
  background: #ffffff;
  color: #4a257f;
  font-weight: 600;
}

/* две колонки */

.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
}

/* левая */

.checkout-left {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
}

.checkout-block {
  margin-bottom: 18px;
}

.checkout-block__title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.checkout-block__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.checkout-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #eee7fb;
  background: #faf8ff;
  font-size: 13px;
}

.delivery-cost {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #4b1f86;
  color: #ffffff;
  font-size: 12px;
  cursor: default;
}

.delivery-cost span {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}

/* правый блок */

.checkout-summary {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.summary-row--total span:last-child {
  font-weight: 700;
}

.summary-btn {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: #ffba1a;
  color: #3b2500;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.summary-note {
  margin-top: 8px;
  font-size: 11px;
  color: #8b8399;
}

/* панели доставки/самовывоза */

.delivery-panel {
  display: none;
}

.delivery-panel--active {
  display: block;
}

/* адаптив */

@media (max-width: 900px) {
  .checkout__grid {
    grid-template-columns: 1fr;
  }
}
.pickup {
  margin-top: 18px;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
}

.pickup__title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.pickup__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

/* список складов */

.pickup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pickup-item {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  border: none;
  background: #f7f4fb;
  padding: 12px 14px;
  cursor: pointer;
}

.pickup-item__name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pickup-item__addr {
  font-size: 12px;
  color: #8b8399;
}

/* активный склад */

.pickup-item--active {
  background: #4b1f86;
  color: #ffffff;
}

.pickup-item--active .pickup-item__addr {
  color: #e6ddff;
}

/* карта */

.pickup-map {
  border-radius: 10px;
  overflow: hidden;
  background: #ededed;
  min-height: 220px;
  position: relative;
}

.pickup-map__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.pickup-map__img--active {
  display: block;
}

/* адаптив */

@media (max-width: 900px) {
  .pickup__grid {
    grid-template-columns: 1fr;
  }
}
.recipient {
  padding: 20px 0 40px;
  background: #f8f7fb;
}

.recipient__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.recipient__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.recipient-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
}

.recipient-card__title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* форма */

.recipient-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.recipient-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #eee7fb;
  background: #faf8ff;
  font-size: 13px;
}

.recipient-textarea {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #eee7fb;
  background: #faf8ff;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
}

/* чекбоксы */

.recipient-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.recipient-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b8399;
}

.recipient-check input {
  width: 14px;
  height: 14px;
}

.recipient-check a {
  color: #6e2fd4;
  text-decoration: underline;
}

/* нижний текст */

.recipient-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #b0a8bd;
}

/* адаптив */

@media (max-width: 900px) {
  .recipient-form__row {
    grid-template-columns: 1fr;
  }
}
