.ho-vote-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ho-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ho-vote-btn.is-active {
    border-color: #0f766e;
    color: #0f766e;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px #0f766e;
}

.ho-vote-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.ho-vote-message {
    width: 100%;
    min-height: 20px;
    font-size: 13px;
}

.ho-vote-message.is-error { color: #b42318; }
.ho-vote-message.is-success { color: #027a48; }

.ho-vote-stats {
    display: grid;
    gap: 6px;
}

/* Compact / icon bar mode */
.ho-vote-wrap--compact {
    gap: 8px;
}

.ho-vote-wrap--compact .ho-vote-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.ho-vote-wrap--compact .ho-vote-btn--compact {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    padding: 0 14px;
    overflow: hidden;
    border: 2px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    gap: 10px;
    box-shadow: none;
    white-space: nowrap;
    transition: max-width 0.22s ease, width 0.22s ease, padding 0.22s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ho-vote-wrap--compact .ho-vote-btn--compact:hover,
.ho-vote-wrap--compact .ho-vote-btn--compact:focus-visible {
    max-width: 190px;
    width: auto;
    padding-right: 18px;
}

.ho-vote-wrap--compact .ho-vote-btn--compact.is-active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.ho-vote-wrap--compact .ho-vote-btn--compact:hover {
    transform: translateY(-1px);
}

.ho-vote-wrap--compact .ho-vote-icon {
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.ho-vote-wrap--compact .ho-vote-svg {
    display: block;
    width: 18px;
    height: 18px;
}

.ho-vote-wrap--compact .ho-vote-label {
    display: inline-block;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 0.14s ease, transform 0.18s ease;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.ho-vote-wrap--compact .ho-vote-btn--compact:hover .ho-vote-label,
.ho-vote-wrap--compact .ho-vote-btn--compact:focus-visible .ho-vote-label {
    opacity: 1;
    transform: translateX(0);
}

.ho-vote-wrap--compact .ho-vote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #111111;
}

.ho-vote-wrap--compact .ho-vote-message {
    width: 100%;
    margin-top: 4px;
    min-height: 16px;
    font-size: 12px;
}


/* v0.4.1 icon refinements */
.ho-vote-wrap--compact .ho-vote-btn--compact {
    font-family: inherit;
}

.ho-vote-wrap--compact .ho-vote-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.ho-vote-wrap--compact .ho-vote-btn--compact.is-active .ho-vote-svg {
    stroke: currentColor;
}

.ho-vote-wrap--compact .ho-vote-btn--compact:hover .ho-vote-label,
.ho-vote-wrap--compact .ho-vote-btn--compact:focus-visible .ho-vote-label,
.ho-vote-wrap--compact .ho-vote-btn--compact.is-active .ho-vote-label {
    opacity: 1;
    transform: translateX(0);
}


/* v0.4.2 compact bar refinements */
.ho-vote-wrap--compact .ho-vote-bar {
    gap: 12px;
}

.ho-vote-wrap--compact .ho-vote-btn--compact {
    position: relative;
}

.ho-vote-wrap--compact .ho-vote-btn--compact.is-active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.ho-vote-wrap--compact .ho-vote-btn--compact.is-active .ho-vote-label {
    opacity: 0;
    max-width: 0;
    transform: translateX(4px);
}

.ho-vote-wrap--compact .ho-vote-btn--compact .ho-vote-label {
    max-width: 0;
}

.ho-vote-wrap--compact .ho-vote-btn--compact:hover .ho-vote-label,
.ho-vote-wrap--compact .ho-vote-btn--compact:focus-visible .ho-vote-label {
    max-width: 220px;
}

.ho-vote-wrap--compact .ho-vote-svg {
    overflow: visible;
}

.ho-vote-wrap--compact .ho-vote-btn--compact .ho-vote-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

/* v0.4.5 exact SVG icon rendering */
.ho-vote-wrap--compact .ho-vote-icon-inner{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
}

.ho-vote-wrap--compact .ho-vote-svg{
    display:block !important;
    width:20px;
    height:20px;
    fill:currentColor;
    stroke:none;
}

.ho-vote-wrap--compact .ho-vote-btn--compact{
    transition: max-width 0.22s ease, width 0.22s ease, padding 0.22s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ho-vote-wrap--compact .ho-vote-btn--compact:hover,
.ho-vote-wrap--compact .ho-vote-btn--compact:focus-visible{
    box-shadow:0 4px 14px rgba(0,0,0,0.12);
}

.ho-vote-wrap--compact .ho-vote-btn--compact.is-active{
    animation: hoVotePop 0.22s ease;
}

@keyframes hoVotePop {
    0% { transform: scale(0.94); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
