.swatchy-element {
    position: absolute;
    top: 40px;
    left: 35%;
    margin: 100px auto;
    max-width: 308px;
    font-family: verdana;
    font-size: 13px;
    padding: 10px;
    border: 2px solid grey;
    z-index: 100000000000000000;
    display: none;
    background: #E9E9E8;
}


@media screen and (max-width: 540px) {
    .swatchy-element {
        position: absolute;
        top: -54px;
        left: 4%;
        margin: 100px auto;
        max-width: 308px;
        font-family: verdana;
        font-size: 13px;
        padding: 10px;
        border: 2px solid grey;
        z-index: 100000000000000000;
        display: none;
        background: #E9E9E8;
    }

}

@media screen and (max-width: 1024px) {
    .swatchy-element {
        position: absolute;
        top: -54px;
        left: 4%;
        margin: 100px auto;
        max-width: 308px;
        font-family: verdana;
        font-size: 13px;
        padding: 10px;
        border: 2px solid grey;
        z-index: 100000000000000000;
        display: none;
        background: #E9E9E8;
    }

}

@media screen and (max-width: 1440px) {
    .swatchy-element {
        position: absolute;
        top: -54px;
        left: 4%;
        margin: 100px auto;
        max-width: 308px;
        font-family: verdana;
        font-size: 13px;
        padding: 10px;
        border: 2px solid grey;
        z-index: 100000000000000000;
        display: none;
        background: #E9E9E8;
    }

}

 


@media screen and (max-width: 767px) {
    .swatchy-element {
        position: absolute;
        top: -54px;
        left: 4%;
        margin: 100px auto;
        max-width: 308px;
        font-family: verdana;
        font-size: 13px;
        padding: 10px;
        border: 2px solid grey;
        z-index: 100000000000000000;
        display: none;
        background: #E9E9E8;
    }

}

.swatchy-swatches {
    display: grid;
    grid-template-columns: repeat(11, 24px);
    justify-items: center;
    grid-gap: 8px 2px;
}

.swatchy-color-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
}

.swatchy-color-button {
    cursor: pointer;
}

.swatchy-display {
    margin: 4px;
    height: 48px;
    max-width: 48px;
    border-radius: 8px;
    border: none;
}



/* From uiverse.io by @Voxybuns */
.swatchy-button {
    /*   --button_radius: 0.75em;
    --button_color: #e8e8e8;
    --button_outline_color: #000000;*/
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: var(--button_radius);
    background-color: #fffdfd;
    padding: 0;
}

.swatchy-button-top {
    display: block;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.75em 1.5em;
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
    background-color: #ffffff
}

.swatchy-button:hover .swatchy-button-top {
    /* Pull the button upwards when hovered */
    transform: translateY(-0.33em);
}

.swatchy-button:active .swatchy-button-top {
    /* Push the button downwards when pressed */
    transform: translateY(0);
}
