.checkout {
    max-width: 1660px;
    margin: 0 auto;
    padding: 0 60px;
}

.checkout__breadcrumbs {
    font-size: 12px;
    color: var(--color-text-gray);
    margin-top: 15px;
    margin-bottom: 40px;
}

.checkout__breadcrumbs a {
    color: var(--color-text-gray);
    transition: color 0.3s;
}

.checkout__breadcrumbs a:hover {
    color: var(--color-primary);
}

.checkout__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--color-text);
}

.checkout__container {
    display: grid;
    grid-template-columns: minmax(auto, 750px) 480px;
    gap: 40px;
}

/* Левая колонка */
.checkout__left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.checkout__section {
    background: var(--color-white);
}

.checkout__section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--color-text);
}

.checkout__section-subtitle {
    font-size: 15px;
    color: var(--color-text-text);
    margin-bottom: 20px;
}

.checkout__map-button {
    max-width: 600px;
    width: 100%;
    padding: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout__map-button:hover {
    background: #D02C00;
}

/* Состав заказа */
.checkout__products-count {
    font-size: 15px;
    color: var(--color-text-text);
    margin-bottom: 20px;
}

.checkout__products {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.checkout__product {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout__product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.checkout__specs-row {
    font-size: 14px;
}

.checkout__specs-label {
    font-size: 15px;
    color: var(--color-text-gray);
    display: block;
}

.checkout__specs-value {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-bottom: 20px;
}

.checkout__specs-value--total {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0;
}

/* Форма получателя */
.checkout__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.checkout__form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
	max-width: 600px;
}

.checkout__label {
    font-size: 12px;
    font-weight: normal;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout__input {
	width: 100%;
    padding: 12px 16px;
    border: 1px solid #D6D6D6;
    background: #FBFBFB;
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.3s;
}

.checkout__field textarea {
	resize: vertical;
}

.checkout__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
}

.checkout__input::placeholder {
    color: #BDBDBD;
}

/* Способ оплаты */
.checkout__payment {
    display: flex;
    gap: 45px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.checkout__payment-option {
    position: relative;
    display: flex;
    align-items: start;
    gap: 15px;
}

.checkout__payment-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #949494;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    background: white;
}

.checkout__payment-option input[type="radio"]:checked {
    border-color: #2A2A2A;
    background-image: url('images/check.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.checkout__payment-content {
    width: 86px;
    height: 50px;
    border: 1px solid #949494;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.checkout__payment-option input[type="radio"]:checked + .checkout__payment-content {
    border-color: var(--color-text);
}

.checkout__payment-option--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.checkout__payment-option--disabled input[type="radio"] {
    border-color: #BDBDBD;
}

.checkout__payment-option--disabled .checkout__payment-content {
    border-color: #E0E0E0;
    color: #BDBDBD;
}

.checkout__payment-text {
    font-size: 10px;
    text-align: center;
    color: var(--color-text);
    line-height: 1.4;
}

.checkout__payment-option--disabled .checkout__payment-text {
    color: #BDBDBD;
}

.checkout__payment-content img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

/* Таймер подтверждения заказа */
.checkout__timer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 26px;
    border: 1.5px solid var(--color-primary);
    border-radius: 10px;
    max-width: 482px;
}

.checkout__timer img {
    flex-shrink: 0;
    margin-top: 2px;
    width: 30px;
    height: 30px;
}

.checkout__timer span {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}

/* Правая колонка - Сводка заказа */
.checkout__right {
    position: sticky;
    top: 250px;
    height: fit-content;
}

.checkout__summary {
    background: var(--color-white);
    border: 1px solid #949494;
    border-radius: 10px;
    padding: 35px;
}

.checkout__summary-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--color-text);
}

.checkout__summary-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.checkout__summary-row::after {
    content: '';
    width: 100%;
    position: absolute;
    top: 15px;
    border-bottom: 1px dashed #949494;
    z-index: 1;
}

.checkout__summary-label {
    position: relative;
    color: var(--color-text);
    white-space: nowrap;
    background: var(--color-white);
    z-index: 2;
}

