:root {
	--tecto-ink: #14171a;
	--tecto-navy: #123a70;
	--tecto-amber: #f2a516;
	--tecto-paper: #f7f8fa;
	--tecto-border: #dfe4ea;
}

/* The new flow replaces the previous YITH and residential/commercial controls. */
.yith-ywraq-add-to-quote,
.tp-card-enq-wrap,
.tecto-addrtype,
[class*="address-type"],
[class*="addrtype"] {
	display: none !important;
}

.woocommerce ul.products li.product .tecto-loop-enquiry,
.single-product .tecto-add-enquiry,
.tecto-enquiry-checkout {
	box-sizing: border-box;
	border: 1px solid var(--tecto-navy) !important;
	background: #fff !important;
	color: var(--tecto-navy) !important;
	font-weight: 700 !important;
	text-align: center;
}

.woocommerce ul.products li.product .tecto-loop-enquiry {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	margin-top: 8px !important;
}

.woocommerce ul.products li.product .tecto-loop-enquiry:hover,
.single-product .tecto-add-enquiry:hover,
.tecto-enquiry-checkout:hover {
	background: var(--tecto-navy) !important;
	color: #fff !important;
}

.tecto-single-enquiry {
	clear: both;
	margin: 14px 0 20px;
}

.tecto-single-enquiry .tecto-add-enquiry {
	width: 100%;
	min-height: 48px;
}

.tecto-single-enquiry p {
	margin: 8px 0 0;
	color: #657180;
	font-size: 13px;
}

.tecto-cart-flow {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid var(--tecto-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(20, 23, 26, 0.05);
}

.tecto-cart-freight-summary {
	display: grid;
	gap: 5px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-left: 4px solid var(--tecto-navy);
	border-radius: 6px;
	background: #eef4fb;
	color: var(--tecto-ink);
}

.tecto-cart-freight-summary.is-quote {
	border-left-color: var(--tecto-amber);
	background: #fff7e7;
}

.tecto-cart-freight-summary strong {
	font-size: 15px;
}

.tecto-cart-freight-summary small {
	color: #657180;
}

.tecto-cart-flow textarea {
	width: 100%;
	min-height: 94px;
	resize: vertical;
	border: 1px solid #cbd3dc;
	border-radius: 7px;
	padding: 11px 12px;
}

.tecto-policy-row label,
.tecto-checkout-policy label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14px;
	line-height: 1.45;
}

.tecto-policy-row input,
.tecto-checkout-policy input {
	flex: 0 0 auto;
	margin-top: 3px !important;
}

.tecto-cart-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin-top: 15px;
}

.tecto-cart-actions .button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 50px;
	margin: 0 !important;
	padding-inline: 14px !important;
	font-size: 14px !important;
	line-height: 1.2;
	white-space: nowrap !important;
}

.tecto-cart-actions .button:only-child {
	grid-column: 1 / -1;
}

/* A freight-only cart has one action; make its text one line in the entire row. */
.tecto-cart-actions--single {
	grid-template-columns: minmax(0, 1fr);
}

.woocommerce-cart .tecto-cart-actions--single .tecto-enquiry-checkout {
	grid-column: 1;
	min-width: 0;
	max-width: none !important;
	width: 100% !important;
	white-space: nowrap !important;
	font-size: clamp(11px, 2.7vw, 14px);
	line-height: 1.2;
	padding-inline: 12px;
}

.tecto-cart-actions .checkout-button {
	background: var(--tecto-amber) !important;
	color: #1a1100 !important;
}

.tecto-to-be-quoted {
	font-weight: 700;
	color: var(--tecto-navy);
}

.tecto-quote-checkout-notice {
	border-left-color: var(--tecto-amber) !important;
}

.woocommerce-checkout .tecto-checkout-policy {
	margin: 15px 0 !important;
	padding: 13px 14px;
	border: 1px solid var(--tecto-border);
	border-radius: 7px;
	background: var(--tecto-paper);
}

.woocommerce-checkout .tecto-forklift-field {
	padding: 14px;
	border: 1px solid #efcf87;
	border-radius: 8px;
	background: #fff8e9;
}

.woocommerce ul#shipping_method {
	display: grid;
	gap: 8px;
}

.woocommerce ul#shipping_method li {
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid var(--tecto-border);
	border-radius: 7px;
	background: #fff;
}

