.woocommerce ul.products li.product { position: relative; }
.tp-color-preview { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; pointer-events: none; }
.tp-color-preview button {
    pointer-events: auto;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 1px solid #245b4226;
    border-radius: 50%;
    background: #ffffffee;
    color: var(--green);
    font-size: 0;
    cursor: pointer;
    appearance: none;
}
.tp-color-preview button::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateX(-2px) rotate(45deg);
}
.tp-color-preview button[data-step='-1']::before { transform: translateX(2px) rotate(-135deg); }
.tp-color-preview button:hover { background: white; }
.tp-color-preview button { position: relative; display: block; line-height: 0; }
.tp-color-preview button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-65%, -50%) rotate(45deg);
}
.tp-color-preview button[data-step='-1']::before { transform: translate(-35%, -50%) rotate(-135deg); }