/* Loaded only by /order. Menus stay in the same containing block as their field. */
#services .service-box.order-selects-container {
    overflow: visible;
    display: flow-root;
}
/* Keep dropdowns above adjacent form sections but below the fixed header (999). */
.order-select-section-open { z-index: 2; }
.order-select, .my-fake-select { position: relative; }
.order-select.open, .my-fake-select.open { z-index: 10; }
.style-select.order-select-parent::after { display: none; }
.order-select > select.order-select-source {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}
.order-select .order-select-trigger {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-right: 36px !important;
    text-align: left;
    background: #fff url('/template/img/dropdown-icon.png') no-repeat right 8px center;
    box-shadow: none;
    overflow: hidden;
}
.order-select-trigger .ui-selectmenu-icon { display: none; }
.order-select-trigger .ui-selectmenu-text { margin: 0; }
.order-select-trigger:focus-visible { outline: 2px solid #80bdff; outline-offset: 1px; }
.order-select-source.error-field + .order-select-trigger {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}
.order-select > .ui-selectmenu-menu {
    position: absolute;
    top: 100% !important;
    left: 0 !important;
    width: 100%;
    z-index: 10;
}
.order-select .ui-menu {
    box-sizing: border-box;
    width: 100% !important;
    max-height: min(320px, 45vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    font: inherit;
    background: #fff;
    color: #000;
    border: 1px solid #80bdff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.order-select .ui-menu-item-wrapper {
    padding: 7px 10px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.my-fake-select > .fake-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overscroll-behavior: contain;
    z-index: 10;
}
.order-document-box { position: relative; }
.order-document-choices {
    position: absolute;
    left: var(--order-choices-left, 50%);
    top: var(--order-choices-top, 15px);
    width: var(--order-choices-width, 50%);
    height: var(--order-choices-height, 150px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    cursor: default;
}
.order-document-choices[hidden] { display: none !important; }
.order-document-choices[type="button"] { cursor: default; }
.order-document-choices img {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    max-width: calc((100% - 24px) / 3);
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}
.order-document-choices:focus-visible { outline: 2px solid #80bdff; outline-offset: 2px; }
.order-document-box #preview-column label {
    background-color: #fff;
    color: #26713b;
    font-weight: 700;
    width: fit-content;
    margin-inline: auto;
    padding-inline: 1ch;
    text-decoration: underline;
}
@media (min-width: 768px) {
    .order-document-unselected .service-title { max-width: 50%; }
    .order-document-box #preview-column {
        margin-top: var(--order-preview-offset, 0px);
    }
    .order-document-box #preview-column > .text-information {
        display: flex;
        flex-direction: column;
    }
    .order-document-box #selected-tovar-preview img {
        display: block;
        margin-inline: auto;
    }
}
@media (max-width: 767px) {
    .order-document-choices {
        position: static;
        width: 100%;
        height: clamp(100px, 35vw, 170px);
        margin-top: 12px;
        padding: 0;
    }
}
