/* FlexingMed — Página de cotización moderna */
.fx-quote-modern {
	--fx-q-primary: #396CF0;
	--fx-q-primary-dark: #2b56c9;
	--fx-q-soft: #F0F4FF;
	--fx-q-ink: #111827;
	--fx-q-muted: #6b7280;
	--fx-q-line: #e5e7eb;
}

.fx-quote-modern .fx-quote-intro {
	max-width: 760px;
	margin: 10px auto 28px;
	text-align: center;
}
.fx-quote-modern .fx-quote-eyebrow {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--fx-q-soft);
	color: var(--fx-q-primary);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.fx-quote-modern .fx-quote-title {
	margin: 0 0 10px;
	font-size: clamp(28px, 3.5vw, 40px);
	line-height: 1.15;
	color: var(--fx-q-ink);
	font-weight: 800;
}
.fx-quote-modern .fx-quote-sub {
	margin: 0;
	color: var(--fx-q-muted);
	font-size: 16px;
	line-height: 1.65;
}
.fx-quote-modern .fx-quote-sub a {
	color: var(--fx-q-primary);
	font-weight: 700;
}

/* Empty state */
.fx-quote-modern .fx-quote-empty {
	background: #fff;
	border: 1px solid var(--fx-q-line);
	border-radius: 22px;
	padding: 48px 28px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
	margin-bottom: 20px;
}
.fx-quote-modern .fx-quote-empty__icon {
	font-size: 40px;
	margin-bottom: 10px;
}
.fx-quote-modern .fx-quote-empty__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--fx-q-ink);
	margin: 0 0 8px;
}
.fx-quote-modern .fx-quote-empty__text {
	color: var(--fx-q-muted);
	margin: 0 0 20px;
}
.fx-quote-modern .fx-quote-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--fx-q-primary);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
}
.fx-quote-modern .fx-quote-empty__btn:hover {
	background: var(--fx-q-primary-dark);
}

/* Table */
.fx-quote-modern #yith-ywrq-table-list {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--fx-q-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(17, 24, 39, .04);
}
.fx-quote-modern #yith-ywrq-table-list thead th {
	background: var(--fx-q-soft);
	color: var(--fx-q-ink);
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 14px 16px;
	border: 0;
}
.fx-quote-modern #yith-ywrq-table-list td {
	padding: 16px;
	border-top: 1px solid var(--fx-q-line);
	vertical-align: middle;
}
.fx-quote-modern #yith-ywrq-table-list .product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 10px;
	background: #f9fafb;
}
.fx-quote-modern #yith-ywrq-table-list .product-name a {
	color: var(--fx-q-ink);
	font-weight: 700;
	text-decoration: none;
}
.fx-quote-modern #yith-ywrq-table-list .product-remove .remove {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c !important;
	font-size: 16px;
	text-decoration: none !important;
}

.fx-quote-modern .fx-quote-update {
	margin: 16px 0 8px;
	text-align: right;
}
.fx-quote-modern .fx-quote-update .button,
.fx-quote-modern #yith-ywraq-form .button {
	border-radius: 999px !important;
	background: #fff !important;
	border: 1px solid var(--fx-q-line) !important;
	color: var(--fx-q-ink) !important;
	font-weight: 700 !important;
	padding: 10px 18px !important;
}

/* Form */
.fx-quote-modern .yith-ywraq-mail-form-wrapper,
.fx-quote-modern .fx-quote-form {
	background: #fff;
	border: 1px solid var(--fx-q-line);
	border-radius: 22px;
	padding: 28px;
	margin-top: 28px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}
.fx-quote-modern .fx-quote-form h3 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
	color: var(--fx-q-ink);
}
.fx-quote-modern .fx-quote-form-lead {
	margin: 0 0 20px;
	color: var(--fx-q-muted);
}
.fx-quote-modern .fx-quote-form label {
	display: block;
	font-weight: 700;
	color: var(--fx-q-ink);
	font-size: 14px;
	margin-bottom: 6px;
}
.fx-quote-modern .fx-quote-form .form-row {
	margin: 0 0 16px;
}
.fx-quote-modern .fx-quote-form .input-text,
.fx-quote-modern .fx-quote-form textarea {
	width: 100%;
	border: 1px solid var(--fx-q-line);
	border-radius: 12px;
	padding: 12px 14px;
	background: #f9fafc;
	font-size: 15px;
}
.fx-quote-modern .fx-quote-form .input-text:focus,
.fx-quote-modern .fx-quote-form textarea:focus {
	outline: none;
	border-color: var(--fx-q-primary);
	background: #fff;
	box-shadow: 0 0 0 3px var(--fx-q-soft);
}
.fx-quote-modern .fx-quote-form .raq-send-request,
.fx-quote-modern .fx-quote-form input.button.raq-send-request {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--fx-q-primary) !important;
	color: #fff !important;
	font-weight: 800 !important;
	font-size: 15px !important;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(57, 108, 240, .28);
}
.fx-quote-modern .fx-quote-form .raq-send-request:hover {
	background: var(--fx-q-primary-dark) !important;
}
.fx-quote-modern .fx-quote-form-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--fx-q-muted);
}

/* Layout vertical YITH */
.fx-quote-modern .ywraq-form-table-wrapper.vertical {
	display: grid;
	gap: 8px;
}

/* Ocultar mini-carrito Woo del header */
.fx-quote-modern .cart-icon-products,
body .cart-icon-area .cart-icon-products {
	display: none !important;
}

@media (max-width: 767px) {
	.fx-quote-modern #yith-ywrq-table-list .product-thumbnail {
		display: none;
	}
}

/* ---------- Diálogo post-agregar a cotización ---------- */
body.fx-quote-prompt-open {
	overflow: hidden;
}
.fx-quote-prompt {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.fx-quote-prompt[hidden] {
	display: none !important;
}
.fx-quote-prompt__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 42, 67, .48);
	backdrop-filter: blur(4px);
}
.fx-quote-prompt__dialog {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	background: #fff;
	border-radius: 22px;
	padding: 32px 28px 26px;
	box-shadow: 0 28px 80px rgba(16, 42, 67, .28);
	text-align: center;
	animation: fxQuoteIn .28s ease;
}
@keyframes fxQuoteIn {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}
.fx-quote-prompt__x {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}
.fx-quote-prompt__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0b78b6, #28c4d8);
	color: #fff;
	font-size: 26px;
	font-weight: 800;
}
.fx-quote-prompt__title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	color: #102a43;
	font-weight: 800;
}
.fx-quote-prompt__text {
	margin: 0 0 22px;
	color: #52616f;
	font-size: 15px;
	line-height: 1.55;
}
.fx-quote-prompt__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.fx-quote-prompt__btn {
	min-height: 46px;
	padding: 0 14px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease;
}
.fx-quote-prompt__btn:hover {
	transform: translateY(-1px);
}
.fx-quote-prompt__btn--ghost {
	background: #f2fbfd;
	border-color: #dcecf3;
	color: #102a43;
}
.fx-quote-prompt__btn--primary {
	background: linear-gradient(135deg, #0b78b6, #28c4d8);
	color: #fff !important;
	box-shadow: 0 12px 28px rgba(11, 120, 182, .28);
}
@media (max-width: 480px) {
	.fx-quote-prompt__actions {
		grid-template-columns: 1fr;
	}
}
