/**
 * Estilos del frontend para WC Certificado Discapacidad
 */

/* Contenedor principal */
.wc-certificado-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Mensaje informativo */
.wc-certificado-mensaje {
    display: none;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-certificado-mensaje .dashicons {
    vertical-align: middle;
    margin-right: 5px;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Mensaje con certificado (azul) */
.mensaje-con-certificado {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Mensaje sin certificado - sillas (naranja) */
.mensaje-sin-certificado-sillas {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Mensaje sin certificado - scooter (rojo) */
.mensaje-sin-certificado-scooter {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Opciones de certificado */
.wc-certificado-opciones {
    margin-top: 10px;
}

.wc-certificado-opciones h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wc-certificado-option {
    display: block;
    margin: 8px 0;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.wc-certificado-option:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.wc-certificado-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.wc-certificado-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #007bff;
}

/* Estilo para el label cuando el radio está checked */
.wc-certificado-option input[type="radio"]:checked {
    accent-color: #007bff;
}

/* Cambiar el fondo del label cuando está seleccionado */
.wc-certificado-option.selected,
.wc-certificado-option input[type="radio"]:checked ~ * {
    border-color: #007bff;
}

/* Agregar clase via JavaScript para mejor compatibilidad */
label.wc-certificado-option.active {
    border-color: #007bff;
    background: #e7f3ff;
}

/* Información en carrito */
.wc-certificado-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-certificado-wrapper {
        padding: 15px;
    }

    .wc-certificado-mensaje {
        font-size: 13px;
        padding: 10px 12px;
    }

    .wc-certificado-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Compatibilidad con temas oscuros */
@media (prefers-color-scheme: dark) {
    .wc-certificado-wrapper {
        background: #2d3748;
        border-color: #4a5568;
    }

    .wc-certificado-opciones h4 {
        color: #e2e8f0;
    }

    .wc-certificado-option {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .wc-certificado-option:hover {
        border-color: #718096;
        background: #2d3748;
    }

    .wc-certificado-option.active {
        background: #2c5282;
        border-color: #3182ce;
    }
}