.entity-favorite-actions {
    margin: 0 0 1.5em;
}

.entity-favorite-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    min-height: 40px;
    padding: 0.55em 1em;
    border: 1px solid #d83b66;
    border-radius: 999px;
    background: #fff;
    color: #d83b66;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.entity-favorite-button.is-favorited {
    background: #d83b66;
    color: #fff;
}

.entity-favorite-button:focus-visible {
    outline: 2px solid #242424;
    outline-offset: 2px;
}

.entity-favorite-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.entity-favorite-error {
    margin: 0.5em 0 0;
    color: #b00020;
    font-size: 0.9em;
}

.entity-favorite-card-host {
    position: relative;
}

.entity-favorite-actions--card {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    margin: 0;
}

.entity-favorite-button--compact {
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(20, 20, 20, 0.68);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.entity-favorite-button--compact.is-favorited {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(20, 20, 20, 0.68);
    color: #d83b66;
}

.entity-favorite-error--card {
    position: absolute;
    top: 46px;
    right: 0;
    width: 180px;
    margin: 0;
    padding: 0.4em 0.55em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .entity-favorite-button:hover {
        background: #d83b66;
        color: #fff;
    }

    .entity-favorite-button--compact:hover {
        background: rgba(20, 20, 20, 0.68);
    }

    .entity-favorite-button--compact.is-favorited:hover {
        border-color: rgba(255, 255, 255, 0.8);
        background: rgba(20, 20, 20, 0.68);
        color: #d83b66;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.34);
    }
}

@media screen and (max-width: 480px) {
    .entity-favorite-button:not(.entity-favorite-button--compact) {
        width: 100%;
        justify-content: center;
    }

    .entity-favorite-actions--card {
        top: 6px;
        right: 6px;
    }
}
