.popup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    z-index: 250;
}


.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.popup-content .filter-product {
    gap: 10px;
    padding-bottom: 10px;
    margin-top: 20px;
}

.popup-content .filter-product .search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-content .filter-product span {
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    color: black;

}

.popup-content .filter-product strong {
    color: #0D0C21;
}

.lb-short-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lb-short-container h3 {
    font-family: Helvetica;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    color: #000000;
}

.filter-product.tabcontent .dropdown-toggle {
    font-family: Helvetica;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    border: none !important;
    border-radius: 0px;
    background-color: #FFFFFF;
    color: #000000;
    padding-right: 0px;
    padding-left: 0px;

}


.filter-product.tabcontent .dropdown-menu {
    border-radius: 0px;
    /* width: 100px; */
    max-height: 250px;
    overflow: auto;
}

#system_photos .filter-cat .dropdown-menu {
    inset: 50px auto auto 0 !important;
}

.filter-product.tabcontent .dropdown-menu .dropdown-item {
    padding: 5px 10px;
    font-size: 14px;
}
.filter-cat .dropdown-item{
    text-transform: uppercase

}

.filter-product.tabcontent .system-filter-container {

    display: flex;
    justify-content: space-between;

}

.lb-short-container .dropdown-menu {
    inset: 35px 0 auto auto !important;
}

.popup-content {
    width: 880px;
    height: 95%;
    /* max-height: 770px; */
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-picker,
.myimage-picker {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-item .like-count{
    
    position: absolute;
    right: 5px;
    top: 10px;
    font-size: 12px;
    background-color: #FFFFFF;
    border-radius: 100px;
    padding: 4px 8px;

}

.image-picker .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    height: 45px;
}

.image-picker .header h2 {
    margin: 0;
    font-family: Helvetica;
    font-size: 22px;
    font-weight: 700;
    /* line-height: 36px; */
    text-align: left;

}

.image-picker .header .close-btn {
    font-size: 20px;
    cursor: pointer;
}

.image-picker .filter-content-wrappr,
.myimage-picker .filter-content-wrappr {
    display: flex;
    flex-direction: row;
    height: calc(100% - 45px - 50px - 20px);
    padding-bottom: 5px;
}

.filter-content-wrappr .filter-section {
    /* border-right: 1px solid #ccc; */
}

.filter-content-wrappr .tabs {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.image-picker .tabs button {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #CCC;
    cursor: pointer;
    border-radius: 10px;
    background-color: transparent;
    outline: none;
    text-wrap: nowrap;
    font-family: Helvetica;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
}

.image-picker .tablink-active {
    font-weight: 700;
}

.image-picker .tabcontent {
    display: none;
}

.image-picker .tabs button:hover {
    background-color: #f5f5f5;
}

.image-picker .tabs button.tablink {
    background-color: #fff;
    color: #000;
    font-size: 16px;
}

.image-picker .tabs button.tablink-active {
    background-color: #000;
    color: #fff;
}

.image-picker .search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.image-picker .search-bar input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f5f5f5;
    outline: none;
    padding-left: 25px;
}

.image-picker .search-bar i {
    margin-left: 20px;
    font-size: 20px;
    cursor: pointer;
}

.image-picker .search-bar .icon-cancel {
    margin: 0;
    font-size: 15px;
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
}

.image-picker .tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.image-picker .tags button {
    padding: 5px 10px;
    margin: 5px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    border-radius: 10px;
}

.image-picker .name-search-container .search-container
{
    border-radius: 10px;
    padding: 3px 6px;
}

.image-picker .product-content {
    border-left: 1px solid #ccc;
}

.action-grid-image {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 5px;
    position: sticky;
    top: 0;
    background-color: #FFFFFF;
    z-index: 100;
    padding-bottom: 3px;
}
.action-grid-image .upload-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.action-grid-image .upload-btn-wrapper .btn-upload {
    padding: 8px 16px;
    border-radius: 10px;
    color: #FFFFFF;
    background-color: #0066FF;
    font-family: Helvetica;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 16px;
}

.action-grid-image button {
    padding: 8px 16px;
    border: 1px solid #CCC;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #000000;
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-grid-image button:hover {
    background-color: #F5F5F5;
    border-color: #000;
}

.action-grid-image button i {
    font-size: 14px;
}

/* Select all checkbox styles */
.select-all-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 16px;
    border: unset;
    border-radius: 10px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Helvetica;
    font-size: 16px;
    font-weight: 500;
    user-select: none;
}

.action-grid-image .select-all-checkbox-label:hover {
    background-color: #F5F5F5;
    border-color: #000;
}

.action-grid-image .select-all-checkbox-label {
    border: 1px solid #CCC;
}

.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000;
}

