.biodiv-button-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    overflow: hidden;
    border-radius: 999px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
}

.biodiv-button-pill.biodiv-action-button {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    margin-top: 0;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    transition: background-color 180ms ease, color 180ms ease;
}

.biodiv-button-pill.biodiv-action-button:hover,
.biodiv-product-item:hover .biodiv-view-study,
.biodiv-product-item:focus-within .biodiv-view-study,
.biodiv-blog-post-link:hover .biodiv-read-more {
    background-color: #2c2c2c;
    color: #ffffff;
    text-decoration: none;
}

.biodiv-action-button-wrap { width: 100%; text-align: left; }
.biodiv-action-button-small { min-height: 40px; padding: 11px 18px; font-size: 14px; }
.biodiv-action-button-medium { min-height: 48px; padding: 16px 24px; font-size: 15px; }
.biodiv-action-button-large { min-height: 56px; padding: 19px 30px; font-size: 17px; }

.biodiv-action-button .biodiv-button-text {
    display: block;
    min-width: 0;
    font: inherit;
    color: inherit;
    transition: transform 220ms ease;
}

.biodiv-action-button .biodiv-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    margin-right: 8px;
    color: var(--biodiv-button-active-icon-color, var(--biodiv-button-icon-color, inherit));
    transition: transform 220ms ease;
}

.biodiv-button-pill.biodiv-action-button .biodiv-button-arrow {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 var(--biodiv-reveal-width, 0px);
    width: var(--biodiv-reveal-width, 0px);
    max-width: var(--biodiv-reveal-width, 0px);
    height: 1.2em;
    margin-left: var(--biodiv-reveal-gap, 0px);
    overflow: hidden;
    opacity: var(--biodiv-reveal-opacity, 0);
    color: var(--biodiv-button-active-icon-color, var(--biodiv-button-icon-color, inherit));
    filter: blur(var(--biodiv-reveal-blur, 6px));
    transform: translateX(var(--biodiv-reveal-offset, -4px));
    transition: flex-basis 220ms ease, width 220ms ease, max-width 220ms ease, margin 220ms ease, opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.biodiv-action-button:hover,
.biodiv-action-button:focus-visible,
.biodiv-product-item:hover .biodiv-view-study,
.biodiv-product-item:focus-within .biodiv-view-study,
.biodiv-blog-post-link:hover .biodiv-read-more,
.biodiv-blog-post-link:focus-visible .biodiv-read-more {
    --biodiv-reveal-width: 1.2em;
    --biodiv-reveal-gap: 6px;
    --biodiv-reveal-opacity: 1;
    --biodiv-reveal-blur: 0px;
    --biodiv-reveal-offset: 0px;
    --biodiv-button-active-icon-color: var(--biodiv-button-hover-icon-color, var(--biodiv-button-icon-color, inherit));
}

.biodiv-action-button .biodiv-button-arrow,
.biodiv-action-button .biodiv-action-button-icon {
    color: var(--biodiv-button-active-icon-color, var(--biodiv-button-icon-color, inherit));
}

.biodiv-action-button .biodiv-button-arrow i,
.biodiv-action-button .biodiv-action-button-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    font-size: 1em;
    line-height: 1;
    color: inherit !important;
}

.biodiv-action-button .biodiv-action-button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.biodiv-action-button .biodiv-button-text + .biodiv-action-button-icon {
    margin-left: 8px;
    margin-right: 0;
}

.biodiv-action-button .biodiv-button-arrow svg {
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.biodiv-action-button.biodiv-action-button-icon-left .biodiv-button-arrow {
    order: -1;
    margin-left: 0;
    margin-right: var(--biodiv-reveal-gap, 0px);
}

.footer-cta-button.biodiv-action-button {
    font-size: 15px;
    font-weight: 500;
    padding: 16px 24px;
}

.footer-cta-button.biodiv-action-button .biodiv-action-button-icon i { font-size: 1em; }
.biodiv-study-link-wrap { padding: 16px 15px 20px; margin-top: auto; }
.biodiv-study-link-wrap .biodiv-view-study { width: 100%; }
.biodiv-blog-post-content .biodiv-read-more.biodiv-action-button { display: inline-flex; }
.biodiv-action-button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Mobile reveals the icon in place without resizing the button. */
@media (max-width: 1024px) {
    .biodiv-button-pill.biodiv-action-button .biodiv-button-arrow {
        position: absolute;
        right: 10px;
        top: 50%;
        width: 1em;
        max-width: 1em;
        height: 1em;
        margin: 0;
        transform: translate(var(--biodiv-reveal-offset, -4px), -50%);
    }

    .biodiv-action-button:hover .biodiv-button-text,
    .biodiv-action-button:hover .biodiv-action-button-icon,
    .biodiv-product-item:hover .biodiv-view-study .biodiv-button-text,
    .biodiv-blog-post-link:hover .biodiv-read-more .biodiv-button-text {
        transform: translateX(-6px);
    }

    .biodiv-action-button.biodiv-action-button-icon-left .biodiv-button-arrow {
        left: 10px;
        right: auto;
        margin: 0;
    }

    .biodiv-action-button-icon-left:hover .biodiv-button-text { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .biodiv-action-button,
    .biodiv-action-button .biodiv-button-text,
    .biodiv-action-button .biodiv-action-button-icon,
    .biodiv-action-button .biodiv-button-arrow { transition: none; }
}
