#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;
}

/* BG 2.3.2: product card; keep the selected colour scheme. */
#formOrderOneClick .popup { width:calc(100vw - 32px)!important; min-width:0!important; box-sizing:border-box; padding:42px 24px 24px!important; }
#formOrderOneClick .popup .close_order { top:8px!important; right:8px!important; padding:0!important; cursor:pointer; }
#formOrderOneClick .popup h2 { font-size:25px; line-height:1.25; margin:0 0 20px; }
#formOrderOneClick .wu-boc-card { display:flex; align-items:center; gap:16px; text-align:left; padding:14px; background:#f7f8fa; border:1px solid #e8eaed; border-radius:12px; margin-bottom:16px; }
#formOrderOneClick .wu-boc-image { width:84px; height:84px; object-fit:contain; border-radius:8px; background:white; flex-shrink:0; }
#formOrderOneClick .wu-boc-name { font-size:15px; line-height:1.4; display:block; }
#formOrderOneClick .wu-boc-price { font-size:19px; font-weight:700; margin-top:8px; }
#formOrderOneClick .wu-boc-variants label { display:block; font-size:13px; font-weight:600; text-align:left; margin-bottom:12px; }
#formOrderOneClick .wu-boc-variants select { width:100%; min-height:44px; margin-top:5px; border:1px solid #d9dce1; border-radius:8px; padding:8px; background:#fff; color:#20242a; }
#formOrderOneClick .wu-boc-total { display:flex; justify-content:space-between; gap:12px; font-size:14px; margin:14px 0 4px; }
#formOrderOneClick .wu-boc-note { font-size:12px; color:#626b76; margin:0 0 14px; text-align:left; }
#formOrderOneClick input[type=text], #formOrderOneClick input[type=email], #formOrderOneClick input[type=tel], #formOrderOneClick textarea { box-sizing:border-box; width:100%!important; margin:6px 0!important; text-shadow:none; }
#formOrderOneClick .buyButtonOkForm { width:100%!important; margin:14px 0 0; }
#formOrderOneClick .buyButtonOkForm:disabled { opacity:.55; cursor:wait; }
#formOrderOneClick .form-message-result { color:#a4262c; }
#formOrderOneClick :focus-visible { outline:2px solid #334155; outline-offset:2px; }
@media(max-width:380px) { #formOrderOneClick .popup{padding:42px 16px 18px!important;} #formOrderOneClick .wu-boc-image{width:64px;height:64px;} }
