#load_step {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Всплывающее сообщение */
#globalMessageBox {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 99999;
    color: #f42c2c;
    background: #ffffffd9;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 1px 1px 56px #000000a3;
}

.cont_none_info {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}
.cont_none_info h4{}
.cont_none_info a{}

/* Класс для показа */
#globalMessageBox.show {
    opacity: 1;
}

/* Варианты типа сообщения */
#globalMessageBox.success {
    background: #2e7d32; /* зеленое */
}

#globalMessageBox.warning {
    background: #f57c00; /* оранжевое */
}



/* Добавляем в <style> или в отдельный CSS-файл */
#rez_order {
    /* border: 1px solid #333; */
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    font-size: 8px;
    white-space: pre-wrap;
    overflow-x: auto;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    height: 150px;
}


#dhl_info{}
#dhl_info p {
    width: 100%;
    text-align: right;
    font-size: 11px;
    color: #4a85ef;
}
#dhl_info p b{
    color: #000;
}


/* Контейнер корзины */
#cartContainer {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка товара */
.cart-row {
    position: relative;
    
    border-radius: 10px;
    padding: 10px 12px 12px;
    background: #eff6ff;
    background: linear-gradient(48deg, rgb(239 243 255) 0%, rgb(245 253 255) 100%);
}

.cart-row-paletka{
    background: #eff6ff;
    background: linear-gradient(48deg, rgb(239 243 255) 0%, rgb(245 253 255) 100%);
}
.cart-row-dhl {
    /* background: #ccc; */
    background: #f3e8ff;
    background: linear-gradient(335deg, rgb(244 235 255) 0%, rgb(240 219 255) 100%);
    /* border: 1px solid transparent; */
}

/* Кнопка удаления (крестик) */
.cart-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}
.cart-remove:hover {
    color: #000;
}

/* Кнопка Edit для paletka */
.cart-edit {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}
.cart-edit:hover {
    text-decoration: underline;
}

