/* Contenedor general del módulo de cotización Divi */
.wc-divi-cotizador-wrapper {
    margin: 25px 0;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.wc-divi-cotizador-wrapper * {
    box-sizing: border-box;
}

/* Tarjeta / Marco del formulario */
.wc-divi-cotizador-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.wc-divi-cotizador-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Título */
.wc-divi-cotizador-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.wc-divi-cotizador-title svg {
    color: #3182ce;
}

/* Badge con información del producto detectado */
.wc-divi-cotizador-product-badge {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3182ce;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.wc-divi-cotizador-product-badge .badge-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 2px;
}

.wc-divi-cotizador-product-badge .badge-product-name {
    color: #2b6cb0;
    font-size: 0.95rem;
}

.wc-divi-cotizador-product-badge .badge-sku {
    margin-left: 6px;
    font-size: 0.85rem;
}

.wc-divi-cotizador-product-badge .badge-sku code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #2d3748;
}

/* Filas y columnas */
.wc-divi-form-row {
    margin-bottom: 16px;
}

.wc-divi-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .wc-divi-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Grupos de campos */
.wc-divi-form-group {
    display: flex;
    flex-direction: column;
}

.wc-divi-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.wc-divi-form-group input,
.wc-divi-form-group textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none !important;
    box-sizing: border-box !important;
}

.wc-divi-form-group input:focus,
.wc-divi-form-group textarea:focus {
    border-color: #3182ce !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15) !important;
}

.wc-divi-form-group.has-error input,
.wc-divi-form-group.has-error textarea {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

.wc-divi-qty-group {
    max-width: 180px;
}

/* Alertas de éxito y error */
.wc-divi-form-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.wc-divi-form-alert.alert-success {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.wc-divi-form-alert.alert-error {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
}

.wc-divi-form-alert.alert-info {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2c5282;
}

/* Botones de acción */
.wc-divi-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wc-divi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    flex: 1 1 200px;
}

/* Botón Correo */
.wc-divi-btn-submit {
    background-color: #3182ce;
    color: #ffffff !important;
}

.wc-divi-btn-submit:hover:not(:disabled) {
    background-color: #2b6cb0;
    transform: translateY(-1px);
}

/* Botón WhatsApp */
.wc-divi-btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
}

.wc-divi-btn-whatsapp:hover:not(:disabled) {
    background-color: #20ba59;
    transform: translateY(-1px);
}

.wc-divi-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner animado */
.wc-divi-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wc-divi-spin 0.8s linear infinite;
}

@keyframes wc-divi-spin {
    to {
        transform: rotate(360deg);
    }
}
