/* import-styles */
@import url(../New/Css/style.css);

.banner-box {
    border: 2px solid #ccc;
    text-align: center;
    position: relative;
    width: 100%;
    min-height: 125px;
    margin: auto;
    background-color: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-box img {
    max-width: 100%;
    max-height: 250px;
    object-fit: fill;
    /* height: 150px; */
}

.empty-placeholder {
    font-size: 1.2rem;
    color: #aaa;
    display: none;
    text-align: center;
}

.choose-confirm {
    display: none;
}

.gallery-item {
    cursor: pointer;
    text-align: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 0;
    display: flex;
    height: calc(90vh - 56px - 60px);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .modal-footer {
        box-shadow: 0 0 10px silver;
    }
}

.d-flex-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Gallery container scrollable */
.gallery-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    direction: rtl;
    /* scrollbar on left */
}

.gallery-container .row {
    direction: ltr;
    /* keep thumbnails LTR */
}

/* Sidebar fixed on desktop */
.right-menu {
    width: 250px;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    position: sticky;
    top: 56px;
    /* height of modal-header */
    height: calc(90vh - 56px - 60px);
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.right-menuHeader {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.right-menuHeaderText {
    gap: 5px;
}

.right-menuHeaderText .category-icon {
    width: 24px;
}

.categories ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.categories li .inner_p {
    padding: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.categories li .inner_p.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: .25rem;
}

@media (max-width: 767.98px) {
    .right-menu-mobile {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100%;
        background-color: #f8f9fa;
        z-index: 1150;
        overflow-y: auto;
        padding: 1rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        /* منو خارج از صفحه است */
        transition: transform 0.3s ease-in-out;
        /* انیمیشن نرم */
    }

    .right-menu-mobile.show {
        transform: translateX(0);
        /* منو به صفحه میاد */
    }
}

/* Uniform rectangular thumbnails */
.gallery-item img {
    width: auto;
    height: auto;    
    object-fit: cover;
    border-radius: 4px;
    min-height: 90px;
    max-height: 250px;
}

.gallery-item.d-none {
    display: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover svg g {
    fill: var(--primary-color);
}

.btn-primary:not(:disabled):not(.disabled):active svg g {
    fill: white;
}

.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-primary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    transition: 0.3s ease-in-out;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.choise-btn {
    flex: 11;
}

.delete-btn {
    flex: 1;
}

.btn-outline-primary.focus,
.btn-outline-primary:focus,
.btn-primary.focus,
.btn-primary:focus,
.btn-secondary.focus,
.btn-secondary:focus,
.btn-danger.focus,
.btn-danger:focus {
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0);
}

.banenr-choice-modal {
    text-align: right !important;
}

.banenr-choice-modal .modal-header .gallery-icon {
    width: 32px;
}

.banenr-choice-modal .modal-header .close {
    margin: -1rem;
}

.lg-outer {
    direction: ltr !important;
    text-align: left;
    z-index: 1150 !important;
}

.lg-prev {
    left: 10px !important;
    right: auto !important;
}

.lg-next {
    right: 10px !important;
    left: auto !important;
}

.lg-thumb {
    direction: ltr !important;
    text-align: left !important;
}

@media (min-width: 576px) {
    .banenr-choice-modal .modal-dialog {
        max-width: 90% !important;
    }
}

.lg-backdrop {
    z-index: 1150 !important;
    background-color: rgb(0 0 0 / 70%) !important;
}

.lg-outer .lg-object {
    width: auto;
    max-width: 80%;
}

.banner-box img {
    width: auto !important;
}