/* Common styles for frontend and editor */

/* Layout for the standard WP button classes to support icons */
.wp-block-button__link.exprimenet-button-wrapper {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box; /* Important for border width */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effects using CSS variables */
.wp-block-button__link.exprimenet-button-wrapper:hover {
    background-color: var(--hover-bg) !important;
    color: var(--hover-color) !important;
}

.exprimenet-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em; /* Size relative to text */
    height: 1.2em;
    line-height: 1;
}

.exprimenet-button-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.exprimenet-button-text {
    line-height: normal;
    display: inline-block;
}
