
.tb-brochure-shopping-cart-button__action {
    position: relative;
    cursor: pointer;
    color: theme('colors.secondary.500');
    background-color: theme('colors.white');

    .tb-brochure-shopping-cart-button__checkmark-icon {
        display: none;
    }

    &::before {
        content: '';
        position: absolute;
        /*
        * Use magic numbers to match size of parent
        * circle to overlay grey borders in active state.
        */
        top: -2px;
        left: -2px;
        width: calc(100% + 4px);
        height: calc(100% + 4px);
        border-radius: 50%;
        transform: scale(0);
        transform-origin: center center;
        transition: transform 250ms ease-in-out;
        background-color: theme('colors.secondary.500');
    }
}

.tb-brochure-shopping-cart-button__checkbox:checked + .tb-brochure-shopping-cart-button__action {
    color: theme('colors.white');

    .tb-brochure-shopping-cart-button__action-icon {
        display: none;
    }

    .tb-brochure-shopping-cart-button__checkmark-icon {
        display: block;
    }

    &::before {
        transform: scale(1);
    }
}
