/*
 * Icon support for the core Button block. The icon is rendered as a CSS
 * mask colored with currentColor, so it automatically matches the
 * button's own text color across style variants (fill, outline, custom
 * colors) instead of carrying a fixed SVG fill.
 */
.wp-block-button.has-icon .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.wp-block-button.has-icon-left .wp-block-button__link::before,
.wp-block-button.has-icon-right .wp-block-button__link::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--urlr-button-icon);
    mask-image: var(--urlr-button-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
