.los-dialog {
	background: #fff;
	border: 1px solid #c5ddd7;
	border-radius: 14px;
	box-shadow: 0 24px 80px #173e4638;
	box-sizing: border-box;
	color: #173e46;
	font: inherit;
	font-size: 14px;
	line-height: 1.6;
	margin: auto;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	width: min(680px, calc(100vw - 32px));
}
.los-dialog::backdrop { background: #173e4670; }
body.los-dialog-open { overflow: hidden; }
.los-header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 8px; }
.los-header h2, .los-success-content h2 { color: #173e46; font-size: 22px; line-height: 1.35; margin: 4px 0 8px; }
.los-dialog .los-close { align-items: center; background: transparent; border: 1px solid #c5ddd7; border-radius: 8px; color: #173e46; display: flex; flex: 0 0 44px; font-size: 28px; height: 44px; justify-content: center; line-height: 1; padding: 0; width: 44px; }
.los-section { border-bottom: 1px solid #deebe7; padding: 16px 0; }
.los-section h3, .los-payment h3 { color: #173e46; font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.los-section p { margin: 10px 0 0; }
.los-facts { display: grid; gap: 8px; margin: 0; }
.los-facts > div { align-items: baseline; display: grid; gap: 12px; grid-template-columns: minmax(130px, 1fr) minmax(0, 1.3fr); }
.los-facts dt { color: #567077; font-weight: 400; }
.los-facts dd { font-variant-numeric: tabular-nums; font-weight: 600; margin: 0; overflow-wrap: anywhere; text-align: right; }
.los-section address { font-style: normal; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.los-muted { color: #567077; font-size: 13px; }
.los-next-step { background: #eaf7f1; border-left: 3px solid #0b5f4a; border-radius: 4px; color: #174b3e; padding: 12px 14px; }
.los-warning, .los-error { background: #fff7eb; border: 1px solid #ead4ae; border-radius: 8px; color: #794c16; padding: 12px 14px; }
.los-error[hidden], .los-actions [hidden] { display: none; }
.los-note { white-space: pre-line; overflow-wrap: anywhere; }
.los-payment { margin-top: 20px; }
.los-methods { border: 0; display: grid; gap: 8px; margin: 12px 0; padding: 0; }
.los-methods legend { color: #173e46; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.los-method, .los-consent { align-items: flex-start; display: flex; gap: 10px; margin: 8px 0; }
.los-method { border: 1px solid #c5ddd7; border-radius: 6px; padding: 12px; }
.los-method input, .los-consent input { accent-color: #0b5f4a; flex: 0 0 20px; height: 20px; margin: 1px 0; width: 20px; }
.los-consent { margin: 18px 0; }
.los-consent a { color: #0b5f4a; text-decoration: underline; }
.los-method-choice > .los-button { width: 100%; }
.los-payment-status:empty { display: none; }
.los-payment-status { color: #0b5f4a; font-weight: 600; margin: 16px 0 0; }
.los-payment[inert] { opacity: .55; }
.los-dialog .los-button, .los-success-content .los-button { align-items: center; background: #0b5f4a; border: 1px solid #0b5f4a; border-radius: 7px; box-shadow: none; color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-weight: 600; justify-content: center; line-height: 1.4; min-height: 48px; padding: 12px 18px; text-align: center; text-decoration: none; }
.los-dialog .los-button-secondary { background: #fff; color: #0b5f4a; min-height: 44px; padding: 10px 14px; }
.los-dialog .los-button:disabled { background: #edf2f0; border-color: #d5e1dc; color: #647870; cursor: not-allowed; width: 100%; }
.los-dialog .los-text-button { background: transparent; border: 0; color: #0b5f4a; font: inherit; min-height: 44px; padding: 10px 0; text-align: left; text-decoration: underline; }
.los-dialog button:focus-visible, .los-dialog a:focus-visible { outline: 3px solid #46b997; outline-offset: 3px; }
.los-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.los-dialog [hidden] { display: none !important; }
.los-shipping-dialog { text-align: left; }
.los-shipping-dialog:focus { outline: none; }
.los-shipping-dialog:focus-visible { outline: 2px solid #168773; outline-offset: -2px; }
/* Waiting quotes reuse the shared order-view layout. */
.los-waiting-quote .los-header, .los-payment-review .los-header { margin: 0; }
.los-waiting-quote .los-payment, .los-waiting-quote .los-payment-status, .los-waiting-quote > .los-muted,
.los-waiting-quote .los-error[hidden] ~ .los-actions { display: none; }
.los-success { width: min(540px, calc(100vw - 32px)); }
.los-success > .los-close { margin-left: auto; }
.los-success-content { background: #fff; border-radius: 12px; color: #173e46; margin: 0 auto; max-width: 580px; padding: 16px 4px; }
.woocommerce-order > .los-success-content { border: 1px solid #c5ddd7; padding: 30px; }
.los-success-icon { align-items: center; background: #e6f6ef; border-radius: 50%; color: #0b5f4a; display: flex; font-size: 28px; height: 56px; justify-content: center; margin-bottom: 16px; width: 56px; }
.los-success-content .los-button { width: 100%; }
.los-order-number { font-size: 16px; font-weight: 600; }
.los-dialog.los-shipping-success {
	padding: 38px 28px 27px;
	width: min(625px, calc(100vw - 32px));
}
.los-shipping-success > .los-close {
	border-radius: 10px;
	flex-basis: 52px;
	height: 52px;
	position: absolute;
	right: 24px;
	top: 20px;
	width: 52px;
}
.los-shipping-success-content {
	border-radius: 0;
	max-width: none;
	padding: 0;
	text-align: center;
}
.los-shipping-success-icon {
	align-items: center;
	background: #08785d;
	border-radius: 50%;
	box-shadow: 0 8px 18px rgba(11, 106, 80, .18);
	color: #fff;
	display: flex;
	font-size: 32px;
	font-weight: 800;
	height: 58px;
	justify-content: center;
	line-height: 1;
	margin: 0 auto;
	width: 58px;
}
.los-shipping-success-content .los-shipping-success-eyebrow {
	color: #078b8e;
	font-size: 12px;
	font-weight: 800;
	line-height: 18px;
	margin: 13px 0 5px;
	text-transform: uppercase;
}
.los-shipping-success-content h2 {
	color: #143e46;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}
.los-shipping-success-content h2:focus { outline: none; }
.los-shipping-success-content .los-shipping-success-order {
	color: #173e46;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
	margin: 5px 0 15px;
}
.los-shipping-success-summary {
	border-top: 1px solid #dbe8e5;
	color: #173e46;
	padding: 7px 6px 0;
	text-align: left;
}
.los-shipping-success-summary h3 {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 3px;
}
.los-shipping-success-facts {
	display: grid;
	gap: 0;
	margin: 0;
}
.los-shipping-success-facts > div {
	align-items: baseline;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 29px;
}
.los-shipping-success-facts dt { color: #567077; font-weight: 400; }
.los-shipping-success-facts dd {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	margin: 0;
	text-align: right;
}
.los-shipping-success-facts > div:last-child {
	border-bottom: 1px solid #dbe8e5;
	border-top: 1px solid #dbe8e5;
	margin-top: 2px;
	min-height: 40px;
	padding-top: 7px;
}
.los-shipping-success-facts > div:last-child dt { color: #173e46; font-weight: 700; }
.los-shipping-success-message {
	color: #294f57;
	font-size: 16px;
	line-height: 1.5;
	margin: 12px 6px 8px;
	text-align: left;
}
.los-shipping-success-content .los-button {
	box-sizing: border-box;
	font-size: 16px;
	font-weight: 700;
	min-height: 57px;
}
.lightsign-order-shipping-substatus, .lightsign-order-shipping-money { display: block; margin-top: 3px; }
.lightsign-order-shipping-substatus { color: #567077; font-size: 12px; }
.woocommerce-orders-table .lightsign-pay-shipping { min-height: 44px; white-space: normal; }
/* Keep status colors consistent across hover, focus and active states. */
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button.lightsign-pay-shipping[aria-label*="Awaiting Quote"] {
	--los-status-background: #e1f4e9;
	--los-status-border: #badcc9;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button.lightsign-pay-shipping[aria-label*="Shipping payment"] {
	--los-status-background: #edf3d8;
	--los-status-border: #cfdbad;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button.lightsign-pay-shipping:is([aria-label*="Awaiting Quote"], [aria-label*="Shipping payment"]) {
	background: var(--los-status-background) !important;
	border-color: var(--los-status-border) !important;
	color: #0b5f4a !important;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button.lightsign-pay-shipping:is([aria-label*="Awaiting Quote"], [aria-label*="Shipping payment"]):focus-visible {
	outline: 2px solid #0b5f4a;
	outline-offset: 2px;
}
.woocommerce-orders-table__cell-order-actions { white-space: normal; }
.los-order-highlight { background: #e3f8ee !important; }
.los-continue-order { align-items: center; background: #fff; border: 1px solid #b9d8cc; border-radius: 10px; bottom: 24px; box-shadow: 0 8px 32px #173e4626; color: #173e46; display: flex; flex-wrap: wrap; font-size: 14px; gap: 14px; left: 50%; max-width: calc(100vw - 32px); padding: 16px 20px; position: fixed; transform: translateX(-50%); width: max-content; z-index: 10000; }
.los-continue-order .button { background: #0b5f4a; color: #fff; min-height: 44px; }
@media (max-width: 600px) {
	.los-dialog { border-radius: 10px; max-height: calc(100dvh - 16px); padding: 18px 16px max(18px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); }
	.los-header h2, .los-success-content h2 { font-size: 20px; }
	.los-facts > div { gap: 4px; grid-template-columns: 1fr; }
	.los-facts dd { text-align: left; }
	.los-actions > button { flex: 1 1 100%; }
	.woocommerce-orders-table__cell-order-actions .button { margin: 5px 4px; }
	.los-dialog.los-shipping-success { padding: 28px 16px 18px; width: calc(100vw - 16px); }
	.los-shipping-success > .los-close { flex-basis: 44px; height: 44px; right: 14px; top: 14px; width: 44px; }
	.los-shipping-success-content h2 { font-size: 26px; padding: 0 42px; }
	.los-shipping-success-content .los-shipping-success-order { font-size: 21px; margin-bottom: 12px; }
	.los-shipping-success-summary { padding-left: 2px; padding-right: 2px; }
	.los-shipping-success-message { font-size: 14px; margin-left: 2px; margin-right: 2px; }
}
@media (prefers-reduced-motion: reduce) { .los-order-highlight { scroll-behavior: auto; } }

/* Receipt page for Request Quote Later product payments only. */
.los-products-received .entry-header { display: none; }
.los-products-received .woocommerce-order { padding: 32px 16px 48px; }
body.los-products-received-success {
	overflow-x: hidden;
	overflow-y: auto;
}
body.los-products-received-success .woocommerce-order {
	align-items: center;
	background: transparent;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	min-height: calc(100vh - 300px);
	min-height: calc(100dvh - 300px);
	overflow: visible;
	padding: 48px 20px 64px;
	position: static;
	width: 100%;
}
.los-products-received-success .woocommerce-order > :not(.los-products-receipt) { display: none !important; }
.los-products-success-open .woocommerce-order { visibility: hidden; }
dialog.los-products-success {
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(20, 79, 85, .13);
	max-height: calc(100dvh - 32px);
	padding: 0;
	width: min(454px, calc(100vw - 32px));
}
dialog.los-products-success::backdrop { background: rgba(20, 62, 70, .03); }
.los-products-receipt {
	background: #fff;
	border: 1px solid rgba(15, 143, 145, .2);
	border-top: 4px solid #18ad78;
	border-radius: 8px;
	box-sizing: border-box;
	color: #143e46;
	margin: 0 auto;
	max-width: 454px;
	padding: 31px 20px 49px;
	text-align: center;
	width: 100%;
}
.los-products-receipt__icon {
	align-items: center;
	background: #0b6a50;
	border-radius: 50%;
	box-shadow: 0 8px 18px rgba(11, 106, 80, .18);
	color: #fff;
	display: flex;
	font-size: 32px;
	font-weight: 800;
	height: 56px;
	justify-content: center;
	line-height: 1;
	margin: 0 auto;
	width: 56px;
}
.los-products-receipt .los-products-receipt__eyebrow { color: #078b8e; font-size: 12px; font-weight: 800; line-height: 18px; margin: 16px 0 0; text-transform: uppercase; }
.los-products-receipt h1 { color: #143e46; font-size: 30px; font-weight: 800; letter-spacing: 0; line-height: 1.25; margin: 10px 0 12px; overflow-wrap: anywhere; }
.los-products-receipt h1:focus { outline: none; }
.los-products-receipt .los-products-receipt__message { color: #58767c; font-size: 15px; line-height: 1.55; margin: 0; }
.los-products-receipt__reference { background: #eef9f6; border: 1px solid rgba(11, 106, 80, .14); border-radius: 7px; box-sizing: border-box; margin: 18px auto 0; max-width: 292px; padding: 16px 20px; }
.los-products-receipt__reference strong { color: #0b6a50; display: block; font-size: 24px; font-weight: 800; line-height: 1; overflow-wrap: anywhere; }
.los-products-receipt .los-products-receipt__order-link { align-items: center; background: #0b6a50; border: 1px solid #0b6a50; border-radius: 8px; box-sizing: border-box; color: #fff; display: flex; font-size: 16px; font-weight: 700; justify-content: center; line-height: 1.4; margin: 22px auto 0; max-width: 292px; min-height: 56px; padding: 14px 20px; text-decoration: none; }
.los-products-receipt .los-products-receipt__order-link:hover { background: #085740; border-color: #085740; color: #fff; }
.los-products-receipt .los-products-receipt__order-link:focus-visible { outline: 3px solid #46b997; outline-offset: 3px; }
@media (max-width: 400px) {
	.los-products-receipt { padding: 28px 20px 34px; }
	.los-products-receipt h1 { font-size: 25px; }
}
@media (max-width: 640px) {
	body.los-products-received-success .woocommerce-order {
		min-height: calc(100vh - 250px);
		min-height: calc(100dvh - 250px);
		padding: 18px 16px 28px;
	}
}
@media (max-height: 520px) {
	body.los-products-received-success .woocommerce-order { align-items: flex-start; }
}

/* Payment controls follow the shared order receipt details. */
.los-dialog.los-payment-review { max-width: 800px; padding: 16px 24px 20px; width: min(800px, calc(100vw - 32px)); }
.los-payment-review .los-payment h3 { color: #173e46; font-size: 16px; line-height: 1.4; margin: 0; }
.los-payment-review .los-payment { margin-top: 0; }
.los-payment-review .los-shipping-option {
	border-bottom: 1px solid #e0eded;
	padding: 8px 2px 10px;
}
.los-payment-review .los-shipping-option h3 {
	color: #173e46;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 4px;
}
.los-payment-review .los-shipping-option-facts { gap: 2px; }
.los-payment-review .los-shipping-option-facts > div {
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	min-height: 24px;
}
.los-payment-review .los-shipping-option-facts dt {
	color: #496b73;
	font-size: 13px;
}
.los-payment-review .los-shipping-option-facts dd {
	color: #173e46;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}
.los-payment-review .los-payment-heading { align-items: center; display: grid; gap: 8px 16px; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 36px; }
.los-payment-review .los-payment-heading h3 { margin: 0; }
.los-payment-review .los-shipping-due { align-items: baseline; display: flex; justify-content: flex-end; }
.los-payment-review .los-shipping-due > span { color: #567077; font-size: 14px; }
.los-payment-review .los-shipping-due > strong { color: #173e46; font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.los-payment-review .los-payment .los-decline {
	background: #fff;
	border: 0;
	border-radius: 0;
	color: #a3392e;
	display: flex;
	font: inherit;
	font-weight: 600;
	margin: 0;
	min-height: 32px;
	padding: 4px 6px;
	text-decoration: underline;
	width: auto;
}
.los-payment-review .los-payment .los-decline:hover { background: #fff; color: #842d24; }
.los-payment-review .los-express-checkout { background: #fff; padding: 8px 0 0; }
.los-payment-review .los-consent { color: #567077; font-size: 13px; line-height: 1.6; margin: 0 4px 14px; }
.los-payment-review .los-consent a { color: #176ab5; text-decoration: underline; }
.los-payment-review .los-express-methods {
	border: 1px solid #ccdfd8;
	border-radius: 4px;
	margin: 0;
	min-inline-size: 0;
	padding: 12px 14px 14px;
}
.los-payment-review .los-express-methods legend { color: #567077; font-size: 14px; font-weight: 400; margin: 0 auto; padding: 0 12px; text-align: center; width: auto; }
.los-payment-review .los-express-buttons { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.los-payment-review .los-paypal-button { min-height: 48px; min-width: 0; width: 100%; }
.los-dialog.los-payment-review .los-button.los-express-button {
	border-radius: 5px;
	font-size: 17px;
	font-weight: 500;
	gap: 7px;
	min-height: 50px;
	min-width: 0;
	padding: 12px 14px;
	width: auto;
}
.los-dialog.los-payment-review .los-button.los-express-paypal { background: #ffc439; border-color: #ffc439; color: #202020; }
.los-payment-review .los-paypal-brand { color: #003087; font-size: 21px; font-style: italic; font-weight: 800; letter-spacing: -.5px; }
.los-dialog.los-payment-review .los-button.los-express-card { background: #2c2e2f; border-color: #2c2e2f; color: #fff; }
.los-payment-review .los-card-icon { border: 1.5px solid currentColor; border-radius: 2px; box-sizing: border-box; display: inline-block; flex: 0 0 27px; height: 19px; position: relative; width: 27px; }
.los-payment-review .los-card-icon::before { border-top: 2px solid currentColor; content: ""; left: 0; position: absolute; right: 0; top: 4px; }
.los-dialog.los-payment-review .los-button.los-express-other { background: #0b5f4a; border-color: #0b5f4a; color: #fff; }
.los-payment-review .los-express-button:only-child { grid-column: 1 / -1; }
.los-dialog.los-payment-review .los-button.los-express-button:disabled { cursor: not-allowed; opacity: .6; width: auto; }
.los-dialog.los-payment-review .los-button.los-express-paypal:enabled:hover { background: #f4b924; border-color: #f4b924; }
.los-dialog.los-payment-review .los-button.los-express-card:enabled:hover { background: #151718; border-color: #151718; }
.los-dialog.los-payment-review .los-button.los-express-other:enabled:hover { background: #084b3a; border-color: #084b3a; }
.los-payment-review > .los-muted,
.los-payment-review .los-error[hidden] ~ .los-actions { display: none; }
@media (max-width: 600px) {
	.los-dialog.los-payment-review { padding: 14px 16px 18px; width: calc(100vw - 20px); }
	.los-payment-review .los-shipping-option-facts > div { gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
	.los-payment-review .los-payment-heading { gap: 8px 12px; }
	.los-payment-review .los-express-checkout { padding: 12px 10px; }
	.los-payment-review .los-express-methods { padding: 10px; }
	.los-payment-review .los-express-buttons { gap: 10px; grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
	.los-payment-review .los-payment-heading { grid-template-columns: minmax(0, 1fr) auto; }
	.los-payment-review .los-payment-heading h3 { grid-column: 1 / -1; }
	.los-payment-review .los-shipping-due { justify-self: end; }
}

/* Keep the disabled panel mounted until the PayPal checkout becomes visible. */
.los-dialog.los-paypal-active { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }

.los-dialog.los-provider-visible { opacity: 0; pointer-events: none; }
.los-payment-busy .los-express-buttons { opacity: .45; pointer-events: none; }
.los-processing-overlay { margin: 0; padding: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; box-sizing: border-box; position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; background: rgba(235,248,246,.64); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.los-processing-overlay::backdrop { background: transparent; }
.los-processing-card { width: min(320px, calc(100vw - 40px)); box-sizing: border-box; padding: 36px 24px; border: 1px solid #d6eae5; border-radius: 20px; background: linear-gradient(160deg,#fff 45%,#f0fbf7); box-shadow: 0 20px 64px #104f4829; text-align: center; color: #173f47; }
.los-processing-card h2 { font-size: 22px; margin: 24px 0 10px; }
.los-processing-card p { color: #58767c; margin: 0; }
.los-processing-symbol { width: 74px; height: 74px; margin: auto; position: relative; border-radius: 50%; background: radial-gradient(circle,#e5f7ef 57%,transparent 59%); }
.los-processing-symbol svg { position: absolute; left: 23px; top: 23px; width: 28px; height: 28px; stroke: #00846b; stroke-width: 1.8; stroke-linecap: round; }
.los-processing-spinner { display: block; width: 68px; height: 68px; border: 3px solid #dceee8; border-top-color: #119b80; border-radius: 50%; animation: los-processing-spin 1.2s linear infinite; font-size: 0; }
@keyframes los-processing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .los-processing-spinner { animation: none; } }

/* Hide only the provider checkout while the order page remains visible behind the loader. */
.los-provider-checkout-hidden { opacity: 0 !important; pointer-events: none !important; }
