/* ////// Buttons ////// */
:where(.wp-block-button .wp-block-button__link) {
    transition: background .3s ease, color .3s ease, border-color .3s ease;
    line-height: 1.1;
}
/* --- Hover --- */
/* Regular Hover */
:root body :where(.wp-element-button:hover, .wp-block-button__link:hover),
:root body :where(.wp-element-button:focus, .wp-block-button__link:focus) {
    background: var(--wp--preset--color--button-hover-bg-color, #222);
    color: var(--wp--preset--color--button-hover-text-color, snow);
}

/* /// Outline /// */
/* Outline Regular */
.wp-block-button.is-style-slate-outline .wp-block-button__link {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
}

/* Outline Hover */
.wp-block-button.is-style-slate-outline .wp-block-button__link:hover,
.wp-block-button.is-style-slate-outline .wp-block-button__link:focus {
    background: var(--wp--preset--color--button-hover-bg-color, #222);
    color: var(--wp--preset--color--button-hover-text-color, snow);
    border-color: rgba(255,255,255,0.2);
}

.has-light-color .wp-block-button.is-style-slate-outline .wp-block-button__link:hover,
.has-light-color .wp-block-button.is-style-slate-outline .wp-block-button__link:focus,
.has-light-color.wp-block-button.is-style-slate-outline .wp-block-button__link:hover,
.has-light-color.wp-block-button.is-style-slate-outline .wp-block-button__link:focus {
    background: var(--wp--preset--color--light, #222);
    color: var(--wp--preset--color--dark, snow);
    border-color: rgba(0,0,0,0.2);
}

/* ////// No Button Style ////// */
div.is-style-no-button-style a.wp-block-button__link.wp-element-button,
div.is-style-no-button-style div.wp-element-button {
    color: inherit;
    padding: 1px 2px;
    border: unset;
    background-color: unset;
    background-image: linear-gradient(to top, currentColor 100%, currentColor 100%);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left 100%;
    transition: background-size .3s ease, color .3s ease;
    text-decoration: none;
    padding: 4px 2px;
}
div.is-style-no-button-style a.wp-block-button__link.wp-element-button:hover,
div.is-style-no-button-style div.wp-element-button:hover,
div.is-style-no-button-style a.wp-block-button__link.wp-element-button:focus,
div.is-style-no-button-style div.wp-element-button:focus {
    color: inherit;
    background-size: 100% 2px;
}
/* Icons */
.wp-block-button__link:has(svg),
.wp-block-button__link:has(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5ch;
}
.wp-block-button__link svg ,
.wp-block-button__link img {
    height: 1em;
    width: auto !important;
}
.wp-block-button__link img {
    object-fit: contain;
}
.editor-styles-wrapper .wp-block-button__link img[src$=".svg"] {
    filter: 
    opacity(0.1) 
    drop-shadow(0px 0px 0px currentColor) 
    drop-shadow(0px 0px 0px currentColor) 
    drop-shadow(0px 0px 0px currentColor) 
    drop-shadow(0px 0px 0px currentColor) 
    drop-shadow(0px 0px 0px currentColor);
    min-width: calc(1.4rem + .4vw);
}
.wp-block-button__link svg :is(path, circle, rect, polygon, ellipse) {
    fill: currentColor;
    stroke: currentColor;
}
.wp-block-button__link.has-text-align-center {
    justify-content: center;
}