.woocommerce-checkout .tecto-address-third {
	box-sizing: border-box;
	width: calc(33.333% - 10px) !important;
	margin-right: 15px !important;
	clear: none !important;
}

.woocommerce-checkout .tecto-address-third.tecto-address-state {
	margin-right: 0 !important;
}

.tecto-address-status {
	display: block;
	margin-top: 7px;
	color: #5f6b78;
	font-size: 13px;
	line-height: 1.4;
}

.tecto-address-status.is-checking,
.tecto-address-status.is-pending {
	color: #7a5200;
}

.tecto-address-status.is-verified {
	color: #137333;
}

.tecto-address-status.is-error {
	color: #b42318;
}

.af_list {
	z-index: 999999 !important;
	font-size: 15px !important;
}

.woocommerce-checkout .select2-container--open .select2-search--dropdown {
	display: none !important;
}

.woocommerce ul#shipping_method .tecto-shipping-group {
	padding: 12px 2px 2px !important;
	border: 0 !important;
	background: transparent;
	color: var(--tecto-ink);
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.woocommerce ul#shipping_method li:not(.tecto-shipping-group) {
	min-height: 48px;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.woocommerce ul#shipping_method li.is-selected {
	border-color: var(--tecto-amber);
	background: #fff8e8;
	box-shadow: 0 0 0 1px var(--tecto-amber);
}

.woocommerce ul#shipping_method li.is-quote {
	border-color: #dfb65d;
	background: #fff8e9;
}

.woocommerce ul#shipping_method li label {
	display: inline-flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: calc(100% - 28px);
	font-weight: 700;
}

.tecto-rate-eta,
.tecto-rate-note {
	display: block;
	margin: 5px 0 0 28px;
	color: #5f6b78;
	font-size: 12px;
	line-height: 1.45;
}

.tecto-poa-price,
.tecto-to-be-quoted {
	display: inline-block;
	color: #1550c4;
	font-weight: 700;
	line-height: 1.35;
}

.tecto-login-price,
.tecto-tax-label {
	white-space: nowrap;
}

.tecto-tax-label {
	font-size: .72em;
	font-weight: 600;
	color: #5b6572;
}

.tecto-shipping-destination {
	margin: 0 0 10px;
	padding: 9px 11px;
	border-radius: 6px;
	background: #eef4fb;
	color: #31455e;
	font-size: 13px;
}

.tecto-flow-toast {
	position: fixed;
	top: 82px;
	left: 50%;
	z-index: 100000;
	max-width: min(92vw, 520px);
	transform: translate(-50%, -12px);
	opacity: 0;
	padding: 13px 20px;
	border-radius: 8px;
	background: var(--tecto-ink);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	color: #fff;
	font-weight: 700;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tecto-flow-toast.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

.tecto-flow-toast.is-error {
	background: #b42318;
}

@media (max-width: 767px) {
	.tecto-cart-flow {
		padding: 15px;
	}

	.tecto-cart-actions {
		grid-template-columns: 1fr;
	}

	.woocommerce-checkout .tecto-address-third {
		float: none !important;
		width: 100% !important;
		margin-right: 0 !important;
	}

	.woocommerce-checkout input,
	.woocommerce-checkout select,
	.woocommerce-checkout .select2-selection {
		font-size: 16px !important;
	}

	.tecto-flow-toast {
		top: 68px;
	}
}

/* Trade account reminder: Whols continues to own roles and wholesale prices. */
.single-product .tecto-trade-price {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0 18px;
	padding: 12px 14px;
	border: 1px solid #f2cf7a;
	border-radius: 8px;
	background: #fff8e7;
	color: #3f3219;
}

.single-product .tecto-trade-price.is-approved {
	border-color: #a7d7b0;
	background: #f0faf2;
}

.tecto-trade-badge {
	flex: 0 0 auto;
	padding: 5px 8px;
	border-radius: 5px;
	background: #f4b323;
	color: #14171a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
}

.tecto-trade-price.is-approved .tecto-trade-badge {
	background: #2d8a45;
	color: #fff;
}

.tecto-trade-copy {
	display: grid;
	gap: 2px;
	font-size: 13px;
	line-height: 1.45;
}

.tecto-trade-copy strong {
	color: #14171a;
	font-size: 14px;
}

.tecto-trade-copy a {
	color: #1550c4;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tecto-whols-registration {
	margin-top: 32px;
	padding: clamp(20px, 3vw, 34px);
	border: 1px solid #dce4ee;
	border-radius: 12px;
	background: #fff;
}

/* Product shipping calculator; live methods still come from Woo/PluginHive. */
.single-product .tecto-product-shipping {
	width: 100%;
	margin: 22px 0 24px;
	border: 1px solid #dce4ee;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.single-product .tecto-product-shipping > h2 {
	margin: 0;
	padding: 14px 18px;
	border-bottom: 1px solid #e5eaf0;
	background: #f6f8fb;
	color: #14171a;
	font-size: 17px;
	font-weight: 800;
}

.tecto-product-shipping-fields {
	display: grid;
	grid-template-columns: minmax(92px, .55fr) minmax(190px, 1.7fr) minmax(120px, .7fr);
	gap: 12px;
	align-items: end;
	padding: 16px 18px 8px;
}

.tecto-product-shipping-fields label {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #273548;
	font-size: 12px;
	font-weight: 700;
}

.tecto-product-shipping-fields input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid #cfd8e4;
	border-radius: 6px;
	background: #fff;
	color: #14171a;
	font-size: 15px;
}

