/* Header: icono carrito + contador */
.byo-rq-header-widget {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

.byo-rq-header-widget .raq-info {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

.byo-rq-header-widget .byo-rq-header-trigger {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
}

.byo-rq-header-widget .raq-tip-counter {
	display: inline-flex;
	align-items: center;
	position: relative;
}

.byo-rq-header-widget .byo-rq-cart-icon {
	display: inline-flex;
	line-height: 0;
}

.byo-rq-header-widget .byo-rq-cart-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.byo-rq-header-widget .raq-items-number {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #f5a623;
	color: #111827;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.byo-rq-header-widget.empty-raq .raq-items-number,
.byo-rq-header-widget .raq-info.empty-raq .raq-items-number {
	background: #6b7280;
	color: #fff;
}

/* Listado dentro de popup Elementor */
.byo-rq-popup-list {
	width: 100%;
	max-width: 100%;
	position: relative;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.byo-rq-popup-list .yith-ywraq-list-content {
	position: static;
	opacity: 1;
	visibility: visible;
	min-width: 0;
	box-shadow: none;
	padding: 0;
}

/* Botón añadir al presupuesto */
.byo-rq-add-to-quote,
.yith-ywraq-add-to-quote {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	clear: both;
}

.byo-rq-add-to-quote--variable {
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}

.byo-rq-add-to-quote .yith-ywraq-add-button {
	flex: 1 1 auto;
}

.byo-rq-add-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.byo-rq-add-to-quote a.add-request-quote-button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 0;
	padding: 0.75rem 1.1rem;
	border-radius: 10px;
	font-weight: 700;
}

.byo-rq-add-to-quote a.add-request-quote-button.button.disabled {
	opacity: 0.55;
	pointer-events: none;
}

.byo-rq-qty-row {
	order: 2;
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.byo-rq-qty-standalone {
	width: 86px !important;
	min-width: 86px;
	height: 48px !important;
	padding: 0 10px !important;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
	background: #fff;
}

.byo-rq-variations {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.byo-rq-variation-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.byo-rq-variation-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #222;
}

.byo-rq-variation-select {
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 0.85rem;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	background: #fff;
	font-size: 0.95rem;
	line-height: 1.3;
}

.byo-rq-variable-hint {
	font-size: 0.85em;
	color: #666;
	margin: 0;
}

.byo-rq-variation-unavailable {
	font-size: 0.85em;
	color: #b42318;
	margin: 0;
}

.byo-rq-add-to-quote .screen-reader-text {
	display: none;
}

/* ================================================
   TARJETAS PRODUCTO UNIFICADAS (catálogo, shop, Elementor)
   ================================================ */

.woocommerce ul.products,
.elementor-widget-woocommerce-products ul.products,
.elementor-widget-woocommerce-product-related ul.products,
.byo-rq-catalog .byo-rq-catalog-grid.products {
	align-items: stretch !important;
}

/* Layout visual de tarjetas: tema hijo (product-grid.css). Solo utilidades aquí. */
.woocommerce ul.products li.product.byo-rq-product-card,
.elementor-widget-woocommerce-products ul.products li.product.byo-rq-product-card,
.elementor-widget-woocommerce-product-related ul.products li.product.byo-rq-product-card,
.byo-rq-catalog .byo-rq-catalog-grid.products > li.product.byo-rq-product-card {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	min-height: 100% !important;
}

/* Ocultar botones nativos WooCommerce en cards */
.woocommerce ul.products li.product.byo-rq-product-card a.button:not(.add-request-quote-button):not(.yith-ywraq-add-button),
.woocommerce ul.products li.product.byo-rq-product-card .button.product_type_simple,
.woocommerce ul.products li.product.byo-rq-product-card .button.product_type_variable,
.woocommerce ul.products li.product.byo-rq-product-card .button.product_type_external,
.woocommerce ul.products li.product.byo-rq-product-card .button.product_type_grouped,
.woocommerce ul.products li.product.byo-rq-product-card a.added_to_cart {
	display: none !important;
}

/* Grid: sin botón de presupuesto (solo en ficha). Opt-in: body.byo-rq-loop-quote-enabled */
.woocommerce ul.products li.product.byo-rq-product-card .byo-rq-add-to-quote,
.woocommerce ul.products li.product.byo-rq-product-card .yith-ywraq-add-to-quote,
.elementor-widget-woocommerce-products ul.products li.product.byo-rq-product-card .byo-rq-add-to-quote,
.elementor-widget-woocommerce-product-related ul.products li.product.byo-rq-product-card .byo-rq-add-to-quote,
.byo-rq-catalog .byo-rq-catalog-grid .byo-rq-add-to-quote,
.byo-rq-catalog .byo-rq-catalog-grid .yith-ywraq-add-to-quote,
.byo-rq-catalog .byo-rq-catalog-grid a.add-request-quote-button,
.byo-rq-catalog .byo-rq-catalog-grid a.yith-ywraq-add-button,
.woocommerce ul.products li.product.byo-rq-product-card a.add-request-quote-button,
.woocommerce ul.products li.product.byo-rq-product-card a.yith-ywraq-add-button {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

body.byo-rq-loop-quote-enabled .woocommerce ul.products li.product.byo-rq-product-card a.add-request-quote-button,
body.byo-rq-loop-quote-enabled .woocommerce ul.products li.product.byo-rq-product-card a.yith-ywraq-add-button,
body.byo-rq-loop-quote-enabled .byo-rq-catalog .byo-rq-catalog-grid a.add-request-quote-button,
body.byo-rq-loop-quote-enabled .byo-rq-catalog .byo-rq-catalog-grid a.yith-ywraq-add-button {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	overflow: visible !important;
}

body.byo-rq-loop-quote-enabled .woocommerce ul.products li.product.byo-rq-product-card .byo-rq-add-to-quote,
body.byo-rq-loop-quote-enabled .woocommerce ul.products li.product.byo-rq-product-card .yith-ywraq-add-to-quote,
body.byo-rq-loop-quote-enabled .byo-rq-catalog .byo-rq-catalog-grid .byo-rq-add-to-quote,
body.byo-rq-loop-quote-enabled .byo-rq-catalog .byo-rq-catalog-grid .yith-ywraq-add-to-quote {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
}

/* Tipografía/precio en loop: tema hijo product-grid.css */

/* Botón presupuesto al fondo de la tarjeta (solo si body.byo-rq-loop-quote-enabled) */
body.byo-rq-loop-quote-enabled .byo-rq-product-card .yith-ywraq-add-to-quote,
body.byo-rq-loop-quote-enabled .byo-rq-product-card .byo-rq-add-to-quote {
	order: 99;
	margin-top: auto !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	gap: 0 !important;
	flex-shrink: 0;
}

body.byo-rq-loop-quote-enabled .byo-rq-product-card .yith-ywraq-add-to-quote .yith-ywraq-add-button,
body.byo-rq-loop-quote-enabled .byo-rq-product-card .byo-rq-add-to-quote .yith-ywraq-add-button {
	width: 100% !important;
	margin: 0 !important;
}

body.byo-rq-loop-quote-enabled .byo-rq-product-card .add-request-quote-button.button,
body.byo-rq-loop-quote-enabled .byo-rq-product-card a.add-request-quote-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: none !important;
	border-radius: 0 0 9px 9px !important;
	background: #111827 !important;
	color: #fff !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	text-align: center;
	line-height: 1.2 !important;
}

body.byo-rq-loop-quote-enabled .byo-rq-product-card .add-request-quote-button.button:hover,
body.byo-rq-loop-quote-enabled .byo-rq-product-card a.add-request-quote-button:hover {
	background: #f5a623 !important;
	color: #fff !important;
}

.byo-rq-product-card .clear {
	display: none !important;
}

@media (max-width: 767px) {
	body.byo-rq-loop-quote-enabled .byo-rq-product-card .add-request-quote-button.button,
	body.byo-rq-loop-quote-enabled .byo-rq-product-card a.add-request-quote-button {
		min-height: 44px !important;
		font-size: 0.8rem !important;
	}
}

/* Sidebar presupuesto */
.yith-ywraq-list-wrapper.byo-rq-sidebar {
	position: fixed;
	top: 0;
	right: -100%;
	width: min(400px, 100vw);
	height: 100vh;
	background: #fff;
	box-shadow: -4px 0 32px rgba(17, 24, 39, 0.14);
	z-index: 99999;
	padding: 0;
	overflow: hidden;
	transition: right 0.35s ease;
	display: flex;
	flex-direction: column;
}

.yith-ywraq-list-wrapper.byo-rq-sidebar.byomedic-open {
	right: 0;
}

.byo-rq-sidebar-header {
	position: relative;
	padding: 22px 56px 18px 24px;
	border-bottom: 1px solid #eef1f4;
	flex-shrink: 0;
}

.byo-rq-sidebar-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.yith-ywraq-list-wrapper.byo-rq-sidebar .close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	border: none;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #4b5563;
	transition: background 0.2s, color 0.2s;
}

.yith-ywraq-list-wrapper.byo-rq-sidebar .close:hover {
	background: #e5e7eb;
	color: #111827;
}

.byo-rq-sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 24px 24px;
	-webkit-overflow-scrolling: touch;
}

.byo-rq-sidebar-empty {
	margin: 24px 0;
	padding: 20px 16px;
	text-align: center;
	color: #6b7280;
	font-size: 0.95rem;
	background: #f9fafb;
	border-radius: 10px;
}

.byo-rq-sidebar .yith-ywraq-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.byo-rq-sidebar .yith-ywraq-list-item {
	display: grid;
	grid-template-columns: 32px 76px 1fr;
	gap: 14px;
	align-items: start;
	padding: 18px 0;
	border-bottom: 1px solid #f0f2f5;
}

.byo-rq-sidebar .yith-ywraq-list-item:last-child {
	border-bottom: none;
}

.byo-rq-sidebar .yith-ywraq-list-item .remove {
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	color: #9ca3af;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.byo-rq-sidebar .yith-ywraq-list-item .remove:hover {
	color: #ef4444;
	background: #fef2f2;
}

.byo-rq-sidebar .byo-rq-item-thumb {
	width: 76px;
	height: 76px;
	border-radius: 10px;
	border: 1px solid #e8edf3;
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.byo-rq-sidebar .byo-rq-item-thumb a {
	display: block;
	line-height: 0;
}

.byo-rq-sidebar .byo-rq-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}

.byo-rq-sidebar .byo-rq-item-details {
	min-width: 0;
	padding-top: 2px;
}

.byo-rq-sidebar .yith-ywraq-list-item-product-info {
	display: block;
	text-decoration: none;
	color: inherit;
}

.byo-rq-sidebar .byo-rq-item-name {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
	margin-bottom: 8px;
}

.byo-rq-sidebar .byo-rq-item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.byo-rq-sidebar .byo-rq-item-qty {
	font-size: 0.8rem;
	font-weight: 500;
	color: #6b7280;
}

.byo-rq-sidebar .byo-rq-item-price {
	font-size: 0.85rem;
	font-weight: 700;
	color: #111827;
}

.byo-rq-sidebar-footer {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eef1f4;
}

.byo-rq-sidebar .byo-rq-sidebar-btn,
.byo-rq-sidebar .button.byo-rq-sidebar-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 20px;
	background: #111827 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s;
	box-sizing: border-box;
}

.byo-rq-sidebar .byo-rq-sidebar-btn:hover,
.byo-rq-sidebar .button.byo-rq-sidebar-btn:hover {
	background: #f5a623 !important;
	color: #fff !important;
}

@media (max-width: 480px) {
	.yith-ywraq-list-wrapper.byo-rq-sidebar {
		width: 100vw;
	}

	.byo-rq-sidebar-header {
		padding: 18px 52px 14px 18px;
	}

	.byo-rq-sidebar-body {
		padding: 8px 18px 20px;
	}

	.byo-rq-sidebar .yith-ywraq-list-item {
		grid-template-columns: 28px 64px 1fr;
		gap: 12px;
		padding: 14px 0;
	}

	.byo-rq-sidebar .byo-rq-item-thumb {
		width: 64px;
		height: 64px;
	}
}

.byomedic-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}

