.ccm-block-custom-button + .ccm-block-custom-button {
    margin-top: 0.5rem;
}

.ccm-block-custom-button:last-of-type {
    margin-bottom: 1rem;
}

.ccm-block-custom-button .btn-icon-left {
    padding-left: 0.5rem;
}

.ccm-block-custom-button .btn-icon-right {
    padding-right: 0.5rem;
}

/* The wrapper draws the circle and centres the icon, whatever its width */
.ccm-block-custom-button .btn-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background-color: rgba(244, 244, 244, 0.2);
}

/* Add the class "buttons-full-width" to an area to stretch its buttons */
.buttons-full-width .ccm-block-custom-button .btn {
    display: flex;
    align-items: center;
    width: 100%;
}

/* The text takes the remaining room, which pushes the icon to the edge */
.buttons-full-width .ccm-block-custom-button .btn > span:not(.btn-icon-wrapper) {
    flex: 1;
}

.buttons-full-width .ccm-block-custom-button .btn-icon-wrapper {
    flex-shrink: 0;
}


.buttons-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: end;
    gap: 0.5rem;
}

.buttons-row .ccm-block-custom-button + .ccm-block-custom-button {
    margin-top: 0px;
}