#buyoneclick_form_order {
    font-size: 16px;
}
#buyoneclick_form_order .form-message-result {
    font-size: 13px;
    color: grey;
}
#buyoneclick_form_order form {
    margin-bottom: 0;
}
#buyoneclick_form_order .table-wrap {
    text-align: center;
    display: inline-block;
    background-color: #fff;
    color: #000;
    width: 100%;
}

#buyoneclick_form_order .table-wrap table {
    border: 1px solid #ccc;
    width: 100%;
    margin:0;
    padding:0;
    border-collapse: collapse;
    border-spacing: 0;
}

#buyoneclick_form_order .table-wrap table tr {
    border: 1px solid #ddd;
    padding: 5px;
}

#buyoneclick_form_order .table-wrap table th, #buyoneclick_form_order .table-wrap table td {
    font-size: 14px;
    padding: 5px;
    text-align: center;
    border-right: 1px solid #ddd;
}

#buyoneclick_form_order .table-wrap table th {
    color: #fff;
    background-color: #444;
    text-transform: uppercase;

}

#formOrderOneClick>.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    visibility: hidden;
    z-index: 9999989;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}
#formOrderOneClick>.popup {
    background-color: #fff;
    border: 3px solid #fff;
    display: block;
    left: 50%;
    opacity: 0;
    padding: 0.7em;
    width: 100%;
    max-width: 500px;
    min-width: 320px;
    height: auto;
    position: fixed;
    text-align: justify;
    top: 40%;
    visibility: hidden;
    z-index: 999999997;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
    border-radius: 4px;
}

#formOrderOneClick .popup .close_order {
    display: block;
    width: 2em;
    height: 2em;
    position: absolute;
    padding:2px;
    top: -6px;
    right: -6px;
    cursor: pointer;
    color: #fff;
    -webkit-border-radius: 20%;
    -moz-border-radius: 20%;
    -o-border-radius: 20%;
    -ms-border-radius: 20%;
    border-radius: 20%;
    text-align: center;
}

#formOrderOneClick input[type="email"], #buyoneclick_form_order input[type="tel"], #buyoneclick_form_order input[type="text"] {
    padding: 0px 7px;
    margin: 0;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    height: 2.3em;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
    color: #000;
}

#formOrderOneClick textarea{
    resize: none;
    font-family: 'arial', sans-serif;
    padding: 6px;
    width: 100%;
    height: 80px;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
}

#formOrderOneClick input[type="checkbox"] {
    float: left;
}
#formOrderOneClick .popup #buyoneclick_form_order {
    position: relative;
    border-radius: 12px;
    background: none;
}

#formOrderOneClick .button:hover {

    text-decoration: none;
}
#formOrderOneClick .button:active, #buyoneclick_form_order input[type="submit"].button:disabled {
    opacity: 0.7;
    cursor: default;
}
#formOrderOneClick .phoneFormat {
    line-height: 12px;
    font-size: 12px;
    color: #cacaca;
    position: relative;
    z-index: 20;
    padding: 0;
    margin: 2px;
}

#formOrderOneClick th,td {
    font-weight: normal;
}
#formOrderOneClick .button{
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -o-border-radius: 2px;
    -ms-border-radius: 2px;
    display: block;
    text-align: center;
    margin: 10px auto;
    text-decoration: none;
    cursor: pointer;


}
#formOrderOneClick [name="quantity_product"] {
    position: relative;
    height: 50%;
    width: 75px;

}
@media screen and (max-width: 600px) {
    #formOrderOneClick > .popup {
        min-width: 90%;
    }

    #buyoneclick_form_order .table-wrap table {
        border: 0;
    }
    #buyoneclick_form_order .table-wrap table thead {
        display: none;
    }
    #buyoneclick_form_order .table-wrap table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }
    #buyoneclick_form_order .table-wrap table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px dotted #ccc;
        border-right: 1px solid transparent;
    }
    #buyoneclick_form_order .table-wrap table td:last-child {
        border-bottom: 0;
    }
    #buyoneclick_form_order .table-wrap  table td:before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
    }
}
/**
 * ===================================================
 * Модерна визия за попъпа "Бърза поръчка"
 * Добавено от yordan_z / web-uslugi.online
 * ===================================================
 */

