/* ---------------- Floating cart button ---------------- */
.rfq-floating-btn {
	position: fixed;
	left: 24px;
	bottom: 24px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #16215c;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	text-decoration: none;
	transition: transform 0.15s ease;
}
.rfq-floating-btn:hover {
	transform: scale(1.06);
	color: #fff;
}
.rfq-floating-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #e53935;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* ---------------- Toast ---------------- */
.rfq-toast {
	position: fixed;
	left: 50%;
	bottom: 90px;
	transform: translate(-50%, 10px);
	background: #16215c;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	max-width: 90vw;
	text-align: center;
}
.rfq-toast-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------------- Add button (default shortcode style) ---------------- */
.rfq-add-btn {
	background: #e5342c;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 10px 22px;
	font-weight: 600;
	cursor: pointer;
}
.rfq-add-btn:hover {
	opacity: 0.92;
}

/* ---------------- Quote page ---------------- */
.rfq-quote-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 48px clamp(20px, 5vw, 90px) 70px;
	box-sizing: border-box;
}

/* Remove restrictive theme spacing around the RFQ shortcode page. */
.page:has(#rfq-quote-page) .entry-content,
.page:has(#rfq-quote-page) .site-main,
.page:has(#rfq-quote-page) .content-area {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}
.page:has(#rfq-quote-page) .entry-content > .rfq-quote-page {
	margin-top: 0;
	margin-bottom: 0;
}
.rfq-heading {
	margin-bottom: 4px;
}
.rfq-subheading {
	color: #666;
	margin-top: 0;
}
.rfq-empty {
	background: #f7f7f9;
	padding: 16px;
	border-radius: 6px;
	color: #666;
}

.rfq-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}
.rfq-cart-table th,
.rfq-cart-table td {
	border-bottom: 1px solid #e5e5e5;
	padding: 10px 8px;
	text-align: left;
	font-size: 14px;
	vertical-align: middle;
}
.rfq-cart-thumb img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 4px;
}
.rfq-remove-btn {
	background: none;
	border: none;
	color: #e53935;
	cursor: pointer;
	font-weight: 600;
	padding: 0;
}
.rfq-remove-btn:hover {
	text-decoration: underline;
}

/* ---------------- Form ---------------- */
.rfq-form-wrap {
	background: #f5f6fa;
	border-radius: 10px;
	padding: 28px;
}
.rfq-row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.rfq-row .rfq-field {
	flex: 1 1 240px;
}
.rfq-field {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	position: relative;
}
.rfq-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}
.rfq-field .req {
	color: #e53935;
}
.rfq-field input[type="text"],
.rfq-field input[type="email"],
.rfq-field input[type="tel"],
.rfq-field input[type="url"],
.rfq-field textarea {
	border: none;
	border-bottom: 1px solid #b9bccf;
	background: transparent;
	padding: 8px 2px;
	font-size: 14px;
	outline: none;
}
.rfq-field input:focus,
.rfq-field textarea:focus {
	border-bottom-color: #16215c;
}
.rfq-field-invalid {
	border-bottom-color: #e53935 !important;
}
.rfq-error {
	color: #e53935;
	font-size: 12px;
	min-height: 16px;
}

.rfq-submit-btn {
	background: #e5342c;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.rfq-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.rfq-submit-btn:hover:not(:disabled) {
	opacity: 0.92;
}

.rfq-form-message {
	margin-top: 12px;
	font-size: 14px;
}
.rfq-form-success {
	color: #1b7a3d;
}
.rfq-form-error {
	color: #e53935;
}

/* ---------------- Country combobox ---------------- */
.rfq-combobox {
	position: relative;
}
.rfq-combobox input[type="text"] {
	width: 100%;
	box-sizing: border-box;
}
.rfq-country-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	margin: 4px 0 0;
	padding: 4px 0;
	list-style: none;
	z-index: 20;
}
.rfq-country-options.rfq-options-open {
	display: block;
}
.rfq-country-options li {
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
}
.rfq-country-options li:hover,
.rfq-country-options li:focus {
	background: #f0f1f7;
}
.rfq-country-options li.rfq-no-match {
	color: #999;
	cursor: default;
}

@media (max-width: 600px) {
	.rfq-form-wrap {
		padding: 18px;
	}
	.rfq-cart-table {
		font-size: 12px;
	}
}