.byomedic-sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Wizard presupuesto */
.byo-rq-wizard {
	max-width: 820px;
	margin: 0 auto 3rem;
	padding: 0 16px;
}

.byo-rq-wizard-header {
	text-align: center;
	margin-bottom: 2rem;
}

.byo-rq-wizard-title {
	margin: 0 0 0.35em;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.byo-rq-wizard-subtitle {
	margin: 0 0 1.75rem;
	color: #5c5c5c;
	font-size: 1rem;
}

/* Stepper */
.byo-rq-steps {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	counter-reset: none;
}

.byo-rq-step {
	flex: 1;
	max-width: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	cursor: default;
}

.byo-rq-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 18px;
	left: calc(50% + 22px);
	width: calc(100% - 44px);
	height: 2px;
	background: #e0e0e0;
	z-index: 0;
}

.byo-rq-step.is-done:not(:last-child)::after {
	background: var(--byo-rq-accent, #1a6b9c);
}

.byo-rq-step.is-done {
	cursor: pointer;
}

.byo-rq-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f0f0f0;
	color: #888;
	font-weight: 700;
	font-size: 0.95rem;
	position: relative;
	z-index: 1;
	transition: background 0.2s, color 0.2s;
}

.byo-rq-step.is-active .byo-rq-step-num,
.byo-rq-step.is-done .byo-rq-step-num {
	background: var(--byo-rq-accent, #1a6b9c);
	color: #fff;
}

.byo-rq-step-label {
	margin-top: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #888;
	text-align: center;
}

.byo-rq-step.is-active .byo-rq-step-label {
	color: var(--byo-rq-accent, #1a6b9c);
}

.byo-rq-step.is-done .byo-rq-step-label {
	color: #333;
}

/* Paneles */
.byo-rq-panel-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.byo-rq-panel-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.byo-rq-badge-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	background: var(--byo-rq-accent, #1a6b9c);
	color: #fff;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
}

.byo-rq-panel-desc {
	margin: 0 0 1.5rem;
	color: #666;
	font-size: 0.95rem;
}

.byo-rq-panel-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eee;
}

.byo-rq-btn-secondary {
	background: transparent !important;
	color: #333 !important;
	border: 1px solid #ccc !important;
}

.byo-rq-btn-next:disabled,
.byo-rq-btn-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Tabla cesta */
.byo-rq-table-wrapper {
	overflow-x: auto;
}

.byo-rq-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.byo-rq-table th,
.byo-rq-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.byo-rq-table th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	font-weight: 600;
}