.action-grid-image .filter-container {
    margin-left: auto;
}

.action-grid-image .short-select {
    padding: 8px 32px 8px 16px;
    border: 1px solid #CCC;
    border-radius: 10px;
    background-color: #FFFFFF;
    font-family: Helvetica;
    line-height: normal;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("/wp-content/themes/photovault/assets/images/Chevron_Down.png");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.image-product-container {
    height: 100%;
    overflow: auto;
    padding-right: 5px;
}

.image-product-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.image-product-container::-webkit-scrollbar-thumb {
    background-color: #D9D9D9;
    border-radius: 10px;
}

.image-product-container::-webkit-scrollbar-thumb:hover {
    background-color: #bdbbbb;
}

.image-picker .image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    position: relative;
}

/* Scrollbar cho Webkit (Chrome, Safari, Edge) */
.image-picker .image-grid::-webkit-scrollbar {
    width: 10px;
    /* Độ rộng của scrollbar */
}

/* Track của scrollbar */
.image-picker .image-grid::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    /* Tạo hiệu ứng đổ bóng bên trong */
    border-radius: 10px;
}

/* Handle của scrollbar */
.image-picker .image-grid::-webkit-scrollbar-thumb {
    background: #D9D9D9;
    /* Màu của thumb */
    border-radius: 10px;
}

/* Handle khi hover */
.image-picker .image-grid::-webkit-scrollbar-thumb:hover {
    background: #D9D9D9;
    /* Màu của thumb khi hover */
}

.image-picker #my_photos {
    margin: 0px;
}


#my_photos .years-options, #my_photos .collections-options, #shared_photos .collections-options{
    padding-bottom: 5px;
    margin-top: 10px;
}

#my_photos #year-select, #my_photos #month-select, #my_photos #collection-select, #shared_photos #collection-shared-select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #CCC;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #fff;
    background-image: url("/wp-content/themes/photovault/assets/images/Chevron_Down.png");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}


#my_photos .year-item-picker span {
    padding: 8px 20px;
    border-radius: 100px;
    background-color: #F5F5F5;
    color: #0D0C21;
    font-size: 16px;
    cursor: pointer;

}

#my_photos .year-item-picker span.selected {
    background-color: #000000;
    color: #FFFFFF;
}

#my_photos .month-item-picker span {

    font-family: Helvetica;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    color: #828282;
    cursor: pointer;

}

#my_photos .month-item-picker span.selected {

    color: #121212;
    font-weight: 700;
}
#my_photos .dropdown-toggle{
    font-size: 14px;
    padding: 5px;
    padding-right: 0px;
}
#my_photos .filter-container{
    
    padding-left: 15px;
    border-left: 1px solid #cccc;

}


/* Content collection picker */
.image-picker .picker-body-content {
    height: calc(100% - 45px - 114px - 50px - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-picker .info-product-empty {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    display: none;
    height: 100%;
}

.info-product-empty img {
    width: 150px;
    height: 150px;
}

@media (max-width: 576px){
    .info-product-empty img{
        width: 100px;
        height: 100px;
    }
    
}

@media (max-height: 450px)and (max-width: 1024px){
    .info-product-empty img{
        margin-top: -50px;
    }
}

@media (max-height: 380px)and (max-width: 1024px){
    .info-product-empty img{
        margin-top: -56px;
        width: 120px;
        height: 120px;
    }
}

@media (max-height: 335px) and (max-width: 1024px){
    .info-product-empty img{
        margin-top: -80px;
        width: 100px;
        height: 100px;
    }
}


.info-product-empty h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    color: #000000;
}

.image-grid .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    pointer-events: none;
}

