
.rw-remove-cart-item-btn {
    width: fit-content;
    height: fit-content;
    position: relative;
    
    --btnSvgSize: 24px;

    button {
        position: relative;
        svg:first-child {
            width: var(--btnSvgSize);
            height: var(--btnSvgSize);
        }
        &:active {
            transform: scale(0.95);   
        }
    }

    .confirmation {
        position: absolute;
        bottom: calc(100% + 1rem);
        left: 0;
        transform: translate(-38%, 5px);
        display: flex;
        align-items: center;
        gap: 1rem;
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s, transform 0.2s;
        &.open {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-38%, 0px);
        }
        
        .confirmation__title {
            font-size: 1.2rem;
            font-weight: 600;
        }
        .confirmation__actions  {
            font-size: 1.2rem;
            display: flex;
            gap: 1rem;
            .yes {
                font-weight: 600;
                color: #f00;
            }
        }
    }
}
.flash {
    animation: flash 3s linear infinite;
}
@keyframes flash {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