.byo-rq-table .product-thumbnail img {
	width: 64px;
	height: auto;
	border-radius: 6px;
}

.byo-rq-table .product-remove .remove {
	font-size: 22px;
	color: #999;
	text-decoration: none;
	line-height: 1;
}

.byo-rq-qty-input {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-align: center;
}

.byo-rq-empty-state {
	text-align: center;
	padding: 2.5rem 1rem;
}

.byo-rq-empty {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: #333;
}

.byo-rq-empty-hint {
	margin: 0;
	color: #888;
	font-size: 0.9rem;
}

/* Formulario paso 2 */
.byo-rq-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem 1rem;
}

.byo-rq-field-full {
	grid-column: 1 / -1;
}

/* País y código postal: misma fila, mismo ancho */
.byo-rq-field-country,
.byo-rq-field-postcode {
	grid-column: span 1;
}

.byo-rq-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #333;
}

.byo-rq-field label .required {
	color: #c0392b;
}

.byo-rq-field label .optional {
	font-weight: 400;
	color: #999;
	font-size: 0.85em;
}

/* Especificidad alta para anular height/line-height del tema (Astra, Elementor, WC). */
.byo-rq-wizard .byo-rq-form .byo-rq-field input,
.byo-rq-wizard .byo-rq-form .byo-rq-field select,
.byo-rq-wizard .byo-rq-form .byo-rq-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	height: auto;
	line-height: 1.5;
	padding: 0.65em 1em;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	background: #fafafa;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	overflow: visible;
}