/* ---------------- Thank you screen ---------------- */
.rfq-thankyou-card {
	max-width: 760px;
	margin: 20px auto;
	padding: 70px 30px;
	text-align: center;
	background: #f5f6fa;
	border-radius: 16px;
	box-shadow: 0 12px 35px rgba(0,0,0,.08);
}
.rfq-thankyou-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #16215c;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	font-weight: 700;
}
.rfq-thankyou-card h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); }
.rfq-thankyou-card p { margin: 0 auto 28px; max-width: 560px; color: #666; font-size: 16px; line-height: 1.7; }
.rfq-add-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e5342c;
	color: #fff !important;
	text-decoration: none;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 700;
}
.rfq-add-more-btn:hover { opacity: .92; color: #fff !important; }

/* ---------------- Full-width RFQ page override ---------------- */
/* The RFQ shortcode is placed inside the theme content container.
   Break the complete RFQ layout out of that container so there is no
   empty space on the left, right, top, or below the custom footer. */
.wellco-rfq-quote-page-active .site-content,
.wellco-rfq-quote-page-active .content-area,
.wellco-rfq-quote-page-active .site-main,
.wellco-rfq-quote-page-active .entry-content,
.wellco-rfq-quote-page-active article,
.wellco-rfq-quote-page-active .page-content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wellco-rfq-quote-page-active .entry-header,
.wellco-rfq-quote-page-active .page-header {
	display: none !important;
}

.rfq-page-shell {
	width: 100vw !important;
	max-width: 100vw !important;
	margin: 0 calc(50% - 50vw) !important;
	padding: 0 !important;
	overflow: hidden;
	box-sizing: border-box;
}

.rfq-site-header,
.rfq-site-footer {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.wellco-rfq-quote-page-active .site-footer:not(.rfq-site-footer),
.wellco-rfq-quote-page-active footer:not(.rfq-site-footer) {
	display: none;
}

@media (max-width: 767px) {
	.rfq-quote-page {
		padding-left: 16px;
		padding-right: 16px;
	}
}


/* ---------------- Product list -> clickable rows ---------------- */
.rfq-row-link { cursor: pointer; }
.rfq-row-link:hover td { background: #f8fafc; }
a.rfq-product-link { color: inherit; text-decoration: none; font-weight: inherit; }
a.rfq-product-link:hover { color: #2563eb; text-decoration: underline; }

/* ---------------- Product detail page ---------------- */
.rfq-product-detail {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px clamp(20px, 5vw, 40px) 90px;
	box-sizing: border-box;
	font-family: inherit;
}
.rfq-pd-image {
	/* Fixed-size square box: every product photo fits inside it, uncropped. */
	flex: 0 0 440px !important;
	width: 440px !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	padding: 12px !important;
	box-sizing: border-box !important;
	background: #fff !important;
	border: 1px solid #eef0f2 !important;
	border-radius: 16px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
}
.rfq-pd-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	margin: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
}
.rfq-pd-info { flex: 1 1 320px; min-width: 0; }
.rfq-pd-title { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; color: #111; }
.rfq-pd-meta { margin: 0 0 28px; padding: 0; }
.rfq-pd-meta > div { display: flex; gap: 12px; margin-bottom: 14px; font-size: 20px; line-height: 1.4; }
.rfq-pd-meta dt { margin: 0; min-width: 140px; color: #666; }
.rfq-pd-meta dd { margin: 0; color: #111; font-weight: 500; }
.rfq-pd-btn {
	display: inline-block;
	background: #2563eb;
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 14px 40px;
	min-width: 260px;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}
.rfq-pd-btn:hover { background: #1d4ed8; }
.rfq-pd-back { color: #2563eb; font-size: 16px; font-weight: 500; text-decoration: none; }
.rfq-pd-back:hover { color: #1d4ed8; text-decoration: underline; }
.rfq-pd-missing { width: 100%; text-align: center; padding: 60px 0; }
@media (max-width: 767px) {
	.rfq-product-detail { gap: 24px; padding-top: 32px; }
	.rfq-pd-image { flex: 0 0 100% !important; width: 100% !important; max-width: 440px !important; margin: 0 auto !important; }
	.rfq-pd-meta > div { font-size: 17px; flex-direction: column; gap: 2px; }
	.rfq-pd-btn { width: 100%; min-width: 0; }
}

/* ---------------- Product detail: full width + spacing ---------------- */
.wellco-rfq-detail-active .site-content,
.wellco-rfq-detail-active .ast-container,
.wellco-rfq-detail-active .content-area,
.wellco-rfq-detail-active .site-main,
.wellco-rfq-detail-active .entry-content,
.wellco-rfq-detail-active article,
.wellco-rfq-detail-active .ast-article-single,
.wellco-rfq-detail-active .page-content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
.wellco-rfq-detail-active .ast-container { display: block !important; }
.wellco-rfq-detail-active #secondary,
.wellco-rfq-detail-active .entry-header,
.wellco-rfq-detail-active .page-header { display: none !important; }
.wellco-rfq-detail-active { overflow-x: hidden; }

/* Full browser width: the exact offset is fixed by rfq.js (alignDetailShell) */
.rfq-pd-shell {
	display: block;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	background: #fff;
}
.rfq-pd-shell > header,
.rfq-pd-shell > footer { width: 100%; max-width: none; }

.rfq-pd-back-row {
	flex: 0 0 100%;
	margin-top: 90px;
}
.rfq-pd-back { display: inline-block; }
