/* FBR Price Calculator. Scoped to .fbr-pc; !important only where the theme (Salient) forces its own form styles. */
.fbr-pc {
	--fbr-pc-accent: #e85d04;
	--fbr-pc-text: #222;
	margin: 0 0 16px;
	max-width: 100%;
}
.fbr-pc__toggle {
	display: block;
	width: 100%;
	padding: 14px 16px;
	background: #fff;
	color: var(--fbr-pc-accent);
	border: 2px solid var(--fbr-pc-accent);
	font: inherit;
	cursor: pointer;
}
.fbr-pc__toggle:hover,
.fbr-pc__toggle[aria-expanded="true"] {
	background: rgba(232, 93, 4, 0.06);
}
.fbr-pc__panel {
	margin-top: 8px;
	padding: 16px;
	border: 1px solid #e3e3e3;
	border-radius: 3px;
}
.fbr-pc__panel[hidden] {
	display: none;
}
.fbr-pc p {
	margin: 0 0 6px !important;
	padding: 0 !important;
	line-height: 1.5;
}
.fbr-pc__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}
.fbr-pc__row {
	display: flex !important;
	gap: 8px;
	align-items: stretch;
}
.fbr-pc .fbr-pc__amount,
.fbr-pc .fbr-pc__unit {
	box-sizing: border-box !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	background: #fff !important;
	background-color: #fff !important;
	color: var(--fbr-pc-text) !important;
	border: 1px solid var(--fbr-pc-accent) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	font-size: 16px !important; /* also prevents iOS zoom on focus */
	line-height: normal !important;
	opacity: 1 !important;
}
.fbr-pc .fbr-pc__amount {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
}
.fbr-pc .fbr-pc__unit {
	flex: 0 0 84px !important;
	width: 84px !important;
	max-width: 84px !important;
	min-width: 0 !important;
	-webkit-appearance: auto !important;
	appearance: auto !important;
}
.fbr-pc .fbr-pc__amount::placeholder {
	color: #999 !important;
	opacity: 1;
}
.fbr-pc .fbr-pc__amount:focus,
.fbr-pc .fbr-pc__unit:focus {
	outline: none !important;
	border-color: var(--fbr-pc-accent) !important;
	box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25) !important;
}
.fbr-pc__toggle:focus-visible,
.fbr-pc__quote:focus-visible {
	outline: 2px solid var(--fbr-pc-accent);
	outline-offset: 2px;
}
.fbr-pc__result:not(:empty) {
	margin-top: 12px;
}
.fbr-pc .fbr-pc__price {
	font-size: 1.1em;
}
.fbr-pc__total {
	font-weight: 600;
}
.fbr-pc .fbr-pc__small,
.fbr-pc .fbr-pc__shipping,
.fbr-pc .fbr-pc__disclaimer {
	font-size: 0.85em;
	opacity: 0.75;
}
.fbr-pc .fbr-pc__shipping {
	margin: 12px 0 0 !important;
}
.fbr-pc .fbr-pc__disclaimer {
	margin: 8px 0 0 !important;
}
.fbr-pc__note {
	color: #8a4b00;
}
.fbr-pc__quote {
	display: inline-block;
	margin-top: 6px;
	color: var(--fbr-pc-accent);
	font-weight: 600;
	text-decoration: underline;
}

/* Salient's dynamic CSS gives the YITH button margin-top:-2rem !important, which pulls it over the calculator.
   Reset it only when the button follows the calculator. */
.fbr-pc + .yith-ywraq-add-to-quote a.add-request-quote-button.button,
.fbr-pc + .yith-ywraq-add-to-quote .add-request-quote-button {
	margin-top: 0 !important;
}

/* Never wider than its column (mobile). */
.fbr-pc,
.fbr-pc__panel,
.fbr-pc__row,
.fbr-pc__result {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}
.fbr-pc__result,
.fbr-pc p {
	overflow-wrap: anywhere;
}

/* Shipping text under the quote form. */
.fbr-pc-shipping-note {
	margin: 16px 0 0;
	font-size: 0.9em;
	white-space: pre-line;
}
