/**
 * Estilos Simplificados para Checkout RFQ
 * Theme: RedStihl
 * Layout: 2 columnas simples
 */

/* =============================================================================
   CONTENEDOR PRINCIPAL
   ============================================================================= */

.rfq-checkout-simple {
	padding: 40px 0;
	background: #f8f8f8;
}

.rfq-checkout-simple .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* =============================================================================
   HEADER
   ============================================================================= */

.rfq-header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #ff6600;
}

.rfq-header h1 {
	font-size: 2rem;
	color: #333;
	margin: 0;
	font-weight: 700;
}

/* =============================================================================
   LAYOUT DE 2 COLUMNAS
   ============================================================================= */

.rfq-two-columns {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 30px;
	align-items: start;
}

/* COLUMNA IZQUIERDA - FORMULARIO */
.rfq-form-column {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rfq-form-column h3 {
	font-size: 1.3rem;
	margin-bottom: 20px;
	color: #333;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 10px;
}

/* COLUMNA DERECHA - PRODUCTOS */
.rfq-products-column {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: sticky;
	top: 20px;
}

.rfq-products-column h2 {
	font-size: 1.4rem;
	margin-bottom: 20px;
	color: #333;
	border-bottom: 2px solid #ff6600;
	padding-bottom: 10px;
}

/* =============================================================================
   LISTA DE PRODUCTOS
   ============================================================================= */

.rfq-products-list {
	margin-bottom: 25px;
	max-height: 400px;
	overflow-y: auto;
	padding-right: 10px;
}

.rfq-product-item {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid #f0f0f0;
}

.rfq-product-item:last-child {
	border-bottom: none;
}

.rfq-product-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
}

.rfq-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.rfq-product-details {
	flex: 1;
}

.rfq-product-name {
	font-size: 1rem;
	margin: 0 0 8px 0;
	color: #333;
	font-weight: 600;
	line-height: 1.4;
}

.rfq-product-name a {
	color: #333;
	text-decoration: none;
}

.rfq-product-name a:hover {
	color: #ff6600;
}

.rfq-product-quantity {
	font-size: 0.9rem;
	color: #666;
}

.rfq-product-quantity strong {
	color: #333;
}

/* =============================================================================
   CAMPOS DEL FORMULARIO
   ============================================================================= */

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
	margin-bottom: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	color: #333;
}

.form-row {
	margin-bottom: 20px;
}

.form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
	font-size: 0.95rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: #ff6600;
	box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

.form-row .required {
	color: #ff6600;
}

.form-row textarea {
	min-height: 100px;
	resize: vertical;
}

/* =============================================================================
   RESUMEN Y BOTÓN
   ============================================================================= */

.rfq-order-summary {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #f0f0f0;
}

.woocommerce-checkout-review-order {
	margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table {
	width: 100%;
	border: none;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 10px 0;
	text-align: left;
	border: none;
}

.order-total {
	font-size: 1.2rem;
	font-weight: 700;
	color: #333;
	padding-top: 15px !important;
	border-top: 2px solid #f0f0f0;
}

.order-total .woocommerce-Price-amount {
	color: #ff6600;
	font-size: 1.3rem;
}

/* BOTÓN DE SOLICITAR COTIZACIÓN */
#place_order {
	width: 100%;
	padding: 16px 30px;
	font-size: 1.1rem;
	font-weight: 700;
	background: #ff6600;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-transform: uppercase;
	transition: background 0.3s ease;
}

#place_order:hover {
	background: #e65c00;
}

#place_order::before {
	content: "📋 ";
	margin-right: 8px;
}

/* =============================================================================
   PAYMENT METHOD
   ============================================================================= */

.woocommerce-checkout-payment {
	margin-top: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 6px;
}

.payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.payment_method_gpls-rfq label {
	font-weight: 600;
	color: #333;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 991px) {
	.rfq-two-columns {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.rfq-products-column {
		position: relative;
		top: 0;
		order: -1; /* Mover productos arriba en móvil */
	}
	
	.rfq-products-list {
		max-height: 300px;
	}
}

@media (max-width: 768px) {
	.rfq-checkout-simple {
		padding: 20px 0;
	}
	
	.rfq-checkout-simple .container {
		padding: 0 15px;
	}
	
	.rfq-form-column,
	.rfq-products-column {
		padding: 20px;
	}
	
	.rfq-header h1 {
		font-size: 1.6rem;
	}
	
	.rfq-product-image {
		width: 60px;
		height: 60px;
	}
}

@media (max-width: 576px) {
	.rfq-two-columns {
		gap: 15px;
	}
	
	.rfq-form-column,
	.rfq-products-column {
		padding: 15px;
	}
	
	.rfq-header h1 {
		font-size: 1.4rem;
	}
	
	.rfq-product-item {
		gap: 10px;
		padding: 12px 0;
	}
	
	.rfq-product-name {
		font-size: 0.9rem;
	}
	
	.rfq-product-quantity {
		font-size: 0.85rem;
	}
}

/* =============================================================================
   SCROLLBAR PERSONALIZADO PARA LISTA DE PRODUCTOS
   ============================================================================= */

.rfq-products-list::-webkit-scrollbar {
	width: 6px;
}

.rfq-products-list::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.rfq-products-list::-webkit-scrollbar-thumb {
	background: #ff6600;
	border-radius: 10px;
}

.rfq-products-list::-webkit-scrollbar-thumb:hover {
	background: #e65c00;
}

/* =============================================================================
   MENSAJES
   ============================================================================= */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 6px;
	border-left: 4px solid;
}

.woocommerce-error {
	border-color: #dc3545;
	background: #fff5f5;
	color: #721c24;
}

.woocommerce-message {
	border-color: #28a745;
	background: #f0fdf4;
	color: #155724;
}

.woocommerce-info {
	border-color: #0dcaf0;
	background: #f0f9ff;
	color: #055160;
}

/* =============================================================================
   OCULTAR TABLA DUPLICADA DE PRODUCTOS
   ============================================================================= */

/* Ocultar la tabla de revisión de orden que muestra productos duplicados */
.woocommerce-checkout-review-order-table {
	display: none !important;
}

/* Mantener visible solo el método de pago y el botón */
.woocommerce-checkout-payment {
	display: block !important;
}

/* =============================================================================
   OCULTAR FORMULARIO DE CUPÓN
   ============================================================================= */

/* Ocultar el mensaje "¿Tienes un cupón?" */
.woocommerce-form-coupon-toggle,
.checkout_coupon {
	display: none !important;
}
