@charset "utf-8";

/* === СТИЛИ ДЛЯ СТРАНИЦЫ ЗАКАЗА БИТРИКС === */
/* Полное соответствие HTML-структуре */

/* ===== ОБЩИЕ СТИЛИ (из основного файла) ===== */
*, :before, :after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0;
    border: 0;
}

body {
    font: normal 16px HelveticaNeueCyr, Arial, sans-serif;
    color: #000;
    background: #fff;
}

a, .link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    text-decoration: underline;
}

/* ===== ОСНОВНАЯ ОБЕРТКА ===== */
.bx-soa-wrapper {
    max-width: 1180px;
    margin: 35px auto;
    padding: 0 15px;
}

/* ===== СТРОКИ И КОЛОНКИ БИТРИКС ===== */
.row {
    display: flex;
 
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-lg-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-7 {
    flex: 0 0 58.33333%;

}

.col-md-5 {
    flex: 0 0 41.66667%;
  
}

.col-sm-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-sm {
    flex: 1;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
#bx-soa-main-notifications {
    margin-bottom: 25px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 15px;
    position: relative;
}

.alert-danger {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.alert-success {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.alert-success .icon-success {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #3c763d;
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 15px;
}

.alert-success .icon-success:before {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    left: 7px;
    top: 3px;
}

.alert-success p {
    margin: 0;
    padding: 0;
}

/* ===== СЕКЦИИ БИТРИКС ===== */
.bx-soa-section {
    border: 1px solid #E0DFDD;
    background: #fff;
    margin-bottom: 25px;
}

.bx-soa-section-title-container {
    background: #F1F4F7;
    padding: 15px 20px;
    border-bottom: 1px solid #E0DFDD;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bx-soa-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.bx-soa-section-title-count {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #FFBA4C;
    color: #2f2624;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 13px;
    margin-right: 8px;
}

.bx-soa-editstep {
    color: #FFBA4C;
    font-size: 14px;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.bx-soa-editstep:hover {
    text-decoration: none;
}

.bx-soa-section-content {
    padding: 25px 20px;
}

/* ===== ТОВАРЫ В ЗАКАЗЕ (basket) ===== */
.bx-soa-item-table {
    width: 100%;
}

.bx-soa-item-tr {
    display: table-row;
}

.bx-soa-item-td {
    display: table-cell;
    padding: 15px;
    border-bottom: 1px solid #E0DFDD;
    vertical-align: middle;
}

.bx-soa-item-tr-first .bx-soa-item-td {
    border-top: 1px solid #E0DFDD;
}

.bx-soa-item-block {
    display: flex;
    align-items: center;
}

.bx-soa-item-img-block {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 1px solid #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bx-soa-item-imgcontainer {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.bx-soa-item-content {
    flex: 1;
}

.bx-soa-item-title {
    font-weight: bold;
    color: #333;
}

.bx-soa-item-title a {
    color: #333;
    text-decoration: none;
}

.bx-soa-item-title a:hover {
    color: #FFBA4C;
    text-decoration: underline;
}

.bx-soa-item-properties {
    text-align: right;
}

.bx-price {
    color: #ffba4c;
    font-size: 18px;
    font-weight: bold;
}

.bx-text-right {
    text-align: right;
}

/* ===== ДОСТАВКА (delivery) ===== */
.bx-soa-pp-company-selected {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #F9F9F9;
    border: 1px solid #E0DFDD;
}

.bx-soa-pp-company-selected img {
    max-height: 30px;
    height: 30px !important;
}

.bx-soa-pp-price {
    font-size: 18px;
    font-weight: bold;
    color: #ffba4c;
    text-align: right;
    padding: 15px;
}

/* ===== ОПЛАТА (paysystem) ===== */
.bx-soa-pp-company {
    margin-bottom: 15px;
}

.bx-soa-pp-company-graf-container {
    position: relative;
    border: 2px solid #E0DFDD;
    padding: 15px;
    background: #F9F9F9;
    cursor: pointer;
    transition: all 0.2s;
}

.bx-soa-pp-company-graf-container:hover {
    border-color: #FFBA4C;
    background: #F1F4F7;
}

.bx-soa-pp-company.bx-selected .bx-soa-pp-company-graf-container {
    border-color: #FFBA4C;
    background: #F1F4F7;
    box-shadow: inset 0 0 0 1px #FFBA4C;
}

.bx-soa-pp-company-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #FFBA4C;
}

.bx-soa-pp-company-image {
    height: 40px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}

.bx-soa-pp-company-smalltitle {
    margin-top: 8px;
    font-weight: bold;
    font-size: 15px;
}

/* ===== СВОЙСТВА ЗАКАЗА (properties) ===== */
.form-group {
    margin-bottom: 20px;
}

.bx-soa-custom-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.bx-authform-starrequired {
    color: #FFBA4C;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #D6D6D6;
    font: 14px HelveticaNeueCyr, Arial, sans-serif;
    color: #000;
    background: #fff;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #FFBA4C;
    outline: none;
}

.bx-soa-customer-textarea {
    height: 315px;
    resize: vertical;
    margin-top: 5px;
}

/* ===== МЕСТОПОЛОЖЕНИЕ (location) ===== */
.bx-sls .dropdown-block {
    border: 1px solid #D6D6D6;
    position: relative;
}

.bx-sls .dropdown-field {
    width: 100%;
    padding: 10px 15px;
    border: none;
}

.bx-sls .bx-ui-sls-fake {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
}

.bx-sls .bx-ui-sls-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #999;
    border-radius: 50%;
    cursor: pointer;
}

.bx-sls .bx-ui-sls-clear:before,
.bx-sls .bx-ui-sls-clear:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #fff;
    top: 7px;
    left: 3px;
}

.bx-sls .bx-ui-sls-clear:before {
    transform: rotate(45deg);
}

.bx-sls .bx-ui-sls-clear:after {
    transform: rotate(-45deg);
}

.bx-soa-reference {
    font-size: 13px;
    color: #878787;
    margin-top: 10px;
    padding: 10px;
    background: #F9F9F9;
    border-left: 3px solid #FFBA4C;
}

/* ===== КУПОНЫ ===== */
.bx-soa-coupon {
    margin: 20px 0;
    padding: 15px;
    background: #F9F9F9;
    border: 1px dashed #E0DFDD;
}

.bx-soa-coupon-label {
    font-weight: bold;
    margin-bottom: 10px;
}

.bx-soa-coupon-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #D6D6D6;
}

