/* ========================================
   Стили плагина Parader Voting
   ======================================== */

.p-voting { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 
    max-width: 600px; 
    margin: 20px 0; 
    background: #fff; 
    padding: 20px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    box-sizing: border-box;
}

.p-voting h3 { 
    margin-top: 0; 
    margin-bottom: 20px; 
    font-size: 18px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    color: #222;
}

/* Блок одного варианта ответа */
.p-option-block { 
    margin-bottom: 15px; 
}

/* Чекбокс / Радиокнопка */
.p-option-label { 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    font-size: 15px; 
    font-weight: 500; 
    margin-bottom: 6px; 
    color: #333;
}

.p-option-label input { 
    margin-right: 10px; 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
    flex-shrink: 0;
}

/* Поле для своего варианта ответа */
.p-custom-input { 
    width: 100%; 
    border: 1px solid #ccc; 
    padding: 8px; 
    border-radius: 4px; 
    margin-top: 5px; 
    display: none; 
    box-sizing: border-box; 
    font-family: inherit;
    font-size: 14px;
}

.p-custom-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

/* Полоса статистики */
.p-stat-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: 4px; 
    margin-left: 28px; 
}

.p-stat-bg { 
    flex-grow: 1; 
    background: #f0f0f0; 
    border-radius: 4px; 
    height: 12px; 
    overflow: hidden; 
}

.p-stat-fill { 
    background: #ff4d4d; 
    height: 100%; 
    transition: width 0.8s ease; 
}

.p-stat-text { 
    font-size: 12px; 
    color: #666; 
    min-width: 75px; 
    text-align: right; 
    font-weight: bold; 
    white-space: nowrap;
}

/* Сообщения об успехе / ошибке */
.p-msg { 
    margin-top: 15px; 
    padding: 10px; 
    border-radius: 4px; 
    font-weight: bold; 
    display: none; 
    font-size: 14px;
}

.p-msg.ok { 
    background: #d4edda; 
    color: #155724; 
    display: block; 
    border: 1px solid #c3e6cb;
}

.p-msg.err { 
    background: #f8d7da; 
    color: #721c24; 
    display: block; 
    border: 1px solid #f5c6cb;
}

/* Подвал формы */
.p-footer { 
    margin-top: 25px; 
    padding-top: 15px; 
    border-top: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 10px;
}

.p-voting button { 
    background: #222; 
    color: #fff; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 14px; 
    transition: background 0.2s ease;
}

.p-voting button:hover { 
    background: #0073aa; 
}

.p-total-text { 
    font-size: 13px; 
    color: #666; 
}