/* Wrapper del botón y contador */
.cb-votar-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botón votar */
.cb-btn-votar {
    display: inline-block;
    padding: 10px 24px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cb-btn-votar:hover {
    background-color: #c0392b;
}

.cb-btn-votar--disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.cb-btn-votar--disabled:hover {
    background-color: #95a5a6;
}

/* Contador de votos */
.cb-vote-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Modal overlay */
.cb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.cb-modal-overlay--visible {
    display: flex;
}

/* Modal caja */
.cb-modal {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cb-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.cb-modal-close:hover {
    color: #333;
}

.cb-modal-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

/* Campos del formulario */
.cb-modal-field {
    margin-bottom: 14px;
}

.cb-modal-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.cb-modal-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.cb-modal-field input:focus {
    border-color: #e74c3c;
    outline: none;
}

/* Acciones del modal */
.cb-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cb-modal-submit {
    flex: 1;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cb-modal-submit:hover {
    background-color: #c0392b;
}

.cb-modal-submit:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.cb-modal-cancel {
    padding: 10px 20px;
    background-color: #ecf0f1;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cb-modal-cancel:hover {
    background-color: #ddd;
}

/* Mensaje de resultado */
.cb-modal-message {
    padding: 16px;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.cb-modal-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cb-modal-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Toast notification */
.cb-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 400px;
}

.cb-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.cb-toast--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cb-toast--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
