/* ── Kontra Vote Widget ─────────────────────────────────── */
.kontra-vote-widget {
    margin: 28px 0;
    font-family: inherit;
    border-radius: 14px;
    transition: background .6s ease;
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}
.kvw-inner {
    padding: 22px 26px;
    border-radius: 14px;
}

/* Labels A / B */
.kvw-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
}
.kvw-label-a { color: #0d47a1; }
.kvw-label-b { color: #c62828; }

/* Опции под плъзгача */
.kvw-option-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #777;
    margin-bottom: 6px;
    user-select: none;
}
.kvw-opt-label { flex: 1; text-align: center; }
.kvw-opt-label:first-child { text-align: left; }
.kvw-opt-label:last-child  { text-align: right; }
.kvw-opt-active { font-weight: 700; color: #1d2327; }

/* Slider */
.kvw-slider-wrap { margin-bottom: 10px; }
.kvw-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 4px;
    background: linear-gradient(to right,
        #0d47a1 0%,
        #4a7dc7 25%,
        #888888 50%,
        #c7564a 75%,
        #c62828 100%);
    outline: none;
    cursor: pointer;
}
.kvw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid currentColor;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .15s, border-color .3s;
}
.kvw-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #888;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
}
.kvw-slider:disabled { cursor: default; }

/* Текущ избор */
.kvw-current-label {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    min-height: 22px;
    transition: color .3s;
}

/* Бутон гласуване */
.kvw-actions { text-align: center; margin-bottom: 12px; }
.kvw-btn-vote {
    background: #1d2327;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.kvw-btn-vote:hover   { background: #2c3338; transform: translateY(-1px); }
.kvw-btn-vote:active  { transform: translateY(0); }
.kvw-btn-vote:disabled { opacity: .6; cursor: default; transform: none; }

/* Вече гласувал */
.kvw-voted-msg {
    text-align: center;
    color: #646970;
    font-size: 13px;
    margin-bottom: 10px;
    font-style: italic;
}

/* Guest */
.kvw-guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 12px;
}
.kvw-guest-msg {
    font-size: 13px;
    font-weight: 400;
    color: #50575e;
    text-align: center;
}
.kvw-guest-msg a { color: #2271b1; }

/* Резултати – барове */
.kvw-results { margin-top: 12px; }
.kvw-results--visible { display: block !important; }
.kvw-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}
.kvw-result-label {
    width: 88px;
    flex-shrink: 0;
    font-weight: 600;
    color: #1d2327;
}
.kvw-result-bar-wrap {
    flex: 1;
    height: 10px;
    background: rgba(0,0,0,.08);
    border-radius: 5px;
    overflow: hidden;
}
.kvw-result-bar {
    height: 100%;
    border-radius: 5px;
    transition: width .5s ease;
    min-width: 3px;
}
.kvw-result-pct {
    width: 34px;
    text-align: right;
    color: #646970;
    font-size: 12px;
    flex-shrink: 0;
}
.kvw-total {
    text-align: right;
    font-size: 12px;
    color: #646970;
    margin: 8px 0 0;
}

/* Бутон "Виж всички" */
.kvw-stats-toggle {
    margin-top: 14px;
    text-align: center;
}
.kvw-btn-stats {
    background: transparent;
    border: 1px solid #c3c4c7;
    color: #646970;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.kvw-btn-stats:hover { border-color: #2271b1; color: #2271b1; }

/* Пълна статистика */
.kvw-full-stats { margin-top: 16px; }
.kvw-full-stats-inner h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #50575e;
    margin: 0 0 10px;
}
.kvw-fs-group { margin-bottom: 10px; }
.kvw-fs-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid currentColor;
    padding-left: 10px;
    margin-bottom: 4px;
}
.kvw-fs-count {
    font-size: 12px;
    color: #646970;
}
.kvw-fs-names {
    font-size: 12px;
    color: #50575e;
    padding-left: 14px;
    font-style: italic;
}

/* ── Профил на потребителя ──────────────────────────────── */
.ku-vote-summary { margin-top: 16px; }
.ku-vote-avg-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 24px;
    border: 1.5px solid;
    margin-bottom: 14px;
}
.ku-vote-avg-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}
.ku-vote-avg-text {
    font-size: 13px;
    color: #50575e;
}
.ku-btn-show-votes {
    background: transparent;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #2271b1;
    transition: border-color .15s;
}
.ku-btn-show-votes:hover { border-color: #2271b1; }
.ku-vote-list { margin-top: 14px; }
.ku-vote-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}
.ku-vote-table th,
.ku-vote-table td {
    padding: 7px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}
.ku-vote-table th {
    font-weight: 600;
    color: #50575e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ku-vote-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
}