.checkout__summary-value {
    position: relative;
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
    background: var(--color-white);
    z-index: 2;
}

.checkout__summary-divider {
    height: 1px;
    background: #D4D4D4;
    margin: 20px 0;
}

.checkout__summary-discount-note {
    font-size: 12px;
    color: var(--color-text-gray);
    background: #eef6ed;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.checkout__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.checkout__summary-total-label {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.checkout__summary-total-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.checkout__submit {
     text-transform: uppercase;
    width: 100%;
    padding: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.checkout__submit:hover {
    background: #D02C00;
}

/* Подтверждение согласия */
.checkout__confirmation span {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
}

.checkout__confirmation a {
    color: var(--color-text);
    text-decoration: underline;
}

.checkout__confirmation a:hover {
    color: var(--color-primary);
}

/* Попап состава заказа */
.order-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-popup.active {
    display: flex;
}

.order-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.order-popup__content {
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 70vh;
    background: var(--color-white);
    border-radius: 10px;
    padding: 30px 35px;
    overflow-y: auto;
    z-index: 1001;
}

.order-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.order-popup__close:hover {
    opacity: 0.7;
}

.order-popup__close img {
    width: 15px;
    height: 15px;
}

.order-popup__title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text);
}

.order-popup__title-accent {
    color: var(--color-primary);
}

.order-popup__items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.order-popup__item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 55px;
    align-items: center;
    padding: 10px 30px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
}

.order-popup__item--waiting {
    background: #EEEEEE;
}

.order-popup__item-left {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.order-popup__item-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    /* margin-bottom: 8px; */
}

.order-popup__item-status--available {
    color: #58A848;
}

.order-popup__item-status--available img {
    width: 14px;
    height: 14px;
}

.order-popup__item-status--waiting {
    color: var(--color-primary);
}

.order-popup__item-status--waiting img {
    width: 14px;
    height: 14px;
}

.order-popup__item-image {
    width: 120px;
    max-width: 120px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-popup__item-image img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.order-popup__item-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: center;
}

.order-popup__item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-popup__item-row--top {
    justify-content: flex-start;
    gap: 50px;
}

.order-popup__item-sku {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-gray);
}

.order-popup__item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.order-popup__item-quantity {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-gray);
}

.order-popup__item-weight {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.order-popup__item-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.order-popup__divider {
    height: 1px;
    background: var(--color-primary);
    margin: 25px 0;
}

.order-popup__button {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: block;
    padding: 15px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #D6D6D6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.order-popup__button:hover {
    border-color: var(--color-text);
}

.checkout__product {
    cursor: pointer;
    transition: opacity 0.3s;
}

.checkout__product:hover {
    opacity: 0.7;
}

/* Переопределяем стили для блоков доставки и оплаты Битрикс */
.bx-soa-pp.row {
	max-width: 600px;
}

/* Скрываем чекбокс и стоимость (+0 руб) у доставки */
.bx-soa-pp-item-container .bx-soa-pp-company-graf-container {
    display: none;
}

/* Скрываем блок с дублированием названия у оплаты */
#bx-soa-paysystem .bx-soa-pp-desc-container {
    display: none;
}

/* Способы оплаты и доставки — полная ширина, в столбик */
.bx-soa-pp-item-container.checkout__payment {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 0;
}

/* Каждый вариант — строка с border */
.bx-soa-pp-item-container .checkout__payment-option {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 15px 20px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    background: #fff !important;
    gap: 12px !important;
}

.bx-soa-pp-item-container .checkout__payment-option.bx-selected {
    border-color: #2A2A2A !important;
    border-width: 2px !important;
}

/* Скрываем чекбокс внутри опции оплаты */
.bx-soa-pp-item-container .checkout__radio {
    display: none !important;
}