.image-picker .image-grid .image-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F5F5;
    min-height: 196px;
    border-radius: 20px;
    padding: 5px;
}

.image-picker .image-grid .image-item img {
    width: 100%;
    /* border-radius: 10px; */
}

.image-picker .image-grid .image-item .select-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.image-picker .image-grid .image-item .select-circle.collection {
    background-color: #FFFFFF !important;
    border-radius: 100px;
    padding: 3px;
    border: 1px solid  !important;
    display: none;
}

.image-picker .image-grid .image-item.active .select-circle.collection {
    display: block;
}

.image-picker .image-grid .image-item .image-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-picker .image-grid .image-item .image-checkbox:checked {
    background-color: #0066FF;
    border-color: #0066FF;
}

.image-picker .image-grid .image-item .image-checkbox:checked::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 3.5px;
    left: 8px;
}

.image-picker .image-grid .image-item .image-checkbox:checked::before {
   display: none;
}

@media (hover: hover) {
    .image-picker .image-grid .image-item .image-checkbox:hover {
        transform: scale(1.1);
    }
}

/* Cleanup old active state styles */
.image-picker .image-grid .image-item.active .select-circle {
    background-color: transparent;
    border: none;
}

.load-more {
    display: flex;
    justify-content: center;
}

#load-more-button {
    background-color: #000;
    color: #fff;
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
}

.image-picker .footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    /* position: absolute; */
    /* bottom: 0; */
    width: calc(100% - 20px);
    padding: 20px 0px;
    border-top: 1px solid #ccc;
    height: 50px;
    box-sizing: border-box;
}

.image-picker .footer p {
    margin: 0;
    font-size: 16px;
}

.image-picker .footer #continue-btn {
    padding: 10px 20px;
    border: none;
    background-color: #0066FF;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
}

.image-picker .footer #continue-btn:disabled {
    background-color: #ccc;
    /* Màu nền khi disabled */
    color: #666;
    /* Màu chữ khi disabled */
    cursor: not-allowed;
    /* Hiển thị con trỏ không cho phép */
    opacity: 0.7;
    /* Làm mờ nút */
}

.image-picker #loadmore {

    padding: 0px;
    margin: 0px;
    margin-top: 20px;
    margin-bottom: 20px;

}

.image-picker #loadmore button {
    background-color: #FFFFFF;
    color: #000000;
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #CCC;
    border-radius: 10px;
}

.image-picker #loadmore button:hover {
    background-color: #F5F5F5;
}

.image-picker .suggest-tags {
    gap: 10px;
}

.image-picker .tag-item {
    line-height: 18px;
    padding: 5px 20px;
    font-size: 14px
}