/* ===== КНОПКИ НАВИГАЦИИ ===== */
.bx-soa-more {
    margin-top: 20px;
}

.bx-soa-more-btn {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn {
    font: 14px HelveticaNeueCyr Roman, Arial, sans-serif;
    text-transform: uppercase;
    height: 40px;
    padding: 0 25px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #FFBA4C;
    color: #2f2624;
}

.btn-primary:hover {
    background: #FFC568;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #FFBA4C;
    color: #2f2624;
}

.btn-outline-secondary:hover {
    background: #FFBA4C;
    color: #2f2624;
}

.btn-lg {
    height: 50px;
    font-size: 16px;
    padding: 0 35px;
}

.pull-right {
    float: right;
}

/* ===== САЙДБАР (bx-soa-total) ===== */
.bx-soa-cart-total {
    background: #F1F4F7;
    border: 1px solid #E0DFDD;
    padding: 25px;
}

.bx-soa-cart-total-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E0DFDD;
}

.bx-soa-cart-total-line:last-of-type {
    border-bottom: none;
}

.bx-soa-cart-total-line-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #FFBA4C;
}

.bx-soa-cart-t {
    color: #333;
}

.bx-soa-cart-d {
    color: #ffba4c;
    font-weight: bold;
}

.bx-soa-cart-total-line-total .bx-soa-cart-d {
    font-size: 28px;
}

.bx-soa-cart-total-button-container {
    margin-top: 20px;
    text-align: center;
}

/* ===== СОГЛАСИЕ НА ОБРАБОТКУ ===== */
.checkbox {
    margin: 25px 0;
}

.main-user-consent-request {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.main-user-consent-request input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #FFBA4C;
}

