/* ADM POPUPS STYLES */

/* MODAL OVERLAY SYSTEM */
.adm_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NOTIFOLDER VIDGET STYLES */
.adm_notifolder_vidget {
    position: relative;
    border: 1px solid #767676;
    min-width: 539px;
    background: #fff;
}

.adm_notifolder_vidget_wrap {
    padding: 16px 16px 11px 16px;
}

.adm_notifolder_vidget .xt_close {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 17px;
    z-index: 5;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adm_notifolder_vidget .xt_close:before {
    content: '';
    width: 12px;
    height: 12px;
    background: url(../img/icons_adm/icon_xt_close.svg) center center no-repeat;
}

.adm_notifolder_vidget_caption {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.adm_notifolder_vidget_field {
    margin-bottom: 11px;
    padding-right: 68px;
}

.adm_notifolder_vidget_field input[type="text"] {
    outline: none;
    border: 1px solid #000;
    width: 100%;
    font-size: 16px;
    color: #000;
    padding: 7px 11px;
}

.adm_notifolder_vidget_selector {
    min-height: 40px;
    cursor: pointer;
    position: relative;
    border: 1px solid #000;
    width: 100%;
    font-size: 16px;
    color: #000;
    padding: 7px 11px;
}

.adm_notifolder_vidget_selector:after {
    content: '';
    display: block;
    height: 21px;
    width: 21px;
    position: absolute;
    top: 10px;
    right: 9px;
    z-index: 5;
    background: url(../img/icons_adm/icon_dropdown.svg) center center no-repeat;
}

.adm_notifolder_vidget_selector_items {
    padding: 7px 10px;
    background: #D9D9D9;
}

.adm_notifolder_vidget_selector_item {
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 0;
    padding: 5px 0px;
}

.adm_notifolder_vidget_field.opened .adm_notifolder_vidget_selector:after {
    transform: rotate(180deg);
}

.adm_notifolder_vidget_submit .xt_button {
    margin-right: 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 5px 5px 5px 0;
    color: #000;
    display: inline-block;
    cursor: pointer;
}

.adm_notifolder_vidget_submit .xt_button.xt_button_gray {
    color: #8c8c8c;
}

@media (max-width: 600px) {
    .adm_notifolder_vidget {
        min-width: auto;
        width: 100%;
    }

    .adm_notifolder_vidget_field {
        padding-right: 0px;
    }
}

/* STATUS POPUP */

.adm_r_filter_item {
    margin-right: 13px;
    position: relative;
}

.adm_r_filter_caption {
    cursor: pointer;
    align-items: center;
    position: relative;
    padding-right: 13px;
}

.adm_r_filter_caption_name {
    font-family: Raleway;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
}

.adm_r_filter_caption_arrow {
    font-size: 28px;
    line-height: 23px;
    position: absolute;
    top: 5px;
    right: -7px;
}

.adm_r_filter_caption_tune {
    position: absolute;
    top: 5px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: url("../img/icons_adm/icon_settings_filter.svg") center center no-repeat transparent;
    background-size: contain;
}

.adm_r_filter_dropdown {
    display: none;
    position: absolute;
    top: 27px;
    left: 0px;
    z-index: 50;
    max-height: 370px;
    overflow-y: auto;
    border: 1px solid silver;
    border-radius: 0px;
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: hidden;
}

.adm_r_filter_item.open .adm_r_filter_dropdown {
    display: block;
}

.adm_r_filter_select {
    background: #fff;
    width: auto;
    list-style: none;
    padding: 7px 0 9px 0;
    margin: 0;
}

.adm_r_filter_option {
    /* padding: 10px; */
}

.adm_r_filter_option_label {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 4px 14px;
}

.adm_r_filter_option_label span {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.adm_r_filter_option_label.checkbox_01 .checkbox-text {
    width: 100%;
}

.adm_r_filter_option_checkbox {}

.adm_r_filter_item.open .adm_r_filter_caption_arrow {
    transform: rotate(180deg);
}

.adm_r_filter_option_tune {
    position: relative;
}

.adm_r_filter_option_tune .adm_r_filter_option_label {
    padding-left: 27px;
}

.adm_r_filter_option_dots {
    position: absolute;
    width: 4px;
    height: 16px;
    top: 10px;
    left: 10px;
    background: url("../img/icons_adm/icon_settings_dots.svg") center center no-repeat transparent;
    background-size: contain;
}

/* BRANDS POPUP */

.adm_r_brand_item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.adm_r_brand_caption {
    cursor: pointer;
    align-items: center;
    position: relative;
    padding-right: 17px;
    display: inline-block;
}

.adm_r_brand_caption_name {}

.adm_r_brand_caption_arrow {
    font-size: 28px;
    line-height: 23px;
    position: absolute;
    top: 7px;
    right: 0;
}

.adm_r_brand_caption_tune {
    position: absolute;
    top: 5px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: url("../img/icons_adm/icon_settings_filter.svg") center center no-repeat transparent;
    background-size: contain;
}

.adm_r_brand_dropdown {
    display: none;
    position: absolute;
    top: 27px;
    left: 14px;
    z-index: 50;
    max-height: 370px;
    overflow-y: auto;
    border: 1px solid silver;
    border-radius: 0px;
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: hidden;
}

.adm_r_brand_item.open .adm_r_brand_dropdown {
    display: block;
}

.adm_r_brand_select {
    background: #fff;
    width: auto;
    list-style: none;
    padding: 7px 0 9px 0;
    margin: 0;
}

.adm_r_brand_option {
    /* padding: 10px; */
}

.adm_r_brand_option_label {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 4px 14px;
}

.adm_r_brand_option_label span {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.adm_r_brand_option_label.checkbox_01 .checkbox-text {
    width: 100%;
    padding-right: 0;
}

.adm_r_brand_option_label.checkbox_01 .checkbox-text:before,
.adm_r_brand_option_label.checkbox_01 .checkbox-text:after {
    display: none !important;
}

.adm_r_brand_option_checkbox {}

.adm_r_brand_item.open .adm_r_brand_caption_arrow {
    transform: rotate(180deg);
}

.adm_r_brand_option_tune {
    position: relative;
}

.adm_r_brand_option_tune .adm_r_brand_option_label {
    padding-left: 27px;
}

.adm_r_brand_option_dots {
    position: absolute;
    width: 4px;
    height: 16px;
    top: 10px;
    left: 10px;
    background: url("../img/icons_adm/icon_settings_dots.svg") center center no-repeat transparent;
    background-size: contain;
}

/* PROJECTS POPUP */

.adm_r_project_item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.adm_r_project_caption {
    cursor: pointer;
    align-items: center;
    position: relative;
    padding-right: 17px;
    display: inline-block;
}

.adm_r_project_caption_name {}

.adm_r_project_caption_arrow {
    font-size: 28px;
    line-height: 23px;
    position: absolute;
    top: 9px;
    right: 0;
}

.adm_r_project_caption_tune {
    position: absolute;
    top: 5px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: url("../img/icons_adm/icon_settings_filter.svg") center center no-repeat transparent;
    background-size: contain;
}

.adm_r_project_dropdown {
    display: none;
    position: absolute;
    top: 27px;
    left: 0;
    z-index: 50;
    max-height: 370px;
    overflow-y: auto;
    border: 1px solid silver;
    border-radius: 0px;
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: hidden;
}

.adm_r_project_item.open .adm_r_project_dropdown {
    display: block;
}

.adm_r_project_select {
    background: #fff;
    width: auto;
    list-style: none;
    padding: 7px 0 9px 0;
    margin: 0;
}

.adm_r_project_option {
    /* padding: 10px; */
}

.adm_r_project_option_label {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 4px 14px;
}

.adm_r_project_option_label span {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.adm_r_project_option_label.checkbox_01 .checkbox-text {
    display: inline-block;
    width: 100%;
    padding-right: 0;
    font-size: 15px;
    line-height: 130%;
}

.adm_r_project_option_label.checkbox_01 .checkbox-text:before,
.adm_r_project_option_label.checkbox_01 .checkbox-text:after {
    display: none !important;
}

.adm_r_project_option_checkbox {}

.adm_r_project_item.open .adm_r_project_caption_arrow {
    transform: rotate(180deg);
}

.adm_r_project_option_tune {
    position: relative;
}

.adm_r_project_option_tune .adm_r_project_option_label {
    padding-left: 27px;
}

.adm_r_projectoption_dots {
    position: absolute;
    width: 4px;
    height: 16px;
    top: 10px;
    left: 10px;
    background: url("../img/icons_adm/icon_settings_dots.svg") center center no-repeat transparent;
    background-size: contain;
}

/* drop select */
.adm_r_drop_item {
    margin-right: 13px;
    position: relative;
    width: 128px;
}

.adm_r_drop_caption {
    cursor: pointer;
    align-items: center;
    position: relative;
    padding-right: 13px;
}

.adm_r_drop_caption_name {
    font-family: Raleway;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
}

.adm_r_drop_caption_arrow {
    font-size: 28px;
    line-height: 23px;
    position: absolute;
    top: 9px;
    right: -7px;
}

.adm_r_drop_caption_tune {
    position: absolute;
    top: 5px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: url("../img/icons_adm/icon_settings_filter.svg") center center no-repeat transparent;
    background-size: contain;
}

.adm_r_drop_dropdown {
    display: none;
    position: absolute;
    top: 27px;
    left: 0px;
    z-index: 50;
    max-height: 370px;
    overflow-y: auto;
    border: 1px solid silver;
    border-radius: 0px;
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: hidden;
}

.adm_r_drop_item.open .adm_r_drop_dropdown {
    display: block;
}

.adm_r_drop_select {
    background: #fff;
    width: auto;
    list-style: none;
    padding: 7px 0 9px 0;
    margin: 0;
}

.adm_r_drop_option {
    /* padding: 10px; */
}

.adm_r_drop_option_label {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 4px 14px;
}

.adm_r_drop_option_label span {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.adm_r_drop_option_label.checkbox_01 .checkbox-text {
    width: 100%;
}

.adm_r_drop_option_checkbox {}

.adm_r_drop_item.open .adm_r_drop_caption_arrow {
    transform: rotate(180deg);
}

.adm_r_drop_option_tune {
    position: relative;
}

.adm_r_drop_option_tune .adm_r_drop_option_label {
    padding-left: 27px;
}

.adm_r_drop_option_dots {
    position: absolute;
    width: 4px;
    height: 16px;
    top: 10px;
    left: 10px;
    background: url("../img/icons_adm/icon_settings_dots.svg") center center no-repeat transparent;
    background-size: contain;
}

/* FILE MANAGER FULL MODAL */
.adm_file_manager_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm_file_manager_modal_content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 900px;
    background: #fff;
    border: 1px solid #767676;
    display: flex;
    flex-direction: column;
}

.adm_file_manager_modal_header {
    padding: 20px 60px 20px 30px;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
}

.adm_file_manager_modal_header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.adm_file_manager_modal_body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.adm_file_manager_modal .xt_close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm_file_manager_modal .xt_close:before {
    content: '';
    width: 16px;
    height: 16px;
    background: url(../img/icons_adm/icon_xt_close.svg) center center no-repeat;
    background-size: contain;
}

@media (max-width: 768px) {
    .adm_file_manager_modal_content {
        width: 95%;
        height: 95%;
    }

    .adm_file_manager_modal_body {
        padding: 15px;
    }
}

/* ============================================
   LARGE MODAL SYSTEM (Unified for all large modals)
   ============================================ */

.adm_large_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.adm_large_modal_content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1110px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.adm_large_modal_header {
    padding: 20px 60px 20px 30px;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
    flex-shrink: 0;
}

.adm_large_modal_header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.adm_large_modal_body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.adm_large_modal .xt_close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.adm_large_modal .xt_close:hover {
    transform: scale(1.1);
}

.adm_large_modal .xt_close:before {
    content: '';
    width: 16px;
    height: 16px;
    background: url(../img/icons_adm/icon_xt_close.svg) center center no-repeat;
    background-size: contain;
}

@media (max-width: 768px) {
    .adm_large_modal_content {
        width: 95%;
        height: 95%;
        max-width: none;
    }

    .adm_large_modal_header {
        padding: 15px 50px 15px 20px;
    }

    .adm_large_modal_header h2 {
        font-size: 18px;
    }

    .adm_large_modal_body {
        padding: 15px;
    }

    .adm_large_modal .xt_close {
        right: 15px;
        top: 15px;
        width: 25px;
        height: 25px;
    }
}

/* FILE MANAGER MODALS - INNER MODALS */
.file-manager-modal {
    display: none;
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001 !important;
}

.file-manager-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000 !important;
}

/* ===== PRODUCT SELECTION MODAL STYLES ===== */
/* Стили для модалки выбора товаров */
#product-selection-modal .x_form_modal_container {
    width: 1355px !important;
    max-width: 95vw;
    padding: 20px 30px;
    max-width: 1130px;
}

#product-selection-modal .x_form_header {
    position: relative;
    padding-top: 30px;
}

#product-selection-modal .modal-back-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

#product-selection-modal .modal-back-link:hover {
    color: #000;
}

#product-selection-modal .x_form_body {
    display: flex;
    flex-direction: column;
}