/* Лейбл на всю ширину */
.bx-soa-pp-item-container .checkout__payment-content {
    width: 100% !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.bx-soa-pp-item-container .checkout__payment-text {
    font-size: 15px !important;
    color: #2A2A2A !important;
    text-align: left !important;
}

/* Контейнер списка способов оплаты/доставки на всю ширину */
.bx-soa-pp-item-container {
    width: 100% !important;
    max-width: 600px !important;
    flex: 0 0 100% !important;
}

/* Для блока оплаты отдельно */
.bx-soa-section.bx-active {
	width: 100%;
}

#bx-soa-paysystem .bx-soa-pp-item-container {
    width: 100% !important;
    max-width: 600px !important;
}

/* Чтобы каждая опция точно растягивалась */
#bx-soa-paysystem .checkout__payment-option {
    width: 100% !important;
}

/* Чтобы текстовый label не схлопывался */
#bx-soa-paysystem .checkout__payment-content {
    display: flex !important;
    width: 100% !important;
    flex: 1 1 auto !important;
}

/* Адаптив */
@media (max-width: 1440px) {
	.checkout {
		padding: 0 20px;
	}
}

@media (max-width: 1024px) {
    .checkout {
        padding: 0 10px 40px;
    }

    .checkout__container {
        grid-template-columns: 1fr;
    }

    .checkout__right {
        position: static;
    }
}