.main-user-consent-request-announce-link {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
.d-block {
    display: block;
}

.d-sm-none {
    display: none;
}

.d-none {
    display: none;
}

.d-sm-inline-block {
    display: flex;
}

/* ===== УТИЛИТЫ ===== */
.mb-4 {
    margin-bottom: 1.5rem;
}

.pb-0 {
    padding-bottom: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media screen and (max-width: 992px) {
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .d-sm-none {
        display: block;
    }
    
    .d-none.d-sm-inline-block {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .bx-soa-section-title {
        font-size: 16px;
    }
    
    .bx-soa-item-td {
        display: block;
        width: 100%;
        padding: 10px;
        border-bottom: none;
    }
    
    .bx-soa-item-tr {
        display: block;
        border: 1px solid #E0DFDD;
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .bx-soa-item-properties {
        text-align: left;
    }
    
    .bx-text-right {
        text-align: left;
    }
    
    .bx-soa-pp-company-selected {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .bx-soa-wrapper {
        padding: 0 10px;
    }
    
    .bx-soa-section-content {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .pull-right {
        float: none;
    }
    
    .bx-soa-more-btn {
        flex-direction: column;
    }
    
    .bx-soa-cart-total-line-total .bx-soa-cart-d {
        font-size: 22px;
    }
}
.col {
    padding: 10px;
}
.form-check{
    margin: 10px 0px;
}
.bx-soa-pp-desc-container .bx-soa-pp-company{
    border: none !important;
}
/* ===== ОПЛАТА И ДОСТАВКА - ЕДИНАЯ ПЛИТОЧНАЯ СТРУКТУРА ===== */

/* Контейнер для плиток */
.bx-soa-pp-item-container .row,
#bx-soa-delivery .bx-soa-pp-item-container .row,
#bx-soa-paysystem .bx-soa-pp-item-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    gap: 0;
}

/* Карточка-плитка */
.bx-soa-pp-company {
    flex: 0 0 calc(33.333% - 20px);
   
    margin: 0 10px 20px 10px;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

/* Контейнер графики */
.bx-soa-pp-company-graf-container {
    position: relative;
    border: 2px solid #E0DFDD;
    border-radius: 8px;
    padding: 20px 15px 15px;
    background: #F9F9F9;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.bx-soa-pp-company-graf-container:hover {
    border-color: #FFBA4C;
    background: #F1F4F7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Выбранная плитка */
.bx-soa-pp-company.bx-selected .bx-soa-pp-company-graf-container {
    border-color: #FFBA4C;
    background: #F1F4F7;
    box-shadow: inset 0 0 0 1px #FFBA4C, 0 4px 8px rgba(255, 186, 76, 0.2);
}

/* Чекбокс */
.bx-soa-pp-company-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #FFBA4C;
    margin: 0;
    z-index: 2;
}

/* Изображение */
.bx-soa-pp-company-image {
  
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 20px;
}

/* Название */
.bx-soa-pp-company-smalltitle {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    color: #333;
    margin-top: 5px;
    line-height: 1.3;
}

/* Стоимость доставки на плитке */
.bx-soa-pp-delivery-cost {
    font-size: 16px;
    font-weight: bold;
    color: #FFBA4C;
    margin-top: 5px;
    text-align: center;
}

/* Для мобильных устройств - 2 плитки в ряд */
@media screen and (max-width: 768px) {
    .bx-soa-pp-company {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .bx-soa-pp-company {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    
    .bx-soa-pp-company-graf-container {
        min-height: 120px;
        padding: 15px 10px;
    }
    
    .bx-soa-pp-company-image {
        width: 60px;
        height: 60px;
    }
}

/* ===== ОПИСАНИЕ ВЫБРАННОГО СПОСОБА ===== */
.bx-soa-pp-desc-container {
    margin-top: 20px;
    padding: 20px;
    background: #F9F9F9;
    border: 1px solid #E0DFDD;
    border-radius: 8px;
}

.bx-soa-pp-company-subTitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.bx-soa-pp-company-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 15px 0;
}

.bx-soa-pp-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.bx-soa-pp-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #E0DFDD;
}

.bx-soa-pp-list li:last-child {
    border-bottom: none;
}

.bx-soa-pp-list-termin {
    font-weight: bold;
    color: #333;
}

.bx-soa-pp-list-description {
    color: #FFBA4C;
    font-weight: bold;
}

/* Скрываем старые стили */


/* Убираем лишние отступы и рамки */
.bx-soa-pp-company {
    border: none !important;
}
.bx-soa-pp.row{
    display: block;
}
.bx-soa-pp-desc-container .bx-soa-pp-company-logo{
    max-width: none !important;
    max-height: 150px;
}
.bx-soa-pp-company-graf-container{
    padding-top: 0% !important;
}
.bx-soa-pp-desc-container .bx-soa-pp-company,
.bx-soa-section-title-container,
.bx-soa-coupon,
.bx-soa-pp-desc-container,
.bx-soa-pp-company-selected,
.bx-soa-pp-company-graf-container,
.bx-soa-pp-company-graf-container:hover
{
    background: none !important;
}
.bx-soa-item-img-block,
#bx-soa-delivery,
#bx-soa-paysystem,
#bx-soa-region,
.pull-right,
.btn-outline-secondary
{
display: none ;
}
.bx-soa-item-block{
    margin-top: 5px;
}
.bx-soa-customer-field{
    margin-left: 30px;
}
.bx-soa-editstep{
    display: block !important;
}
/* Стили для сообщения о заказе */
#order-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

#order-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#order-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