.tecto-product-shipping-fields input:focus {
	border-color: #1550c4;
	box-shadow: 0 0 0 3px rgba(21, 80, 196, .12);
	outline: 0;
}

.tecto-product-shipping-fields .tecto-calculate-shipping {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border-radius: 6px;
	background: #1550c4;
	color: #fff;
	font-weight: 800;
}

.tecto-product-shipping-help,
.tecto-product-shipping-notice {
	margin: 0;
	padding: 0 18px 14px;
	color: #667386;
	font-size: 12px;
	line-height: 1.5;
}

.tecto-product-shipping-results {
	margin: 8px 18px 16px;
}

.tecto-product-shipping-results.is-loading,
.tecto-product-shipping-results.is-error {
	padding: 12px 14px;
	border-radius: 7px;
	background: #eef4fb;
	color: #31455e;
	font-size: 13px;
}

.tecto-product-shipping-results.is-error {
	background: #fff0ee;
	color: #a32922;
}

.tecto-shipping-result-heading {
	margin: 0 0 8px;
	color: #31455e;
	font-size: 13px;
	font-weight: 700;
}

.tecto-product-rate-list {
	display: grid;
	border: 1px solid #dce4ee;
	border-radius: 8px;
	overflow: hidden;
}

.tecto-product-rate {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	padding: 13px 14px;
	background: #fff;
}

.tecto-product-rate + .tecto-product-rate {
	border-top: 1px solid #e5eaf0;
}

.tecto-product-rate > div {
	display: grid;
	gap: 3px;
}

.tecto-product-rate strong {
	color: #14171a;
	font-size: 14px;
}

.tecto-product-rate small {
	color: #667386;
	font-size: 12px;
	line-height: 1.45;
}

.tecto-product-rate-price {
	flex: 0 0 auto;
	color: #14171a;
	font-weight: 800;
	white-space: nowrap;
}

.tecto-product-rate.is-quote {
	border-left: 3px solid #e09a1d;
	background: #fff9ec;
}

.tecto-product-rate.is-pickup {
	border-left: 3px solid #2d8a45;
	background: #f3faf5;
}

.tecto-product-shipping-policy {
	display: grid;
	gap: 0;
	margin-top: 4px;
	border-top: 1px solid #e5eaf0;
	background: #fbfcfd;
}

.tecto-product-shipping-policy p {
	margin: 0;
	padding: 12px 18px;
	color: #5b6572;
	font-size: 12.5px;
	line-height: 1.55;
}

.tecto-product-shipping-policy p + p {
	border-top: 1px solid #edf0f4;
}

.tecto-product-shipping-policy strong {
	display: block;
	color: #14171a;
	font-size: 13px;
}

@media (max-width: 680px) {
	.single-product .tecto-trade-price {
		align-items: flex-start;
	}
	.tecto-product-shipping-fields {
		grid-template-columns: 1fr;
	}
	.tecto-product-rate {
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tecto-flow-toast {
		transition: none;
	}
}