@media (max-width: 768px) {
	.bx-soa-pp-item-container.checkout__payment {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: unset !important;
	}

    .checkout {
        padding: 0 10px 20px;
    }

    .checkout__title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .checkout__container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout__section-title {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .checkout__section-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .checkout__map-button {
        font-size: 12px;
        padding: 12px;
    }

    .checkout__products-count {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .checkout__products {
        gap: 10px;
        margin-bottom: 20px;
    }

    .checkout__product {
        width: 80px;
        height: 80px;
    }

    .checkout__label {
        font-size: 10px;
    }

    .checkout__specs-label {
        font-size: 10px;
    }

    .checkout__specs-value {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .checkout__input {
        font-size: 12px;
    }

    .checkout__payment {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .checkout__payment-option {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .checkout__payment-option input[type="radio"] {
        width: 20px;
        height: 20px;
    }

    .checkout__payment-option input[type="radio"]:checked::after {
        top: 2px;
        left: 6px;
        width: 5px;
        height: 10px;
    }

    .checkout__payment-content {
        width: 86px;
        height: 50px;
    }

    .checkout__payment-text {
        font-size: 10px;
    }

    .checkout__timer {
        padding: 12px;
        margin-bottom: 16px;
    }

    .checkout__timer img {
        width: 24px;
        height: 24px;
    }

    .checkout__timer span {
        font-size: 10px;
    }

    .checkout__summary {
        padding: 20px 16px;
    }

    .checkout__summary-title {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .checkout__summary-row {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .checkout__summary-row::after {
        top: 12px
    }

    .checkout__summary-discount-note {
        font-size: 8px;
        margin-bottom: 6px;
    }

    .checkout__summary-divider {
        margin: 12px 0;
    }

    .checkout__summary-total {
        margin-bottom: 15px;
    }

    .checkout__summary-total-label {
        font-size: 15px;
    }

    .checkout__summary-total-value {
        font-size: 15px;
    }

    .checkout__submit {
        font-size: 12px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .checkout__confirmation span {
        font-size: 10px;
    }

    .order-popup__content {
        padding: 30px 15px;
    }

    .order-popup__close {
        top: 15px;
        right: 15px;
        width: 15px;
        height: 15px;
    }

    .order-popup__close img {
        width: 15px;
        height: 15px;
    }

    .order-popup__title {
        font-size: 12px;
        margin-bottom: 15px;
        padding-right: 35px;
    }

    .order-popup__items {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .order-popup__item {
        grid-template-columns: auto 1fr;
        gap: 15px;
        padding: 10px;
    }

    .order-popup__item-status {
        font-size: 10px;
    }

    .order-popup__item-status img {
        width: 10px;
        height: 10px;
    }

    .order-popup__item-left {
        gap: 5px;
    }

    .order-popup__item-image {
        width: 60px;
        max-width: 60px;
    }

    .order-popup__item-image img {
        max-height: 60px;
    }

    .order-popup__item-quantity {
        font-size: 10px;
    }

    .order-popup__item-info {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 15px;
        row-gap: 8px;
    }

    .order-popup__item-row {
        display: contents;
    }

    .order-popup__item-row--top {
        display: contents;
    }

    .order-popup__item-sku {
        font-size: 10px;
        grid-column: 1;
        grid-row: 1;
    }

    .order-popup__item-weight {
        font-size: 10px;
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .order-popup__item-name {
        font-size: 12px;
        grid-column: 1;
        grid-row: 2;
    }

    .order-popup__item-price {
        font-size: 12px;
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .order-popup__divider {
        margin: 10px 0;
    }

    .order-popup__button {
        font-size: 12px;
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .order-popup__content {
        padding: 20px 10px;
    }

    .order-popup__items {
        gap: 10px;
        margin-bottom: 20px;
    }

    .order-popup__item {
        gap: 10px;
        padding: 10px;
    }

    .order-popup__item-left {
        gap: 4px;
    }

    .order-popup__item-info {
        column-gap: 10px;
        row-gap: 6px;
    }

    .order-popup__button {
        font-size: 11px;
        padding: 12px;
    }
}



.radio-inline>label{
    display: flex;
    gap: 10px;
}

/*product*/
.bx-soa-item-table {
    margin-bottom: 10px;
    min-width: 100%;
    display: table;
}
.product {
    justify-content: space-between;
    height: 180px;
    display: flex;
    gap: 12px;
    padding: 11px;
    border-bottom: 1px solid #E7E7E7;
}
.product__info-wrapper {
    display: flex;
    flex: 1;
}
.product__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    justify-content: space-between;
}
.title-price-wrapper {
    margin-bottom: 10px;
}

.product__counter {
  width: 150px;
  max-width: 280px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ECECEC;
  border-radius: 5px;
  overflow: hidden;
}
.product__counter-btn {
    background: none;
    border: none;
    cursor: pointer;
}
.product__counter-btn {
    background: none;
    border: none;
    cursor: pointer;
}
.product__photo {
    order: -1;
    flex: 0 0 20%;
    aspect-ratio: 0.75;
}
#bx-soa-basket{
        max-height: 350px; 
    overflow-y: auto;
    scrollbar-width: thin;
}
.product__delete {
        height: 100%;
    color: #AAAAAA;
    font-size: 14px;
    font-weight: 300;
    align-self: flex-end;
    cursor: pointer;
}
.product__delete>div{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product__counter-btn--minus{
    height: 100%;
  aspect-ratio: 1;
  color: #FFFFFF;
  background: #D9D9D9;
  border-radius: 5px;
  transition: all .3s;
}
.product__counter-btn--minus.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.product__counter-btn--plus {
  height: 100%;
  aspect-ratio: 1;
  color: #FFFFFF;
  background: #F23300;
  border-radius: 5px;
  transition: all .3s;
}
.cart-item__block-title {
    margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.5;
}
/*coupon*/
.checkout__total-coupon {
    height: 50px;
    position: relative;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all .3s ease-in-out;
}
.checkout__coupon-input {
    width: 100%;
    height: 100%;
    font-size: 14px;
   background: #FBFBFB;
    border: 1px solid #E7E7E7;
    padding: 20px;
    box-sizing: border-box;
    outline: none;
    transition: all .4s ease;
}
.checkout__total-coupon button {
    height: 100%;
    aspect-ratio: 1;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    overflow: hidden;
}
.checkout__summary-total>.checkout__summary-label,.checkout__summary-total>.checkout__summary-value{
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
} 
.main-user-consent-request-announce-link{
        font-size: 12px;
}

.card__badge {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #F23300;
    border-radius: 5px;
    padding: 10px;
}

.delivery__badge {
    height: 30px;
    
    align-items: center;
    gap: 3px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #F23300;
    border-radius: 5px;
    padding: 4px;
}

.bx-soa-item-title> .product__title{
    font-size: 16px;
}