#product-selection-modal .page-header,
#product-selection-modal #modal_product_list_filter {
    flex-shrink: 0;
}

#product-selection-modal #modal-products-list {
    flex: 1;
    overflow-y: auto;
    position: relative;
    min-height: 200px;
    justify-content: center;
}

/* Применяем стили каталога к контейнеру товаров */
#product-selection-modal .products-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-height: 400px;
    /* Минимальная высота чтобы модалка не прыгала */
    row-gap: 40px;
    column-gap: 20px;
}

#product-selection-modal .products-container .product_list_catalog_item {
    width: calc(100%/6 - 20px);
    margin: 0;
}

/* Loading overlay */
#product-selection-modal .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#product-selection-modal .modal-product-item {
    cursor: pointer;
}

/* Убираем ВСЕ эффекты при наведении */
#product-selection-modal .modal-product-item:hover,
#product-selection-modal .gallery_item_pic:hover,
#product-selection-modal .gallery_item_pic:hover .image_holder {
    transform: none !important;
    box-shadow: none !important;
}

#product-selection-modal .product_list_catalog_item {
    cursor: pointer;
}

/* Стили для детальной информации */
.product-detail-section {
    padding: 20px 0;
}

/* Стили для кнопки "Показать ещё" */
#product-selection-modal .load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Стили для поиска в модалке */
#product-selection-modal .header-search {
    display: flex;
    align-items: center;
}

#product-selection-modal .header-search-input {
    width: 200px !important;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px;
    margin-right: 10px;
    outline: none;
}

#product-selection-modal .header-search-button {
    cursor: pointer;
}