.byo-rq-wizard .byo-rq-form .byo-rq-field select {
	padding-right: 2.5em;
	appearance: auto;
	-webkit-appearance: menulist;
	cursor: pointer;
	/* Temas WooCommerce/Astra suelen forzar height fija y recortan el texto. */
	height: auto !important;
	min-height: 48px !important;
	line-height: 1.5 !important;
}

.woocommerce .byo-rq-wizard .byo-rq-form .byo-rq-field input,
.woocommerce .byo-rq-wizard .byo-rq-form .byo-rq-field select {
	height: auto !important;
	min-height: 48px !important;
	line-height: 1.5 !important;
}

.byo-rq-wizard .byo-rq-form .byo-rq-field textarea {
	min-height: 120px;
	padding-top: 0.75em;
	padding-bottom: 0.75em;
	resize: vertical;
}

.byo-rq-wizard .byo-rq-form .byo-rq-field input:focus,
.byo-rq-wizard .byo-rq-form .byo-rq-field select:focus,
.byo-rq-wizard .byo-rq-form .byo-rq-field textarea:focus {
	outline: none;
	border-color: var(--byo-rq-accent, #1a6b9c);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(26, 107, 156, 0.15);
}

.byo-rq-wizard .byo-rq-form .byo-rq-field.has-error input,
.byo-rq-wizard .byo-rq-form .byo-rq-field.has-error select,
.byo-rq-wizard .byo-rq-form .byo-rq-field.has-error textarea {
	border-color: #c0392b;
	background: #fff8f8;
}

.byo-rq-form-errors {
	margin-top: 1rem;
	padding: 12px 14px;
	background: #fce8e8;
	color: #b32d2e;
	border-radius: 8px;
	font-size: 0.9rem;
}

/* Resumen paso 3 */
.byo-rq-summary-block {
	margin-bottom: 1.75rem;
}

.byo-rq-summary-block:last-of-type {
	margin-bottom: 0;
}

.byo-rq-summary-heading {
	margin: 0 0 12px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	font-weight: 700;
}

.byo-rq-summary-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.byo-rq-summary-item:last-child {
	border-bottom: none;
}

.byo-rq-summary-item-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.byo-rq-summary-item-info strong {
	display: block;
	margin-bottom: 4px;
	font-size: 0.95rem;
}

.byo-rq-summary-item-info span {
	font-size: 0.85rem;
	color: #666;
}

.byo-rq-summary-dl {
	margin: 0;
}

.byo-rq-summary-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 8px 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.byo-rq-summary-row:last-child {
	border-bottom: none;
}

.byo-rq-summary-row dt {
	margin: 0;
	font-weight: 600;
	font-size: 0.88rem;
	color: #666;
}

.byo-rq-summary-row dd {
	margin: 0;
	font-size: 0.95rem;
	color: #222;
}

.byo-rq-form-message.success,
.byo-rq-summary-message.success {
	color: #0a7a2f;
	padding: 12px 14px;
	background: #e8f5e9;
	border-radius: 8px;
	margin-top: 12px;
}

.byo-rq-form-message.error,
.byo-rq-summary-message.error {
	color: #b32d2e;
	padding: 12px 14px;
	background: #fce8e8;
	border-radius: 8px;
	margin-top: 12px;
}

/* Pantalla éxito */
.byo-rq-success-panel {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.byo-rq-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	background: #e8f5e9;
	color: #0a7a2f;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 72px;
	font-weight: 700;
}

.byo-rq-success-panel h3 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.byo-rq-success-text {
	color: #555;
	margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
	.byo-rq-form-grid {
		grid-template-columns: 1fr;
	}

	.byo-rq-field-country,
	.byo-rq-field-postcode {
		grid-column: 1;
	}

	.byo-rq-step:not(:last-child)::after {
		display: none;
	}

	.byo-rq-steps {
		gap: 8px;
	}

	.byo-rq-step-label {
		font-size: 0.72rem;
	}

	.byo-rq-panel-footer {
		flex-direction: column-reverse;
	}

	.byo-rq-panel-footer .button {
		width: 100%;
		text-align: center;
	}

	.byo-rq-table .product-thumbnail {
		display: none;
	}

	.byo-rq-summary-row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

.byo-rq-cart-extras {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eee;
}

.byo-rq-coupon {
	margin-bottom: 1rem;
}

.byo-rq-coupon-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.byo-rq-coupon-applied {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.85rem;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	color: #1e40af;
	font-size: 0.92rem;
}

.byo-rq-coupon-row {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
}

.byo-rq-coupon-input {
	flex: 1;
	min-height: 44px;
	padding: 0.65em 0.85em;
	border: 1px solid #d1d5db;
	border-radius: 6px;
}

.byo-rq-coupon-row .button {
	min-height: 44px;
	white-space: nowrap;
}

.byo-rq-coupon.has-error .byo-rq-coupon-input {
	border-color: #c0392b;
}

.byo-rq-coupon-message {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: #047857;
}

.byo-rq-coupon.has-error .byo-rq-coupon-message {
	color: #c0392b;
}

@media (max-width: 640px) {
	.byo-rq-coupon-row {
		flex-direction: column;
	}

	.byo-rq-coupon-row .button {
		width: 100%;
	}
}
