.btk_price_table {
    width: 100%;
    margin-bottom: 26px;
    font-family: 'Noto Sans',Arial,sans-serif;
}
.btk_price_table tr.header_tr td, .btk_price_table thead tr td {
    font-weight: 700;
    background-color: #ffbf2d;
    border: 1px solid #999999;
    padding: 7px 0;
    vertical-align: middle;
    line-height: 25px;
    color: #455963;
}
.btk_price_table tr td {
    text-align: center;
    font-size: 15px;
    color: #333333;
}
.btk_price_table tbody tr.tr_1 td {
    background-color: #e6ebee;
    border: 1px solid #999999;
    padding: 14px 0;
    vertical-align: middle;
    line-height: 15px;
}
.btk_price_table tbody tr.tr_2 td {
    background-color: #dedbd7;
    border: 1px solid #999999;
    padding: 14px 0;
    vertical-align: middle;
    line-height: 15px;
}
.btk_price_table tr.tr_1:hover td,.btk_price_table tr.tr_2:hover td, .btk_price_table tr.tr_1.active td,.btk_price_table tr.tr_2.active td { 
	background-color: #4a6b76;
	color: #fff; 
}
/* 1. ОСНОВНОЙ КОНТЕЙНЕР */
.strop-calc-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #f9f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    font-family: Arial, sans-serif, 'Helvetica Neue';
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px; 
}

.strop-calc-title {
    width: 100%;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
}

.strop-calc-row {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 130px;
}

.strop-calc-row label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

.strop-calc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    height: 42px;
    transition: border-color 0.3s;
    background-color: #fff;
}

.strop-calc-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.checkbox-row {
    flex-direction: row;
    align-items: center;
    flex: 0 1 auto;
    height: 42px;
}

.checkbox-row label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.checkbox-row input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 2. НОВЫЙ БЛОК: ИТОГ + КНОПКА ЗАКАЗА */
.strop-calc-footer {
    margin-left: auto; /* Толкает блок вправо на ПК */
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
}

.strop-calc-result {
    padding: 0 20px;
    background-color: #e8f4fd;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #2980b9;
    border: 1px solid #bfe0f9;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
}

#sc-total-price {
    font-size: 1.3rem;
    color: #e74c3c;
    margin-left: 8px;
}

/* Стили кнопки */
.strop-calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 24px;
    background-color: #ff8562; /* Фирменный оранжевый Tilda (можно заменить) */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background-color 0.3s;
    box-sizing: border-box;
    cursor: pointer;
}

.strop-calc-btn:hover {
    background-color: #e66a46;
}

/* =========================================================
   3. АДАПТАЦИЯ ПОД TILDA (ПЛАНШЕТЫ И ТЕЛЕФОНЫ)
   ========================================================= */

@media screen and (max-width: 980px) {
    .strop-calc-wrapper {
        gap: 15px 10px; 
    }
    .strop-calc-row {
        flex: 1 1 30%; 
    }
    .strop-calc-footer {
        flex: 1 1 100%; 
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-end; /* На планшете выравниваем вправо */
    }
}

@media screen and (max-width: 640px) {
    .strop-calc-wrapper {
        flex-direction: column; 
        align-items: stretch;   
        padding: 15px;
        gap: 12px; 
    }
    .strop-calc-row {
        flex: 1 1 100%;
        width: 100%;
    }
    .checkbox-row {
        height: auto; 
    }
    .checkbox-row label {
        white-space: normal; 
        line-height: 1.4;
    }
    /* Растягиваем кнопку и цену на телефоне друг под другом */
    .strop-calc-footer {
        flex-direction: column;
        height: auto;
        gap: 10px;
        margin-top: 5px;
    }
    .strop-calc-result, .strop-calc-btn {
        width: 100%;
        height: 50px; /* Делаем элементы крупнее для пальцев */
        justify-content: center;
    }
    #sc-total-price {
        font-size: 1.4rem;
    }
    .strop-calc-btn {
        font-size: 1.1rem;
    }
}