/* Затъмнен overlay с лек blur, вместо плосък черен фон */
#formOrderOneClick .overlay {
    background-color: rgba(15, 15, 20, 0.55) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Самият попъп - по-мека сянка, по-голямо заобляне */
#formOrderOneClick .popup {
    border: none !important;
    border-radius: 18px !important;
    padding: 32px 28px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    max-width: 420px !important;
}

/* Заглавие "Бърза поръчка" */
#formOrderOneClick .popup h3,
#buyoneclick_form_order h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 22px !important;
    color: #1a1a1a !important;
    letter-spacing: -0.3px;
}

/* Бутон за затваряне - модерно кръгло X */
#formOrderOneClick .popup .close_order {
    background: #f4f4f5 !important;
    color: #6b6b6b !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    top: -14px !important;
    right: -14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    transition: all 0.2s ease;
}

#formOrderOneClick .popup .close_order:hover {
    background: #e8420c !important;
    color: #fff !important;
    transform: rotate(90deg);
}

/* Полета за въвеждане - modern flat style */
#formOrderOneClick input[type="email"],
#formOrderOneClick input[type="tel"],
#formOrderOneClick input[type="text"],
#formOrderOneClick textarea {
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    height: auto !important;
    font-size: 15px !important;
    background-color: #fafafa !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-shadow: none !important;
}

#formOrderOneClick input[type="email"]:focus,
#formOrderOneClick input[type="tel"]:focus,
#formOrderOneClick input[type="text"]:focus,
#formOrderOneClick textarea:focus {
    border-color: #e8420c !important;
    background-color: #fff !important;
    outline: none !important;
}

#formOrderOneClick textarea {
    min-height: 90px !important;
}

#formOrderOneClick input::placeholder,
#formOrderOneClick textarea::placeholder {
    color: #a3a3a3 !important;
}

#formOrderOneClick .phoneFormat {
    font-size: 11px !important;
    color: #b3b3b3 !important;
    margin: 4px 2px 8px !important;
}

/* Бутон "Поръчай" - модерен, с hover анимация */
#formOrderOneClick .button {
    border-radius: 10px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(232, 66, 12, 0.3) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    border: none !important;
}

#formOrderOneClick .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 66, 12, 0.4) !important;
}

@media screen and (max-width: 600px) {
    #formOrderOneClick .popup {
        border-radius: 16px !important;
        padding: 24px 20px !important;
    }
}

/**
 * ===================================================
 * Поправка: попъп с "Product Information" таблица
 * ставаше твърде висок и скриваше бутона за затваряне (X)
 * ===================================================
 */

/* Ограничаваме максималната височина на попъпа спрямо екрана,
   и позволяваме вътрешен скрол само на съдържанието */
#formOrderOneClick .popup {
    max-height: 85vh !important;
    top: 50% !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
}

/* Съдържанието вътре в попъпа скролва, самият попъп/X бутонът остават фиксирани на място */
#formOrderOneClick .popup #buyoneclick_form_order {
    overflow-y: auto !important;
    max-height: calc(85vh - 64px) !important;
    padding-right: 4px;
}

/* На много малки екрани - още по-стегнато, за да остане X винаги видим */
@media screen and (max-height: 700px) {
    #formOrderOneClick .popup {
        max-height: 92vh !important;
        top: 50% !important;
    }
    #formOrderOneClick .popup #buyoneclick_form_order {
        max-height: calc(92vh - 64px) !important;
    }
}

/* Гарантираме, че X бутонът винаги е видим над попъпа, дори при scroll вътре */
#formOrderOneClick .popup .close_order {
    z-index: 10 !important;
}
