/* Upvote button. Shared by the Post Filter block cards and the [gf_upvote_button] shortcode. */
.post-upvote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 6px 6px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #2d3748;
    text-decoration: none;
    background-color: var(--wp--preset--color--white, #fff);
    border: 1px solid #cbd5e0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.post-upvote__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post-upvote__text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.post-upvote svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.2s ease;
}
.post-upvote .count {
    padding: 0 10px 0 10px;
    border-left: 1px solid #cbd5e0;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.2s ease;
}
.post-upvote:hover {
    top: 0;
    box-shadow: none;
    text-decoration: none;
    color: #1a202c;
    background-color: #edf2f7;
    border-color: #a0aec0;
}
.post-upvote:hover .count {
    border-left-color: #a0aec0;
}
.post-upvote:hover svg {
    transform: translateY(-2px);
}
.post-upvote:focus-visible {
    outline: 2px solid #4a5568;
    outline-offset: 2px;
}
.post-upvote:active {
    transform: scale(0.96);
}
.post-upvote.is-voted {
    color: var(--wp--preset--color--white, #fff);
    background-color: var(--wp--preset--color--accent-tertiary, #2d3748);
    border-color: var(--wp--preset--color--accent-tertiary, #2d3748);
    cursor: default;
}
.post-upvote.is-voted .count,
.post-upvote.is-voted:hover .count {
    border-left-color: rgba(255, 255, 255, 0.4);
}
.post-upvote.is-voted:hover svg,
.post-upvote[disabled]:hover svg {
    transform: none;
}
.post-upvote[disabled] {
    opacity: 0.6;
    cursor: default;
}
