// The "Unlock Premium Features" button from the Hub upgrade card
// ("Unlock More Power in Every Embed", templates/hub.php). Every
// unlock-to-Pro button in the admin apps uses this look so the upsell
// reads the same everywhere. The crown is assets/images/icons/crown.png,
// inlined so each bundle can use it without an asset URL.

$ep-unlock-crown: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAACDUlEQVR4nO1YMUscQRj9Iuz3aZB0AbGQC9inSJcqTULEXxCrraySOpBK/AsJeFsFUiT/wWa+yYlYWKSwFAUVCSm1MiE+8bjb827Xvdvd2b0smQev2/nmvZn3plgiDw8PD49/EYhoFW06wxadIqIVahpwK7xN6PGEmgY03kBEKz0TJ2jTa2oiYOUVVF42snwAPYDKPlR+ADRTmx44yi40WIMVdGmCN4XnbOXU48IA9imA5cPYgPIRDojrMRCVLx+MvIvFD/i20KyohB6obGKX5nKtMTQPyz8TBpR/YY8e5Zp1QAzlD7lEDw1Q/twtYmd2aeI1VjZSTr/PjYnn7MwtwvLurYbiBqyE8ekZeTH2++/zj6FykWHgEubhwvh9Z59D+by3JixuwEjrzuZ/oPw+83vlTxni+1H6mD1D1qFyNXjBpFXYQHeg5eNhEfwlrRew8mRo43sNyG8YWU7Nu+VoZK/jUuLjHiRFJHoBlW9jxQ/4NTXvNnFbxfOf6EHaq9LrBTrBU6j8ndiAyjU6wbOUvI8yLG9guAejQq66mbW8neP0+/HYTuR9lGXzf38P6iCXz39mD6qmOsj/2B5Uy9CdgaweVEXjKP/T6QG7y/9UeqAO8z+lHoTuDdTZA+M4//X2gN3nv9YeaAX5r7kHYXUG6uiBqSj/sYnBH4JKSFXDG2j7G/jPI+Th4eHhQXdwA668OoF3W4hAAAAAAElFTkSuQmCC");

@mixin ep-unlock-premium-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #595092;
    background-image: none;
    color: #fff;
    font-family: inherit;
    font-size: 13.6px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transform: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;

    &::before {
        content: "";
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin-top: -2px;
        background: $ep-unlock-crown center / contain no-repeat;
    }

    // Older buttons carried their own arrow / sparkle icons.
    svg {
        display: none;
    }

    &:hover,
    &:focus,
    &:active,
    &:visited {
        background: #4a4280;
        color: #fff;
        transform: none;
        box-shadow: none;
        text-decoration: none;
    }

    &:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(89, 80, 146, 0.3);
    }
}
