.variant-url {
    width: 80px;
    float: left;
    margin-right: 8px;
    margin-bottom: 8px;
}

    .variant-url > img {
        padding: 0;
        border: 1px lightgray solid;
    }

.variant-url {
    padding: 0;
    
}

.variant-url:hover > img {
    border-color: var(--zaseni-rosa);
}

.variant-url.selected {
    position: relative;
    cursor: inherit;
}

    .variant-url.selected > img {
        border-color: #e71f85;
    }


.ps-hidden-by-js {
    display: none;
}

/* Custom select styles */
.custom-select-container {
    position: relative;
    font-family: Arial;
    margin-bottom: 10px;
}

.custom-select-hide {
    display: none;
}

.custom-select-selected {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #e71f85;
}

/*.custom-select-selected::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #000 transparent transparent transparent;
}

.custom-select-arrow-active::after {
    border-color: transparent transparent #000 transparent;
    top: 7px;
}

.custom-select-items {
    background-color: #ffffff;
    overflow-y: auto;
}
*/

.custom-select-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #000000; /* Default to black for in-stock items */
    position: relative;
    border: 2px solid transparent;
}

.custom-select-item:hover {
    outline: var(--zaseni-rosa) 2px solid;
    border-radius: 5px;
}

.custom-select-item.selected-item {
    border-color: #e71f85;
}

/*.custom-select-item.selected-item:after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0;
    height: 0;
    right: 0px;
    border-bottom: 10px solid #e71f85;
    border-left: 10px solid transparent;
}*/

.custom-select-item img.custom-select-img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    border: 2px solid transparent;
}


/* Text styles for out of stock and in stock items */
.text-out-of-stock {
    color: #aaaaaa;
}

.text-in-stock {
    color: #000000;
}

.text-bold {
    font-weight: bold;
}

/* Styles for "Show More" button */
#show-more-btn {
    width: 80px;
    float: left;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    cursor: pointer;
    color: #e71f85;
    border-radius: 10px;
}

/* Make out-of-stock images appear lighter */
.image-out-of-stock {
    opacity: 0.1;
}

/* Popup modal styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #ffffff;
    margin: 0.5rem;
    padding: 0;
    border: 1px solid #888;
    width: 100%; /* Full width for mobile */
    max-width: 800px; /* Max width for larger screens */
    height: 80%; /* 80% height for mobile */
    max-height: 80%; /* 80% height for mobile */
    display: flex;
    flex-direction: column; /* Ensure content is arranged in a column */
    overflow: hidden; /* Hide overflow */
    border-radius: 10px;
}

@media (min-width: 768px) {
    .popup-content {
        width: 50%; /* 50% width for desktops */
        height: 80%; /* 50% height for desktops */
        max-height: 80%; /* Ensure max height for desktops */
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #888;
}

.total-products {
    font-size: 16px;
    font-weight: bold;
}

.close-btn {
    color: #aaaaaa;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

/* Prevent scrolling on the page when the popup is open */
body.no-scroll {
    overflow: hidden;
}

.custom-select-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}