/* Верхняя строка: фото + название + описание */
.cart-main {
    /* display: flex; */
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

/* Фото товара */
.cart-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Информация о товаре */
.cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Название */
.cart-name {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    color: #000;
}

/* Описание */
.cart-desc {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    width: 100%;
}

/* Нижняя строка: цена / количество / итог */
.cart-summary {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Блок слева: цена + количество */
.cart-price-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* Разделитель и количество */
.cart-price-qty span.cart-qty {
    margin-left: 6px;
}

/* Итоговая сумма справа */
.cart-total {
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    color: #000;
}

/* Кнопки +/- */
.cart-qty button {
    width: 26px;
    height: 26px;
}

/* Палетка: убрать цену и количество, оставить только итог */
.paletka-summary {
    display: flex;
    justify-content: flex-end; /* прижать итог к правому краю */
    font-weight: 700;
    font-size: 16px;
}

.total-sum {
    margin-bottom: 10px;
    margin-top: 10px;
    width: 96%;
    text-align: right;
    font-size: 18px;
    color: #000;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.total-sum span{font-weight: bold;}




/** *********************************************** **/

 
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #d32f2f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
}
.toast-message.show {
    opacity: 1;
}
 

/* Контейнер формы */
#orderForm {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bt_doc {
    border: none;
    background: none;
    text-decoration: underline;
    color: #1d23d2;
    padding: 0px;
    margin: 0px;
    display: inline-block;
    cursor: pointer;
}

/* Поле */
.form-field {
    position: relative;
    width: 100%;
}

/* Input / Textarea */
.form-field input, .form-field textarea {
    width: 92%;
    padding: 4%;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 40px;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-field textarea {

    border-radius: 10px;

}


/* Высота textarea */
.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Лейбл */
.form-field label {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    font-size: 16px;
    color: #5f6368;
    pointer-events: none;
    transition: 0.2s ease;
}

/* Активное состояние */
.form-field input:focus,
.form-field textarea:focus {
    border-color: #1a73e8;
}

/* Плавающий лейбл */
.form-field input:focus + label, .form-field input:not(:placeholder-shown) + label, .form-field textarea:focus + label, .form-field textarea:not(:placeholder-shown) + label {
    top: 0px;
    font-size: 12px;
    color: #000000;
}

/* Кнопка Далее */
.form-next {
    margin-top: 10px;
    align-self: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #21b643;
    border-radius: 22px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.form-next:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    #orderForm {
      
    }

    .form-next {
      
    }
}














/** ************ */

.palettes {
    display: block;
    width: 100%;
}  

.palette {
    margin: 2px;
    padding: 1px;
    border: 1px solid #cfcfcf;
    display: inline-block;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    display: block;
    width: 98%;
    flex-direction: column-reverse;
    align-content: center;
    /* flex-wrap: wrap; */
    margin-bottom: 9px;
}

.palettes .mais{box-shadow: 3px 2px 0px #cdcdcd;}
/*
.palettes .mais::before,
.palettes .mais::after {
    content: '';
    border-right: 2px solid #bfbfbf;
    position: absolute;
    right: -7px;
    z-index: 0;
    border-bottom: 2px solid #bfbfbf;
    bottom: -6px;
    width: 100%;
    height: 100%;
    border-radius: 17px;
    padding-top: 3px;
    padding-left: 3px;
}
*/
/*
.palettes .mais::before {
    right: -11px;
    bottom: -10px;
}
 */

 .palette h3 {
    font-size: 12px;
    padding: 0px;
    margin: 0px;
    /* padding-bottom: 6px; */
    padding-left: 5px;
    text-align: left;
    font-weight: normal;
    color: #000;
    width: 90%;
    margin-left: 1%;
}

.palette .count_box {
    /* text-align: right; */
    margin-top: 2px;
    margin-right: 2px;
    width: 50%;
    /* float: right; */
    display: inline-block;
    /* background: #ccc; */
}

.palette .count_box p {
    width: 10px;
    height: 10px;
    background: #000;
    display: inline-block;
    margin-right: 2px;
    border-radius: 50%;
}
.palette h3 b {
    /* background: #000; */
    color: #000;
    padding: 2px;
    display: inline-block;
    /* border: 1px solid; */
    font-size: 15px;
    /* text-align: right; */
    /* width: 100%; */
}
.row_paletka {
    display: flex;
    margin-bottom: 1px;
    justify-content: center;
}

.row_paletka div {
    margin: 0.3%;
    font-size: 4px;
    /* padding: 1px; */
    background: #ebebeb;
    width: 6.5%;
    margin-right: 0.1%;
    display: flex;
    justify-content: center;
    padding-top: 2px;
    padding-bottom: 2px;
}

.row_paletka div b {
    font-weight: normal;
    font-size: 8px;
}
.row_paletka div small {
    /* width: 100%; */
    font-size: 8px;
    /* padding-left: 7px; */
    text-align: center;
}
.color_0 div,.color_ div{ box-shadow: none; background: none;}
.color_1 div{ background: #f74040;  box-shadow: 1px 1px 3px #00000080;}
.color_2 div{ background: #297b9e;  box-shadow: 1px 1px 3px #00000080;}
.color_3 div{ background: #3eb43c; box-shadow: 1px 1px 3px #00000080;}
.color_4 div{ background: #0a208a;  box-shadow: 1px 1px 3px #00000080;}
.color_5 div{ background: #b598b9; box-shadow: 1px 1px 3px #00000080;}

.row_paletka div div {
    /* width: 28px; */
    /* height: 28px; */
    /* margin: 2px; */
    border-radius: 3px;
    display: flex;
    /* padding: 3px; */
    /* min-width: 12px; */
    overflow: hidden;
    width: 86%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-top: 3px;
    padding-bottom: 3px;
    min-height: 25px;
}

.color_1 b{color: #fff;}.color_1 small{color: #fff6;}
.color_2 b{color: #fff;}.color_2 small{color: #fff6;}
.color_3 b{color: #fff;}.color_3 small{color: #fff6;}
.color_4 b{color: #fff;}.color_4 small{color: #fff6;}
.color_5 b{color: #fff;}.color_5 small{color: #fff6;}



/* Мобильное поведение *//* Мобильное поведение *//* Мобильное поведение *//* Мобильное поведение */
/* Мобильное поведение *//* Мобильное поведение *//* Мобильное поведение *//* Мобильное поведение */


.cont_bt_order {
    margin-bottom: 15px;
    color: #000;
    text-align: left;
    font-size: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.cont_bt_order h4 {
    margin-bottom: 11px;
    font-size: 13px;
    font-weight: 200;
    color: #999090;
}
 
.cont_bt_order a {
    color: #555;
    text-decoration: none;
    border: 1px solid #dbdbdb;
    margin: 3px;
    padding: 2px 10px 2px 10px;
    border-radius: 24px;
    display: inline-block;
}
.cont_bt_order a:hover{ color: #000;border: 1px solid #000;}






/** ********* VIIZ **************** **/

.receipt-title{font-size: 24px;}
.cont_check {
    padding: 10px;
    margin-top: 10px;
}

.cont_check .box{
    border: 4px double #000;
    padding: 2%;
    border-radius: 20px; 
    background: #fff;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-top: 10px;
    padding-bottom: 15px;
}
.cont_check .f_cont{color: #000;
    width: 90%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-top: 15px;
    font-size: 11px;}

.cont_check .logo {
width: 100px;
float: right;
z-index: 1;
position: relative;
margin-right: 20px;
}
.cont_check .logo img{}


#cartContainer_check {
width: 100%;
margin: 0 auto;
/* padding: 0 12px; */
/* display: flex; */
flex-direction: column;
gap: 12px;
}


.receipt {
/* width: 360px; */
/* margin: 0 auto; */
/* padding: 14px; */
/* background: #fff; */
color: #000;
}

.receipt * {
color: #000;
}

.receipt-title {
text-align: center;
font-weight: bold;
margin-bottom: 8px;
}

.receipt-header div {
margin-bottom: 2px;
text-align: left;
word-wrap: break-word;      /* старое имя */
overflow-wrap: break-word;
}

.receipt-header i{font-style: normal;
    font-size: 10px;}

.receipt-date {
margin-top: 6px;
}

.receipt-separator,
.receipt-item-separator {
border-top: 1px dashed #000;
margin: 8px 0;
}

.receipt-row:not(.receipt-paletka) {
display: flex;
justify-content: space-between;
}

.receipt-left {
flex: 1;
}

.receipt-right {
min-width: 90px;
text-align: right;
}

.receipt-name {
font-weight: bold;
text-align: left;
}

.receipt-desc, .paletka-desc {
    font-size: 12px;
    width: 100%;
    text-align: left;
}

.receipt-paletka-price {
display: flex;
justify-content: space-between;
font-weight: bold;
margin-top: 4px;
}

.receipt-total {
display: flex;
justify-content: space-between;
margin-top: 6px;
border-bottom: 1px dotted #d6d6d6;
}

.receipt-grand {
font-size: 16px;
font-weight: bold;
}








/** ***** **/
.fin_order {
    margin-bottom: 30px;
    color: #14b900;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 30px;
}
.fin_order h3{}
.fin_order p{}
.fin_order h4 {}



.receipt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.receipt-actions button, .receipt-actions a {
    font-size: 12px;
    font-weight: 500;
    border-radius: 36px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 30px;
    line-height: 30px;
    padding-left: 20px;
    padding-right: 20px;
    background: #ccc;
    background-color: #ccc;
}

/* Кнопка "Сохранить" */
#saveReceipt {
    background: linear-gradient(135deg, #4CAF50, #43A047);
    color: #fff;
 
}

#saveReceipt:hover {
    transform: translateY(-2px);
 
}

#add_order{
    background: linear-gradient(135deg, #ffd280, #ff7906);
    color: #fff;
}


#add_order:hover {
    transform: translateY(-2px);
 
}

/* Кнопка "Печать" */
#printReceipt {
    background: linear-gradient(135deg, #2196F3, #1E88E5);
    color: #fff;
 
}

#printReceipt:hover {transform: translateY(-2px);}
/* Активное нажатие */
.receipt-actions button:active {transform: translateY(0);}

/* Мобильная адаптация */
@media (max-width: 480px) {
 
}