.is-b8add565-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 0 40px; /* Padding to ensure swatches are never cut off by the container edge */
    box-sizing: border-box;
}

.is-b8add565-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.is-b8add565-image-container img {
    transition: opacity 0.3s ease;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.is-b8add565-swatches-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px; /* Absolutely position next to the right edge of container */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.is-b8add565-swatch {
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Specific styling for white or very light colors so they are visible */
.is-b8add565-swatch[style*="background-color: #ffffff"],
.is-b8add565-swatch[style*="background-color: #FFFFFF"],
.is-b8add565-swatch[style*="background-color: rgb(255, 255, 255)"] {
    border-color: #e0e0e0;
}

.is-b8add565-swatch:hover {
    transform: scale(1.1);
}

/* Active swatch ring indicator */
.is-b8add565-swatch.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

/* Responsive design - stack swatches below on mobile */
@media (max-width: 767px) {
    .is-b8add565-container {
        flex-direction: column;
        padding: 0 15px;
    }
    .is-b8add565-swatches-container {
        position: static;
        flex-direction: row;
        transform: none;
        margin-top: 20px;
    }
}
