/* === Add to Quote button === */

/* Force the WooCommerce cart form to lay out quantity, Add to Cart,
   and Add to Quote in a single row instead of stacking them. */
form.cart {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px;
}
form.cart .quantity {
	margin: 0 !important;
}
form.cart button.single_add_to_cart_button {
	margin: 0 !important;
}

.rfq-add-to-quote-btn {
	background-color: #1E293B !important;
	border-color: #1E293B !important;
	color: #fff !important;
	margin: 0 !important;
	white-space: nowrap;
}
.rfq-add-to-quote-btn:hover {
	background-color: #0f172a !important;
	border-color: #0f172a !important;
	color: #fff !important;
}

/*
 * Fallback: hide Woodmart's "Buy Now" button via CSS in case the theme filters
 * in class-rfq-frontend.php don't match your exact Woodmart version.
 * IMPORTANT: Inspect the Buy Now button on your live site and replace the
 * selector below with the exact class Woodmart is using if it's still visible.
 */
.wd-buy-now-btn,
.buy-now-btn,
a.woodmart-buy-now,
.product_buy_now_button {
	display: none !important;
}

/* My Account quote basket table spacing */
#rfq-basket-table td, #rfq-basket-table th {
	padding: 8px 10px;
}
/* === Standalone quote page shortcode: [clinihealth_quote_page] === */
.rfq-page-shell { width: 100%; }
.rfq-page-heading { margin-bottom: 28px; }
.rfq-page-heading h2 { margin: 0 0 8px; font-size: 32px; }
.rfq-page-heading p { margin: 0; color: #6b7280; }
.rfq-cart-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, .95fr); gap: 38px; align-items: start; }
.rfq-cart-main { min-width: 0; }
.rfq-cart-table-head { display: grid; grid-template-columns: 1fr 130px; padding: 16px 0; border-bottom: 1px solid #e5e7eb; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.rfq-cart-table-head span:last-child { text-align: center; }
.rfq-cart-item { display: grid; grid-template-columns: 36px 110px minmax(0, 1fr) 130px; gap: 18px; align-items: center; padding: 28px 0; border-bottom: 1px solid #e5e7eb; }
.rfq-remove-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #111827; font-size: 28px; font-weight: 300; line-height: 1; text-decoration: none; }
.rfq-remove-icon:hover { color: #e3292f; }
.rfq-product-image img { display: block; width: 100%; height: 90px; object-fit: contain; }
.rfq-product-info { display: flex; flex-direction: column; gap: 8px; }
.rfq-product-name { color: #111827; font-size: 17px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.rfq-product-name:hover { color: #e3292f; }
.rfq-product-sku { color: #6b7280; font-size: 14px; }
.rfq-product-qty { text-align: center; }
.rfq-product-qty span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 48px; padding: 0 16px; background: #f5f5f5; font-size: 16px; }
.rfq-note-wrap { margin-top: 28px; }
.rfq-note-wrap label { display: block; margin-bottom: 9px; color: #111827; font-weight: 700; }
.rfq-note-wrap label span { color: #6b7280; font-weight: 400; }
.rfq-note-wrap textarea { width: 100%; min-height: 115px; padding: 14px 16px; border: 1px solid #e5e7eb; background: #fafafa; resize: vertical; }
.rfq-summary-card { padding: 34px; border: 1px solid #e5e7eb; background: #fff; }
.rfq-summary-card h3 { margin: 0 0 28px; font-size: 24px; }
.rfq-summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #e5e7eb; font-size: 16px; }
.rfq-summary-help { margin: 22px 0; color: #6b7280; font-size: 14px; line-height: 1.6; }
.rfq-submit-button { width: 100%; min-height: 56px; margin: 0 !important; background: #e3292f !important; border-color: #e3292f !important; color: #fff !important; font-weight: 700 !important; text-transform: uppercase; }
.rfq-submit-button:hover { background: #c91f25 !important; border-color: #c91f25 !important; }
.rfq-submit-message { margin-top: 12px; font-size: 14px; }
.rfq-empty-state { padding: 48px 28px; border: 1px solid #e5e7eb; text-align: center; }
.rfq-empty-state h3 { margin-top: 0; }
.rfq-history-section { margin-top: 52px; }
.rfq-history-section > h3 { margin-bottom: 20px; font-size: 24px; }
.rfq-history-table-wrap { overflow-x: auto; }
.rfq-history-table td, .rfq-history-table th { padding: 14px 16px !important; }
.rfq-status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rfq-status-pending { color: #92400e; background: #fef3c7; }
.rfq-status-approved { color: #166534; background: #dcfce7; }
.rfq-status-denied { color: #991b1b; background: #fee2e2; }
.rfq-history-note td { background: #fafafa; font-size: 14px; }

@media (max-width: 900px) {
	.rfq-cart-layout { grid-template-columns: 1fr; }
	.rfq-summary-card { order: 2; }
}
@media (max-width: 600px) {
	.rfq-page-heading h2 { font-size: 26px; }
	.rfq-cart-table-head { display: none; }
	.rfq-cart-item { grid-template-columns: 28px 82px minmax(0, 1fr); gap: 12px; padding: 22px 0; }
	.rfq-product-image img { height: 72px; }
	.rfq-product-name { font-size: 15px; }
	.rfq-product-qty { grid-column: 3; text-align: left; }
	.rfq-product-qty::before { content: 'Qty: '; color: #6b7280; font-size: 13px; }
	.rfq-product-qty span { min-width: 42px; height: 38px; padding: 0 12px; }
	.rfq-summary-card { padding: 24px 20px; }
}


/* === Header quote icon and live item count === */
.clinihealth-quote-header-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #242424 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	line-height: 1 !important;
	text-decoration: none !important;
	vertical-align: middle !important;
}

.clinihealth-quote-header-icon:hover,
.clinihealth-quote-header-icon:focus {
	color: #242424 !important;
	background: transparent !important;
	box-shadow: none !important;
	opacity: .75;
	outline: none !important;
}

.clinihealth-quote-icon-inner {
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}

.clinihealth-quote-header-icon img.clinihealth-quote-icon-image {
	display: block !important;
	width: 28px !important;
	min-width: 24px !important;
	height: 28px !important;
	min-height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: contain !important;
	object-position: center !important;
	transform: none !important;
	vertical-align: middle !important;
}

.clinihealth-quote-count,
.rfq-header-count {
	position: absolute !important;
	top: -7px !important;
	right: -8px !important;
	z-index: 5 !important;
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 18px !important;
	height: 18px !important;
	padding: 0 5px !important;
	color: #fff !important;
	background: #DB2D2F !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-family: "Work Sans", Arial, Helvetica, sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 18px !important;
	text-align: center !important;
	box-sizing: border-box !important;
	pointer-events: none !important;
}

.clinihealth-quote-count.is-visible,
.rfq-header-count.is-visible {
	display: inline-flex !important;
}

.clinihealth-quote-count:not(.is-visible),
.rfq-header-count:not(.is-visible),
.clinihealth-quote-count:empty,
.rfq-header-count:empty {
	display: none !important;
}

@media (max-width: 767px) {
	.clinihealth-quote-header-icon {
		width: 36px !important;
		height: 40px !important;
		min-width: 36px !important;
	}

	.clinihealth-quote-header-icon img.clinihealth-quote-icon-image {
		width: 23px !important;
		min-width: 23px !important;
		max-width: 23px !important;
		height: 23px !important;
		min-height: 23px !important;
		max-height: 23px !important;
	}
}

/* === Single-product quote navigation === */
.rfq-product-quote-navigation {
	flex: 0 0 100%;
	width: 100%;
	margin-top: 2px;
}
.rfq-view-quote-link {
	display: none;
	width: fit-content;
	color: #242424;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.rfq-view-quote-link.is-visible { display: inline-flex; align-items: center; gap: 6px; }
.rfq-view-quote-link:hover { color: #e3292f; }
.rfq-product-add-message {
	flex: 0 0 100%;
	width: 100%;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.5;
}
.rfq-product-add-message.is-success { color: #166534; }
.rfq-product-add-message.is-error { color: #b91c1c; }

/* .wd-header-text.reset-last-child.whb-kiu150fd31wqb1qlumhm{
	padding: 0 10px 0 0px;
} */


/* =========================================================
 * Guest quote fields (merged from rfq-guest.css)
 * ====================================================== */
/* Guest quote fields are isolated here so existing rfq.css customizations remain untouched. */
.rfq-guest-details{margin:22px 0 18px;padding-top:20px;border-top:1px solid #e5e7eb}
.rfq-guest-details h4{margin:0 0 14px;color:#1e293b;font-size:17px;font-weight:700}
.rfq-guest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rfq-guest-details p{margin:0 0 12px}
.rfq-guest-details label{display:block;margin:0 0 6px;color:#1e293b;font-size:13px;font-weight:600}
.rfq-guest-details label span{color:#DB2D2F}
.rfq-guest-details label small{color:#6b7280;font-weight:400}
.rfq-guest-details input,.rfq-guest-details textarea{display:block;width:100%;min-height:44px;padding:9px 11px;border:1px solid #d9dce1;border-radius:0;background:#fff;color:#1e293b;font:inherit;box-sizing:border-box}
.rfq-guest-details textarea{min-height:78px;resize:vertical}
.rfq-guest-details input:focus,.rfq-guest-details textarea:focus{border-color:#94a3b8;outline:none;box-shadow:none}
.rfq-history-login-message{margin-top:12px!important}
@media(max-width:767px){.rfq-guest-grid{grid-template-columns:1fr;gap:0}}


/* =========================================================
 * Quote enhancements (merged from rfq-enhancements.css)
 * ====================================================== */
/* Additive styles only. Existing custom rfq.css is intentionally untouched. */
.rfq-file-upload{margin-top:16px}.rfq-file-upload label{display:block;margin:0 0 8px;color:#111827;font-weight:700}.rfq-file-upload label span{color:#6b7280;font-weight:400}.rfq-file-upload input[type=file]{display:block;width:100%;padding:12px;border:1px dashed #cbd5e1;background:#fff;box-sizing:border-box}.rfq-file-upload small{display:block;margin-top:7px;color:#6b7280;font-size:12px;line-height:1.45}


/* =========================================================
 * Quote drawer (merged from rfq-drawer.css)
 * ====================================================== */
/* Quote drawer styles are intentionally isolated from the existing rfq.css customizations. */
body.rfq-drawer-open {
	overflow: hidden;
}

.rfq-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	visibility: hidden;
	opacity: 0;
	background: rgba(0, 0, 0, 0.62);
	transition: opacity .25s ease, visibility .25s ease;
}

.rfq-drawer-overlay.is-open {
	visibility: visible;
	opacity: 1;
}

.rfq-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: min(340px, 92vw);
	height: 100vh;
	background: #fff;
	box-shadow: -12px 0 35px rgba(0, 0, 0, .18);
	transform: translateX(105%);
	transition: transform .28s ease;
}

.rfq-drawer.is-open {
	transform: translateX(0);
}

.rfq-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 92px;
	padding: 20px 15px;
	border-bottom: 1px solid #e8e8e8;
}

.rfq-drawer-head h2 {
	margin: 0;
	font-family: Mulish, Arial, Helvetica, sans-serif;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}

.rfq-drawer-close {
	display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0;
    padding: 6px 0 !important;
    color: #222 !important;
    background: transparent !important;
    border: 0 !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.rfq-drawer-close > span:first-child {
	font-size: 32px;
	font-weight: 300;
	line-height: .8;
}

.rfq-drawer-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.rfq-drawer.is-loading .rfq-drawer-body {
	opacity: .55;
	pointer-events: none;
}

.rfq-drawer-items {
	flex: 1;
}

.rfq-drawer-item {
	position: relative;
	display: grid;
	grid-template-columns: 82px 1fr 28px;
	gap: 10px;
	padding: 20px 15px;
	border-bottom: 1px solid #ededed;
}

.rfq-drawer-thumb img {
	display: block;
	width: 82px;
	height: 82px;
	object-fit: contain;
	background: #fff;
}

.rfq-drawer-item-content {
	min-width: 0;
}

.rfq-drawer-product-name {
	display: block;
	margin: 0 0 10px;
	color: #222;
	font-family: "Work Sans", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

.rfq-drawer-product-name:hover {
	color: #DB2D2F;
}

.rfq-drawer-sku,
.rfq-drawer-qty {
	margin-top: 6px;
	color: #777;
	font-family: "Work Sans", Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.rfq-drawer-sku strong {
	color: #333;
}

.rfq-drawer-remove {
	align-self: start;
	width: 28px;
	height: 28px;
	margin: -4px -6px 0 0;
	padding: 0;
	color: #777;
	background: transparent;
	border: 0;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.rfq-drawer-remove:hover {
	color: #DB2D2F;
}

.rfq-drawer-footer {
	margin-top: auto;
	padding: 22px 15px 30px;
	border-top: 1px solid #e8e8e8;
	background: #fff;
}

.rfq-drawer-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
	font-family: "Work Sans", Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #222;
}

.rfq-drawer-summary strong {
	font-size: 20px;
	font-weight: 500;
}

.rfq-drawer-view-quote,
.rfq-drawer-continue {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: 12px 20px !important;
	color: #fff !important;
	background: #DB2D2F !important;
	border: 1px solid #DB2D2F !important;
	border-radius: 0 !important;
	font-family: "Work Sans", Arial, Helvetica, sans-serif;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	text-decoration: none !important;
}

.rfq-drawer-view-quote:hover,
.rfq-drawer-continue:hover {
	background: #bd2325 !important;
	border-color: #bd2325 !important;
}

.rfq-drawer-empty {
	margin: auto;
	padding: 48px 30px;
	text-align: center;
}

.rfq-drawer-empty-icon {
	margin-bottom: 14px;
	font-size: 48px;
	line-height: 1;
}

.rfq-drawer-empty h3 {
	margin: 0 0 10px;
	font-family: Mulish, Arial, Helvetica, sans-serif;
	font-size: 22px;
	color: #1e293b;
}

.rfq-drawer-empty p {
	margin: 0 0 24px;
	color: #6b7280;
	font-family: "Work Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.rfq-drawer {
		width: min(390px, 94vw);
	}

	.rfq-drawer-head {
		min-height: 76px;
		padding: 17px 15px;
	}

	.rfq-drawer-head h2 {
		font-size: 24px;
	}

	.rfq-drawer-item {
		grid-template-columns: 68px 1fr 24px;
		gap: 13px;
		padding: 15px;
	}

	.rfq-drawer-thumb img {
		width: 68px;
		height: 68px;
	}

	.rfq-drawer-product-name {
		font-size: 15px;
	}

	.rfq-drawer-footer {
		padding: 18px 15px 22px;
	}
}


/* Empty drawer actions: keep the quote-page link and browsing action distinct. */
.rfq-drawer-empty .rfq-drawer-empty-view-quote {
	margin-bottom: 10px;
}

.rfq-drawer-empty .rfq-drawer-continue {
	color: #1e293b !important;
	background: #fff !important;
	border-color: #d9dce1 !important;
}

.rfq-drawer-empty .rfq-drawer-continue:hover {
	color: #fff !important;
	background: #1e293b !important;
	border-color: #1e293b !important;
}


/* =========================================================
 * Compatibility and alignment fixes (merged from rfq-fixes.css)
 * ====================================================== */
/**
 * Small compatibility fixes loaded after the user's existing RFQ styles.
 * This file intentionally avoids changing assets/css/rfq.css.
 */

/* Match the quote counter position and dimensions to WoodMart header counters. */
.clinihealth-quote-header-icon .clinihealth-quote-count,
.clinihealth-quote-header-icon .rfq-header-count {
	top: -3px !important;
	right: -7px !important;
	min-width: 18px !important;
	width: auto !important;
	height: 18px !important;
	padding: 0 5px !important;
	font-size: 11px !important;
	line-height: 18px !important;
}

/* Keep the PNG optically aligned with the wishlist, reorder and cart icons. */
.clinihealth-quote-header-icon .clinihealth-quote-icon-inner {
	transform: translateY(1px) !important;
}

@media (max-width: 767px) {
	.clinihealth-quote-header-icon .clinihealth-quote-count,
	.clinihealth-quote-header-icon .rfq-header-count {
		top: -2px !important;
		right: -6px !important;
	}
}
.wd-toolbar .wd-toolbar-link-2 a[href="/my-quote/"] img {
    height: 32px;
    width: auto;
}
/* === Non-Shippable Item / Quote for Delivery === */
.rfq-delivery-only-purchase-area {
	margin-top: 20px;
}

.rfq-delivery-only-notice,
.rfq-delivery-address-alert {
	margin: 0 0 18px;
	padding: 15px 18px;
	border-left: 4px solid #DB2D2F;
	background: #fff5f5;
	color: #1e293b;
	font-size: 14px;
	line-height: 1.65;
}

.rfq-delivery-only-form {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 0 !important;
}

.rfq-delivery-only-form .quantity {
	margin: 0 !important;
}

.rfq-delivery-only-form .rfq-add-to-quote-btn,
.rfq-loop-quote-btn {
	background: #1E293B !important;
	border-color: #1E293B !important;
	color: #fff !important;
}

.rfq-delivery-only-form .rfq-add-to-quote-btn:hover,
.rfq-loop-quote-btn:hover {
	background: #0f172a !important;
	border-color: #0f172a !important;
	color: #fff !important;
}

.rfq-delivery-details {
	margin-top: 22px;
}

.rfq-delivery-details textarea,
.rfq-guest-details textarea {
	width: 100%;
}


/* === Structured quote delivery address fields (v1.10.2) === */
.rfq-address-wrap {
	margin-top: 22px;
}

.rfq-address-heading {
	margin-bottom: 10px;
	font-weight: 600;
	color: #111827;
}

.rfq-address-heading span,
.rfq-address-wrap label span {
	font-weight: 400;
	color: #6b7280;
}

.rfq-address-wrap p {
	margin: 0 0 14px;
}

.rfq-address-wrap label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
	color: #111827;
}

.rfq-address-wrap input {
	display: block;
	width: 100%;
	height: 52px;
	box-sizing: border-box;
	padding: 0 15px;
}

.rfq-address-wrap small {
	display: block;
	margin-top: 4px;
	color: #6b7280;
	line-height: 1.5;
}

/* Selected quote attachment list */
.rfq-selected-files{margin-top:10px;display:flex;flex-direction:column;gap:8px}.rfq-selected-files[hidden]{display:none!important}.rfq-selected-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #e5e7eb;background:#f8fafc;box-sizing:border-box}.rfq-selected-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#374151;font-size:13px}.rfq-remove-selected-file{flex:0 0 auto;border:0;background:transparent;color:#db2d2f;padding:2px 0;font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline}.rfq-remove-selected-file:hover{color:#b91c1c}