.years-options .years-list .year-container{
    padding: 0px;
    /* padding: 3px 12px; */
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
.years-options .years-list .year-container.selected span{
    /* border: 1px solid #ccc; */
    color: #000000;
    font-weight: 700;
}

.months-options .months-list .month-item{
    padding: 5px 8px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
}

.months-options .months-list .month-item.selected span{
    color: #000000;
    font-weight: 700;
}

@media (max-width: 768px) {
    .image-picker .image-grid .image-item .image-checkbox {
        width: 20px;
        height: 20px;
    }

    .image-picker .image-grid .image-item .image-checkbox:checked::after {
        width: 5px;
        height: 9px;
        top: 3.5px;
        left: 6.5px;
    }
    .select-all-checkbox-label {
        font-size: 14px;
    }
    .action-grid-image .short-select {
        font-size: 14px;
    }
    .popup-content {
        width: 98%;
        height: 98%;
        max-width: 600px;
    }

    .image-picker,
    .myimage-picker {
        padding: 12px 10px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* .image-picker .header h2 {
        font-size: 16px;
        line-height: 24px;
    } */

    .filter-content-wrappr {
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    .filter-content-wrappr .filter-section {
        width: 100%;
        margin-bottom: 10px;
        max-height: 280px;
        overflow-y: auto;
        flex-shrink: 0;
    }

    .image-picker .tabs {
        gap: 8px;
        margin-bottom: 10px;
    }

    .image-picker .tabs button.tablink {
        font-size: 14px;
        padding: 6px 10px;
    }

    .image-picker .product-content {
        border-left: none;
        border-top: 1px solid #ccc;
        padding-top: 10px;
        width: 100%;
        flex: 1;
        /* min-height: 250px; */
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .image-product-container {
        height: 100%;
        flex: 1;
        overflow-y: auto;
        display: block;
    }

    .action-grid-image button {
        font-size: 12px;
        padding: 6px 10px;
    }

    .action-grid-image button i {
        font-size: 12px;
    }

    .info-product-empty {
        min-height: 150px;
    }

    .image-product-container {
        display: block;
    }

    .image-picker .image-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .image-picker .image-grid .image-item {
        min-height: 120px;
    }

    .image-picker .footer {
        position: relative;
        padding: 12px 0;
        margin-top: 10px;
    }

    /* .image-picker .footer #continue-btn {
        margin-right: 0;
        padding: 8px 16px;
        font-size: 14px;
    } */
}

/* Mobile action controls - Hidden by default, shown on mobile */
.action-grid-mobile {
    display: none;
}

.action-grid-mobile .upload-btn-wrapper{
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.action-grid-mobile .upload-btn-wrapper button {
    width: 100%;
    border-radius: 10px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #CCC;
    border-radius: 10px;
    background-color: #0066FF;
    color: #FFFFFF;
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Show mobile controls on mobile devices OR small height screens (but not large width desktops) */
@media (max-width: 768px) {
    
    /* Show mobile controls */
    .action-grid-mobile {
        display: block;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-action-buttons {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
    }

    .mobile-action-buttons .select-all-checkbox-label {
        flex: 1;
        padding: 10px 12px;
        /* border: 1px solid #CCC; */
        border-radius: 8px;
        background-color: #FFFFFF;
        font-size: 13px;
        /* justify-content: center; */
    }

    .mobile-action-buttons .select-all-checkbox {
        width: 16px;
        height: 16px;
    }

    .mobile-sort-container {
        width: 100%;
    }

    .short-select-mobile {
        width: 100%;
        padding: 8px 32px 8px 12px;
        border: 1px solid #CCC;
        background-color: #FFFFFF;
        font-family: Helvetica;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("/wp-content/themes/photovault/assets/images/Chevron_Down.png");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
    }

    /* Hide desktop action controls on mobile */
    .action-grid-image {
        display: none;
    }
}

/* Also show mobile controls on small height screens (not wide desktops) */
@media (max-height: 500px) and (max-width: 1024px) {
    .action-grid-mobile {
        display: block;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-action-buttons {
        display: flex;
        gap: 6px;
        margin-bottom: 8px;
    }

    .mobile-action-btn {
        flex: 1;
        padding: 6px 10px;
        border: 1px solid #CCC;
        border-radius: 6px;
        background-color: #FFFFFF;
        color: #000000;
        font-family: Helvetica;
        font-size: 11px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .mobile-action-btn:hover {
        background-color: #F5F5F5;
    }

    .mobile-action-btn i {
        font-size: 11px;
    }

    #deselect-all-images-btn-mobile i {
        color: #dc3545;
    }

    #select-all-images-btn-mobile i {
        color: #28a745;
    }

    .mobile-sort-container {
        width: 100%;
    }

    .action-grid-mobile button, .action-grid-mobile select {
        height: 35px !important;
    }

    .short-select-mobile {
        width: 100%;
        padding: 6px 28px 6px 10px;
        border: 1px solid #CCC;
        border-radius: 10px;
        background-color: #FFFFFF;
        font-family: Helvetica;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("/wp-content/themes/photovault/assets/images/Chevron_Down.png");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
    }

    .action-grid-image {
        display: none;
    }

    /* Adjust filter section for small height */
    .filter-content-wrappr .filter-section {
        max-height: 300px;
        overflow-y: auto;
    }
}


/* Landscape mode for mobile devices */
@media (max-width: 992px) and (orientation: landscape) and (max-height: 500px) {
    .popup-content {
        width: 100%;
        height: 95%;
        max-width: 500px;
        max-height: unset;
    }

    .image-picker {
        padding: 10px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .image-picker .header {
        margin-bottom: 5px;
    }

    .image-picker .header h2 {
        font-size: 21px;
    }

    .image-picker .footer p {
        font-size: 14px;
    }

    .image-picker .header .close-btn {
        font-size: 16px;
    }

    .filter-content-wrappr {
        flex-direction: row;
        flex: 1;
        overflow: hidden;
        gap: 10px;
    }

    .filter-content-wrappr .filter-section {
        width: 35%;
        border-right: 1px solid #ccc;
        padding-right: 10px;
        overflow-y: auto;
    }

    .image-picker .tabs {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 8px;
    }

    .image-picker .tabs button.tablink {
        padding: 5px 8px;
        border-radius: 50px;
        font-weight: 600;
    }

    #my_photos label {
        padding: 5px;
        width: 100%;
    }

    #my_photos #year-select,
    #my_photos #month-select,
    #my_photos #collection-select {
        font-size: 14px;
        padding: 6px 28px 6px 10px;
    }

    .image-picker .product-content {
        width: 65%;
        border-left: none;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .image-product-container {
        flex: 1;
        height: auto;
        overflow-y: auto;
    }

    .action-grid-image {
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 8px;
        padding: 0;
    }

    .action-grid-image button {
        font-size: 10px;
        padding: 5px 8px;
        white-space: nowrap;
        flex: 1;
    }

    .action-grid-image button i {
        font-size: 10px;
    }

    .action-grid-image .filter-container {
        width: auto;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .action-grid-image .short-select {
        padding: 5px 24px 5px 8px;
        font-size: 11px;
        min-width: 110px;
    }

    .image-picker .image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .image-picker .image-grid .image-item {
        min-height: 100px;
        border-radius: 10px;
    }

    .image-picker .image-grid .image-item .select-circle {
        width: 16px;
        height: 16px;
        top: 5px;
        left: 5px;
    }

    .image-item .like-count {
        font-size: 10px;
        padding: 2px 5px;
        right: 3px;
        top: 5px;
    }

    .image-picker .footer {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        margin-top: 5px;
    }

    /* .image-picker .footer #continue-btn {
        width: auto;
        padding: 6px 16px;
        font-size: 12px;
        margin-right: 0;
    } */

    .image-picker #loadmore button {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .popup-content {
        width: 95%;
        max-width: 750px;
    }

    .image-picker,
    .myimage-picker {
        padding: 15px 12px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .image-picker .header {
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    /* .image-picker .header h2 {
        font-size: 18px;
        line-height: 28px;
    } */

    .filter-content-wrappr,
    .myimage-picker .filter-content-wrappr {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .filter-content-wrappr .filter-section,
    .myimage-picker .filter-content-wrappr .filter-section {
        max-height: 320px;
        overflow-y: auto;
        flex-shrink: 0;
        margin-bottom: 12px;
    }

    .image-picker .product-content,
    .myimage-picker .product-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        /* min-height: 350px; */
        overflow: hidden;
    }

    .image-product-container {
        flex: 1;
        overflow-y: auto;
        display: block;
    }

    .image-picker .tabs button.tablink {
        font-size: 14px;
        padding: 8px 12px;
    }

    .image-picker #my_photos {
        min-height: 20px;
    }

    #my_photos .years-options,
    #my_photos .months-options,
    #my_photos .collections-options {
        margin-bottom: 8px;
    }

    #my_photos label {
        font-size: 14px;
    }

    .action-grid-image {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .action-grid-image button {
        font-size: 13px;
        padding: 7px 14px;
        flex: 1;
        min-width: calc(50% - 4px);
    }

    .action-grid-image .filter-container {
        width: 100%;
        margin-left: 0;
    }

    .action-grid-image .short-select {
        width: 100%;
        padding: 8px 32px 8px 14px;
        font-size: 14px;
    }

    .info-product-empty {
        min-height: 200px;
    }

    .image-product-container {
        display: block;
    }

    .image-picker .image-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .image-picker .footer {
        padding: 15px 0;
    }

    .image-picker .footer p {
        font-size: 14px;
    }

    .image-picker .footer #continue-btn {
        padding: 8px 18px;
    }
}


@media (max-width: 480px) {
    .popup-content {
        height: 95dvh;
        width: 100%;
        /* max-height: 500px; */
        border-radius: 0;
    }

    .image-picker,
    .myimage-picker {
        padding: 10px;
        border-radius: 10px;
        height: 100%;
        display: flex;
        flex-direction: column;
        width: 98%;
    }

    .image-picker .header {
        margin-bottom: 5px !important;
        margin-top: 3px !important;
        flex-shrink: 0;
        padding: 0px !important;
        height: auto !important;
        border: none !important;
    }
/* 
    .image-picker .header h2 {
        font-size: 16px;
        line-height: 24px;
    } */

    .image-picker .header .close-btn {
        font-size: 18px;
    }

    .filter-content-wrappr,
    .myimage-picker .filter-content-wrappr {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .filter-content-wrappr .time-options {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .filter-content-wrappr .time-options .years-options, .filter-content-wrappr .time-options .months-options {
        flex: 1;
        margin: 0px !important;
        padding: 0px !important;
    }

    .filter-content-wrappr .filter-section,
    .myimage-picker .filter-content-wrappr .filter-section {
        max-height: 240px;
        overflow-y: auto;
        flex-shrink: 0;
        margin-bottom: 10px;
    }

    .action-grid-mobile {
        margin-bottom: 5px;
        padding-bottom: 5px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .action-grid-mobile .mobile-action-buttons, .action-grid-mobile .mobile-sort-container {
        flex: 1;
        margin: 0px !important;
        padding: 0px !important;
    }

    .image-picker .product-content,
    .myimage-picker .product-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        /* min-height: 250px; */
        overflow: hidden;
        border: none;
    }

    .image-product-container {
        flex: 1;
        overflow-y: auto;
        min-height: 200px;
        display: block;
    }

    .image-picker .tabs {
        gap: 6px;
        margin-bottom: 8px;
    }

    .image-picker .tabs button.tablink {
        font-size: 12px;
        padding: 6px 8px;
        white-space: nowrap;
    }

    #my_photos label {
        padding-top: 8px;
        padding-bottom: 8px;
        justify-content: flex-start;
        color: #000000;
    }

    #my_photos #year-select,
    #my_photos #month-select,
    #my_photos #collection-select {
        padding: 8px 32px 8px 12px;
    }

    .mobile-action-btn {
        font-size: 11px;
        padding: 7px 10px;
    }

    .mobile-action-btn i {
        font-size: 11px;
    }

    .short-select-mobile {
        padding: 7px 28px 7px 10px;
        border-radius: 10px;
    }

    .info-product-empty {
        min-height: 150px;
        margin-top: 30px;
    }

    .info-product-empty img {
        width: 90px;
        height: 90px;
    }

    .info-product-empty h3 {
        font-size: 14px;
    }

    .image-product-container {
        display: block;
    }

    .image-picker .image-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .image-picker .image-grid .image-item {
        min-height: 140px;
    }

    .image-picker .image-grid .image-item .select-circle {
        width: 18px;
        height: 18px;
        top: 8px;
        left: 8px;
    }

    .image-item .like-count {
        font-size: 11px;
        padding: 3px 6px;
        right: 3px;
        top: 8px;
    }

    .image-picker.myimage-picker .footer {
        flex-direction: column !important;
        gap: 10px;
        padding: 10px 0;
        align-items: stretch;
        border: none;
        margin-top: 30px;
    }

    .image-picker .footer p {
        font-size: 13px;
        text-align: center;
    }

    .image-picker .footer .footer-action {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    /* .image-picker .footer #continue-btn {
        width: 100%;
        margin-right: 0;
        padding: 10px;
        font-size: 14px;
        width: 50%;
    } */

    .image-picker .footer #continue-btn.continue-btn-collection, .footer .cancel-btn, .footer .close-btn  {
        width: 50%;
    }

    .image-picker #loadmore button {
        font-size: 13px;
        padding: 6px 14px;
    }

    .search-filter-container span {
        font-size: 12px;
    }
}