/* Select From MyAsset Modal */
.sgrp-media-edit-modal-select-from-myasset-modal {
    position: absolute;
    width: 274px;
    max-height: 450px;
    min-height: 346px;
    background: var(--color-soft-white);
    border-radius: 12px;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
    padding: 14px 4px;
    box-sizing: border-box;
    flex-direction: column;
    top: 64px;
    left: 306px;
    gap: 8px;
}

/* Header */
.sgrp-media-edit-modal-select-from-myasset-header {
    padding: 0 8px;
    position: relative;
}

.sgrp-media-edit-modal-select-from-myasset-header .sgrp-media-edit-modal-myasset-dropdown-menu {
    top: calc(100% + 6px);
    left: 8px;
}

.sgrp-media-edit-modal-select-from-myasset-dropdown-container {
    width: 100%;
}

.sgrp-media-edit-modal-select-from-myasset-dropdown-container .sgrp-media-edit-modal-myasset-dropdown {
    padding: 4px;
}

/* Content */
.sgrp-media-edit-modal-select-from-myasset-content {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.sgrp-media-edit-modal-select-from-myasset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 10px;
}

/* Custom scrollbar */
.sgrp-media-edit-modal-select-from-myasset-grid::-webkit-scrollbar {
    width: 6px;
}

.sgrp-media-edit-modal-select-from-myasset-grid::-webkit-scrollbar-track {
    background: transparent;
}

.sgrp-media-edit-modal-select-from-myasset-grid::-webkit-scrollbar-thumb {
    background: var(--color-gray-600);
    border-radius: 25px;
}

.sgrp-media-edit-modal-select-from-myasset-grid::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Image Cards */
.sgrp-media-edit-modal-select-from-myasset-card {
    width: 120px;
    height: 67px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(var(--color-soft-white), var(--color-soft-white)) padding-box, var(--color-gray-200) border-box;
	border: 1px solid transparent;
	transition: background-color 0.2s ease;
    background-clip: padding-box, border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sgrp-media-edit-modal-select-from-myasset-card.is-selected {
    background: linear-gradient(var(--color-soft-white), var(--color-soft-white)) padding-box, var(--color-grad-pink-purple) border-box;
	border: 2px solid transparent;
}

.sgrp-media-edit-modal-select-from-myasset-card img {
    width: 102%;
    height: 104%;
    object-fit: contain;
}

/* Expand Button */
.sgrp-media-edit-modal-select-from-myasset-expand-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.sgrp-media-edit-modal-select-from-myasset-card:hover .sgrp-media-edit-modal-select-from-myasset-expand-btn {
    opacity: 1;
}

/* Host button open state */
.sgrp-media-edit-modal-sidebar-myasset-button.is-open {
    background: var(--color-gray-100);
}
