/**
 * The booking parts in the brand, for a theme that places them (Focus_Bookings_Theme_Parts).
 * Loaded only under such a theme, after its tokens: every value here is one of its custom
 * properties, and the shared components (.fr-button, .fr-dot, .fr-badge, .fr-mark) are the theme's.
 *
 * Breakpoints as the theme's: phone below 640px, tablet to 1023px, computer from 1024px.
 */

/* ---------------------------------------------------------------- Header: dates button
 *
 * Before dates are chosen: an outline "Choose dates" with the calendar. After:
 * filled camera-body black with the record light, the dates in it. data-fr-has-dates says which.
 */

.fr-dates-button {
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
	white-space: nowrap;
}

.fr-dates-button .fr-calendar-icon {
	width: 20px;
	height: 20px;
}

.fr-dates-button[data-fr-has-dates="1"] {
	border-color: var(--fr-color-body);
	background: var(--fr-color-body);
	color: var(--fr-color-white);
	gap: 10px;
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-dates-button[data-fr-has-dates="1"]:hover {
		border-color: var(--fr-color-ink);
		background: var(--fr-color-ink);
	}
}

.fr-dates-button[data-fr-has-dates="0"] .fr-dot,
.fr-dates-button[data-fr-has-dates="0"] .fr-dates-button__set,
.fr-dates-button[data-fr-has-dates="1"] .fr-dates-button__empty,
.fr-dates-button[data-fr-has-dates="1"] .fr-calendar-icon {
	display: none;
}

/* On a phone, across the header's width under the icons, where a thumb can reach it. */
@media (max-width: 639px) {
	.fr-dates-button {
		width: 100%;
		min-height: var(--fr-control-height-wide);
		font-weight: var(--fr-weight-semibold);
	}
}

/* ---------------------------------------------------------------- Header: signing in
 *
 * The profile icon, then "Sign in" or the customer's name. Every customer has the same icon.
 */

.fr-account-link {
	display: inline-flex;
	align-items: center;
	gap: var(--fr-space-2);
	min-height: var(--fr-control-height);
	padding: 0;
	border: 0;
	background: none;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
	text-decoration: none;
	cursor: pointer;
}

.fr-account-link:hover {
	color: var(--fr-color-ink);
}

.fr-account-link:hover .fr-account-link__label {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.fr-account-icon {
	width: 26px;
	height: 26px;
}

.fr-account-icon__ring {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5875;
}

/* No outline: the old design's stroke on .fr-account-icon (focus-b-front.css) would otherwise
   reach the head and shoulders in black. */
.fr-account-icon__fill {
	fill: currentColor;
	stroke: none;
}

/* The icon alone in a phone's header: greyed while signed out, in ink once signed in. */
.fr-account-icon-link {
	color: var(--fr-color-ink);
}

.fr-account-icon-link--signed-out {
	color: var(--fr-color-text-off);
}

@media (hover: hover) {
	.fr-account-icon-link--signed-out:hover {
		color: var(--fr-color-text-muted);
	}
}

/* In the menu drawer it is a full-width outline button. */
.fr-drawer__account .fr-account-link {
	justify-content: center;
	width: 100%;
	min-height: var(--fr-control-height-wide);
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	font-weight: var(--fr-weight-semibold);
}

/* ---------------------------------------------------------------- Header: kit list
 *
 * "Kit", then the rucksack with the count on its shoulder, like a notification. On a phone the
 * word is for screen readers only.
 */

.fr-kit-list-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fr-space-2);
	min-width: var(--fr-control-height);
	min-height: var(--fr-control-height);
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
	text-decoration: none;
}

.fr-kit-list-link:hover {
	color: var(--fr-color-ink);
}

.fr-kit-list-link:hover .fr-kit-list-link__text {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.fr-kit-list-link__icon-wrap {
	position: relative;
	display: inline-flex;
}

.fr-kit-list-link .fr-badge {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
}

/*
 * Unless the navigation is in the header's row, the header is icons only. The theme decides which,
 * on <html data-fr-nav="row|drawer"> (the Focus Rentals theme's site.js).
 */
html:not([data-fr-nav="row"]) .fr-kit-list-link__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Home: dates panel
 *
 * A camera-body black panel. Before dates are chosen, one "Choose dates" across it; after, collect
 * and return side by side with their days. Each opens the dates modal.
 */

.fr-dates-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fr-space-2);
	max-width: 460px;
	padding: var(--fr-space-3);
	border-radius: var(--fr-radius-panel);
	background: var(--fr-color-body);
	color: var(--fr-color-on-dark);
}

.fr-dates-panel__slot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--fr-space-1);
	min-height: 64px;
	padding: var(--fr-space-3);
	border: 0;
	border-radius: var(--fr-radius-inset);
	background: var(--fr-color-body-raised);
	color: var(--fr-color-on-dark);
	text-align: left;
	cursor: pointer;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-dates-panel__slot:hover {
		background: var(--fr-color-body-line);
	}
}

.fr-dates-panel__slot:focus-visible {
	outline-color: var(--fr-color-on-dark);
}

.fr-dates-panel__choose {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: var(--fr-space-3);
}

.fr-dates-panel__choose .fr-calendar-icon {
	width: 22px;
	height: 22px;
}

.fr-dates-panel[data-fr-has-dates="0"] .fr-dates-panel__chosen,
.fr-dates-panel[data-fr-has-dates="1"] .fr-dates-panel__choose {
	display: none;
}

/* A size up from the other markings: collect and return head what is under them. */
.fr-dates-panel__mark {
	color: var(--fr-color-on-dark-mark);
	font-size: var(--fr-text-mark-dates);
}

.fr-dates-panel__day {
	font-size: var(--fr-text-base-narrow);
	font-weight: var(--fr-weight-semibold);
}

@media (min-width: 640px) {
	.fr-dates-panel {
		gap: 10px;
		padding: var(--fr-space-4);
	}

	.fr-dates-panel__slot {
		padding: var(--fr-space-3) 14px;
	}

	.fr-dates-panel__day {
		font-size: var(--fr-text-base);
	}
}

/* ---------------------------------------------------------------- A product tile's price
 *
 * "£75 /day" until dates are chosen, then "£270 for your dates" in its place
 * (html-product-tile-price.php). data-fr-priced says which.
 */

.fr-tile-price[data-fr-priced="1"] .fr-tile-price__rate,
.fr-tile-price[data-fr-priced="0"] .fr-tile-price__dates {
	display: none;
}

/* ---------------------------------------------------------------- The old views' links
 *
 * .text-link: a link is underlined in the text's own colour and fades to muted under the pointer.
 */

.text-link,
a.text-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: solid;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.text-link:hover {
	color: var(--fr-color-text-muted);
	text-decoration: underline;
}

/* ---------------------------------------------------------------- Action status: the light
 *
 * A button's action, shown on the button itself (round 4's option 9, failing as 14b).
 * FocusBookingsActionStatus (focus-b-front.js) moves the .fr-action-status's data-state through
 * loading, then success, or failed, fading and idle again, and lights its data-led. While the
 * state is anything but idle the button is ink, its words hidden but keeping its width, with a
 * light across its middle: orange as data-led flickers, green once done, error red for as long as
 * a failure is up and then faded (over FAILED_FADE there), when it can already be pressed again.
 * The spinner and tick that stood in for the button are not drawn, except beside a text link,
 * which has no light.
 *
 * !important because each place sets its buttons' look as strongly as it needs to (the profile's
 * with an id), and while it works the light has to win in all of them.
 */

.fr-action-status:not(:has(> .text-link), .fr-checkout-success *) > :is(.spinner-loader, .fr-action-success) {
	display: none !important;
}

.fr-action-status:is([data-state="loading"], [data-state="success"], [data-state="failed"], [data-state="fading"]) > button:not(.text-link) {
	position: relative;
	visibility: visible;
	border-color: var(--fr-color-ink) !important;
	background: var(--fr-color-ink) !important;
	color: transparent !important;
	opacity: 1 !important;
	cursor: default !important;
	transform: none;
}

.fr-action-status:is([data-state="loading"], [data-state="success"], [data-state="failed"], [data-state="fading"]) > button:not(.text-link) > * {
	visibility: hidden;
}

.fr-action-status:is([data-state="loading"], [data-state="success"], [data-state="failed"], [data-state="fading"]) > button:not(.text-link)::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(72px, 100% - var(--fr-space-7));
	height: 3px;
	border-radius: 2px;
	background: var(--fr-color-led-off);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.fr-action-status[data-state="loading"][data-led="on"] > button:not(.text-link)::after {
	background: var(--fr-color-led-busy);
	box-shadow: 0 0 6px 1px color-mix(in srgb, var(--fr-color-led-busy) 75%, transparent);
}

.fr-action-status:is([data-state="failed"], [data-state="fading"]) > button:not(.text-link)::after {
	background: var(--fr-color-error);
	box-shadow: 0 0 6px 1px color-mix(in srgb, var(--fr-color-error) 75%, transparent);
}

.fr-action-status:is([data-state="failed"], [data-state="fading"]) > button:not(.text-link, :disabled) {
	cursor: pointer !important;
}

.fr-action-status[data-state="success"] > button:not(.text-link)::after {
	background: var(--fr-color-led-done);
	box-shadow: 0 0 6px 1px color-mix(in srgb, var(--fr-color-led-done) 75%, transparent);
}

.fr-action-status[data-state="fading"] > button:not(.text-link)::after {
	opacity: 0;
	transition: opacity 900ms var(--fr-motion-ease);
}

/* The line a failure leaves where the page has no words of its own (html-action-status-note.php):
   after the status, so in a row of buttons it takes a line of its own under them all. */
.fr-action-status-note {
	flex: 1 0 100%;
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: var(--fr-space-2);
	margin: var(--fr-space-2) 0 0;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	line-height: 1.4;
}

.fr-action-failed-icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

/* ---------------------------------------------------------------- Modals: the light panel
 *
 * Every modal is an aluminium panel over the dimmed page, after round 4's light design: its
 * heading with a cross at the right (no box until the pointer is over it), the text, then the
 * buttons, the primary first. Centred from a tablet's width up; on a phone a sheet rising from
 * the foot of the screen, its buttons stacked. The dates modal is the same panel with a layout of
 * its own (below), and takes the whole screen on a phone, as does any modal with a field to type in.
 *
 * Two families share the look. jquery-modal's: a .modal in a blocker of its own, each screen a
 * .fr-sign-in-register-modal-wrapper holding .fr-box-1 and, for a way to another screen, .fr-box-2,
 * which becomes the panel's foot under an ink rule (round 3's "New to Focus Rentals?"). And the
 * order pages' own: .fr-order-modal, an overlay and a .fr-order-modal-panel with .fr-order-modal-view
 * screens.
 *
 * In them WooCommerce's .button, which the old views use for the main action, is the record red
 * primary, and .button.secondary the outline; .fr-order-button the same.
 */

/* Until jquery-modal opens them, which shows them with a display of its own. */
:is(#fr-sign-in-register-modal, #fr-id-verification-modal, #fr-personal-data-modal, #fr-delete-account-modal, #fr-checkout-payment-modal, #fr-order-payment-modal, #fr-add-to-order-categories-modal) {
	display: none;
}

.jquery-modal.blocker {
	padding: var(--fr-space-5);
	background: var(--fr-color-scrim);
}

.jquery-modal.blocker > .modal,
.fr-order-modal-panel {
	--fr-modal-pad: 28px;
	--fr-modal-pad-top: var(--fr-space-6);
	position: relative;
	top: auto;
	left: auto;
	width: min(460px, 100%);
	max-width: none;
	height: auto;
	margin: 0;
	padding: var(--fr-modal-pad-top) var(--fr-modal-pad) var(--fr-modal-pad);
	overflow: hidden;
	transform: none;
	border-radius: var(--fr-radius-modal);
	background: var(--fr-color-ground);
	box-shadow: none;
	color: var(--fr-color-ink);
	font-family: var(--fr-font-body);
	font-size: var(--fr-text-base-narrow);
	line-height: var(--fr-leading-body);
	text-align: left;
	vertical-align: middle;
}

.fr-order-modal-overlay {
	background: var(--fr-color-scrim);
}

.fr-order-modal-panel {
	position: fixed;
	top: 50%;
	left: 50%;
	width: min(460px, calc(100vw - 2 * var(--fr-space-5)));
	max-height: calc(100vh - 2 * var(--fr-space-5));
	overflow-y: auto;
	transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: no-preference) {
	.jquery-modal.blocker > .modal {
		animation: fr-modal-in var(--fr-motion-settle) var(--fr-motion-ease);
	}

	.fr-order-modal:not([hidden]) .fr-order-modal-panel {
		animation: fr-order-modal-in var(--fr-motion-settle) var(--fr-motion-ease);
	}
}

@keyframes fr-modal-in {
	from {
		transform: translateY(8px);
	}
}

@keyframes fr-order-modal-in {
	from {
		transform: translate(-50%, calc(-50% + 8px));
	}
}

/* Keyboard focus: the ring in ink, as everywhere on the ground. */
.jquery-modal.blocker > .modal :focus-visible,
.fr-order-modal-panel :focus-visible {
	outline: 2px solid var(--fr-color-ink);
	outline-offset: 2px;
}

/* -------------------------------- The cross
 *
 * The plugin's own (.x-close-btn), and jquery-modal's where a modal has none of its own: the
 * confirmations on Profile and Connected users.
 */

.jquery-modal.blocker > .modal > .x-close-btn,
.fr-order-modal-panel > .x-close-btn,
.jquery-modal.blocker > .modal:not(:has(> .x-close-btn)) > a.close-modal {
	position: absolute;
	top: var(--fr-space-4);
	right: var(--fr-space-4);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--fr-control-height);
	min-width: 0;
	height: var(--fr-control-height);
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--fr-radius-control);
	background: transparent;
	color: var(--fr-color-ink);
	transition: box-shadow var(--fr-motion-quick) var(--fr-motion-ease);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.jquery-modal.blocker > .modal > .x-close-btn:hover,
	.fr-order-modal-panel > .x-close-btn:hover,
	.jquery-modal.blocker > .modal:not(:has(> .x-close-btn)) > a.close-modal:hover {
		box-shadow: inset 0 0 0 var(--fr-control-hairline) currentColor;
		background: transparent;
		color: var(--fr-color-ink);
	}
}

.x-close-btn .fr-close-icon {
	position: static;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: butt;
}

/* jquery-modal's own, where the plugin has given a modal none, draws a picture of a cross: the
   same cross as the plugin's, as a mask. Beside the plugin's it is left hidden. */
.jquery-modal.blocker > .modal:not(:has(> .x-close-btn)) > a.close-modal {
	text-indent: -9999px;
	overflow: hidden;
	background: none;
}

.jquery-modal.blocker > .modal:not(:has(> .x-close-btn)) > a.close-modal::after {
	content: "";
	position: absolute;
	inset: 13px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.4 3.4l11.2 11.2M14.6 3.4L3.4 14.6' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.4 3.4l11.2 11.2M14.6 3.4L3.4 14.6' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

/* -------------------------------- Screens */

.jquery-modal.blocker > .modal .fr-sign-in-register-modal-wrapper,
.fr-order-modal-panel .fr-sign-in-register-modal-wrapper {
	position: static;
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
}

.jquery-modal.blocker > .modal .fr-box-1,
.fr-order-modal-panel .fr-box-1 {
	position: static;
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	float: none;
	overflow: visible;
}

/* The way to another screen ("Don't have an account?"), at the panel's foot under an ink rule. */
.jquery-modal.blocker > .modal .fr-box-2 {
	position: static;
	width: auto;
	max-width: none;
	height: auto;
	margin: var(--fr-space-7) calc(-1 * var(--fr-modal-pad)) calc(-1 * var(--fr-modal-pad));
	padding: var(--fr-space-4) var(--fr-modal-pad) var(--fr-space-5);
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
	float: none;
}

.jquery-modal.blocker > .modal .fr-box-2 > p {
	position: static;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fr-space-3) var(--fr-space-4);
	margin: 0;
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

.jquery-modal.blocker > .modal .fr-box-2 > p > br {
	display: none;
}

/* At the right, whether the words before it are wrapped (a span) or bare. */
.jquery-modal.blocker > .modal .fr-box-2 .button {
	margin: 0 0 0 auto;
}

/* -------------------------------- Text */

.jquery-modal.blocker > .modal :is(h2, h3, h4),
.fr-order-modal-panel :is(h2, h3, h4) {
	margin: 0 0 var(--fr-space-3);
	color: var(--fr-color-ink);
	font-family: var(--fr-font-heading);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-heading);
	line-height: var(--fr-leading-snug);
	text-align: left;
}

/* The panel's heading, clear of the cross. */
.jquery-modal.blocker > .modal h2,
.jquery-modal.blocker > .modal > h3:first-child,
.jquery-modal.blocker > .modal .fr-payment-cards > h1,
.fr-order-modal-panel h2 {
	margin-bottom: var(--fr-space-4);
	padding-right: calc(var(--fr-control-height) + var(--fr-space-2));
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
	line-height: 1.05;
	text-wrap: balance;
}

.jquery-modal.blocker > .modal h2 + h2,
.fr-order-modal-panel h2 + h2 {
	margin-top: var(--fr-space-6);
}

.jquery-modal.blocker > .modal h3,
.fr-order-modal-panel h3 {
	font-size: 19px;
}

.jquery-modal.blocker > .modal :is(p, ul, ol),
.fr-order-modal-panel :is(p, ul, ol) {
	margin: 0 0 var(--fr-space-4);
	color: var(--fr-color-text-soft);
}

.jquery-modal.blocker > .modal :is(ul, ol),
.fr-order-modal-panel :is(ul, ol) {
	padding-left: 1.2em;
}

.jquery-modal.blocker > .modal :is(strong, b, .bold),
.fr-order-modal-panel :is(strong, b, .bold) {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

/* Something went wrong, or needs doing first: in ink, without the record light, which marks
   changes rather than errors. The scripts show and hide these. */
.jquery-modal.blocker > .modal :is(p, span).warning,
.fr-order-modal-panel :is(p, span).warning,
.jquery-modal.blocker > .modal :is(h2, h3).warning {
	position: relative;
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

.jquery-modal.blocker > .modal :is(p, span).warning .normal {
	color: var(--fr-color-text-soft);
	font-weight: var(--fr-weight-regular);
}

.jquery-modal.blocker > .modal .text-link,
.fr-order-modal-panel .text-link {
	color: var(--fr-color-ink);
}

/* A success screen (payment, order placed, kit removed): its tick over its heading, all centred.
   The tick stands alone here, with no button for the action light. */
:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-checkout-success :is(h2, h3, p) {
	text-align: center;
}

/* Without the room a modal's heading keeps for the cross, which would put it off centre. */
:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-checkout-success h2 {
	padding-inline: 0;
}

:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-checkout-success .fr-action-status {
	margin-bottom: var(--fr-space-4);
}

/* -------------------------------- Fields
 *
 * The theme's kit search (.fr-search__input, adding to an order's) is left to the theme, which
 * draws it as the header's.
 */

.jquery-modal.blocker > .modal :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"]:not(.fr-search__input), select),
.fr-order-modal-panel :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"]:not(.fr-search__input), select) {
	display: block;
	position: static;
	width: 100%;
	height: auto;
	min-height: var(--fr-control-height);
	margin: 0 0 var(--fr-space-3);
	padding: 0 var(--fr-space-3);
	float: none;
	border: solid var(--fr-color-ink);
	border-width: 0 0 var(--fr-control-hairline);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-base-narrow);
}

.jquery-modal.blocker > .modal :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], select):focus,
.fr-order-modal-panel :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], select):focus {
	outline: none;
	box-shadow: inset 0 -1px 0 var(--fr-color-ink);
}

/* A field found incorrect: its line doubled as in focus, in error red, for as long as the failure
   is up (FocusBookingsFailure in focus-b-front.js). */
.jquery-modal.blocker > .modal :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"]:not(.fr-search__input), select).invalid-input,
.fr-order-modal-panel :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"]:not(.fr-search__input), select).invalid-input,
[data-reactivate-screen] input.invalid-input,
[data-reactivate-screen] input.invalid-input:focus {
	border-bottom-color: var(--fr-color-error);
	box-shadow: inset 0 -1px 0 var(--fr-color-error);
}

.jquery-modal.blocker > .modal input.valid-input {
	border-bottom-color: var(--fr-color-ink);
}

/* What a new password must include: under the button, at its left edge, and the list indented
   under that (its icons in focus-b-front.css). */
#fr-sign-in-register-modal .password-requirements {
	width: auto;
	margin: var(--fr-space-5) 0 0;
}

#fr-sign-in-register-modal .password-requirements .fr-pwd-req-list {
	margin: 0 0 0 var(--fr-space-4);
	padding: 0;
	list-style: none;
}

/* Met, the whole line goes green, its bold words too. */
#fr-sign-in-register-modal .pwd-req.valid .bold {
	color: inherit;
}

/* Show or hide the password: an eye at the right end of its field, the field leaving it room.
   The field's full width, as the fields beside it are, the sign-in's row being a flex box that
   would otherwise shrink it. The eye is square, sitting on a field, which has no corners. */
.jquery-modal.blocker > .modal .fr-password-field {
	position: relative;
	width: 100%;
	margin: 0 0 var(--fr-space-3);
}

.jquery-modal.blocker > .modal .fr-password-field :is(input[type="password"], input[type="text"]) {
	margin: 0;
	padding-right: var(--fr-control-height);
}

.jquery-modal.blocker > .modal div.password-visibility-btn {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--fr-control-height);
	min-height: 0;
	height: var(--fr-control-height);
	margin: 0;
	padding: 0;
	float: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--fr-color-ink);
	cursor: pointer;
}

@media (hover: hover) {
	.jquery-modal.blocker > .modal div.password-visibility-btn:hover {
		background: transparent;
		box-shadow: inset 0 0 0 var(--fr-control-hairline) currentColor;
	}
}

.jquery-modal.blocker > .modal div.password-visibility-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* A code sent by text or email: a line for each figure. */
.jquery-modal.blocker > .modal .otp-container {
	margin: 0 0 var(--fr-space-4);
	padding: 0;
}

.jquery-modal.blocker > .modal .otp-form {
	justify-content: space-between;
	gap: var(--fr-space-2);
}

.jquery-modal.blocker > .modal .otp-form input.otp-input {
	display: block;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	max-width: 52px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: solid var(--fr-color-ink);
	border-width: 0 0 var(--fr-control-hairline);
	border-radius: 0;
	background: transparent;
	color: var(--fr-color-ink);
	font-family: var(--fr-font-heading);
	font-size: 28px;
	font-weight: var(--fr-weight-semibold);
	text-align: center;
}

.jquery-modal.blocker > .modal .otp-form input.otp-input:focus,
.jquery-modal.blocker > .modal .otp-form input.otp-input.filled {
	border-bottom-width: var(--fr-control-border);
	background: transparent;
	box-shadow: none;
}

.jquery-modal.blocker > .modal .otp-form input.otp-input.invalid-input,
.jquery-modal.blocker > .modal .otp-form input.otp-input.invalid-input:focus,
[data-reactivate-screen] .otp-form input.otp-input.invalid-input,
[data-reactivate-screen] .otp-form input.otp-input.invalid-input:focus {
	border-bottom-width: var(--fr-control-border);
	border-bottom-color: var(--fr-color-error);
	box-shadow: none;
}

/* -------------------------------- Buttons
 *
 * A row of them shares the width, the primary first; on a phone they stack, the primary on top.
 */

.jquery-modal.blocker > .modal :is(.button, .fr-order-button):not(.fr-button, .x-close-btn, .password-visibility-btn),
.fr-order-modal-panel :is(.button, .fr-order-button):not(.fr-button, .x-close-btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fr-space-2);
	width: auto;
	min-width: 0;
	height: auto;
	min-height: var(--fr-control-height-wide);
	margin: 0;
	padding: 0 18px;
	border: var(--fr-control-border) solid var(--fr-color-record);
	border-radius: var(--fr-radius-control);
	background: var(--fr-color-record);
	box-shadow: none;
	color: var(--fr-color-white);
	font-family: var(--fr-font-body);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: 0;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), border-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

.jquery-modal.blocker > .modal :is(.button, .fr-order-button).secondary:not(.fr-button, .x-close-btn, .password-visibility-btn),
.fr-order-modal-panel :is(.button, .fr-order-button).secondary:not(.fr-button, .x-close-btn) {
	border-color: var(--fr-color-ink);
	background: transparent;
	color: var(--fr-color-ink);
}

.jquery-modal.blocker > .modal :is(.button, .fr-order-button) :is(span, div),
.fr-order-modal-panel :is(.button, .fr-order-button) :is(span, div) {
	color: inherit;
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.jquery-modal.blocker > .modal :is(.button, .fr-order-button):not(.fr-button, .x-close-btn, .password-visibility-btn, :disabled):hover,
	.fr-order-modal-panel :is(.button, .fr-order-button):not(.fr-button, .x-close-btn, :disabled):hover {
		border-color: var(--fr-color-ink);
		background: var(--fr-color-ink);
		color: var(--fr-color-white);
	}
}

.jquery-modal.blocker > .modal :is(.button, .fr-order-button):disabled,
.fr-order-modal-panel :is(.button, .fr-order-button):disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.jquery-modal.blocker > .modal :is(.form-row, .fr-confirm-modal-actions):has(.button),
.fr-order-modal-panel :is(.form-row, .fr-order-modal-actions):has(:is(.button, .fr-order-button)) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--fr-space-3);
	margin: var(--fr-space-6) 0 0;
	color: inherit;
}

.jquery-modal.blocker > .modal :is(.form-row, .fr-confirm-modal-actions) > :is(.button, .fr-action-status),
.fr-order-modal-panel :is(.form-row, .fr-order-modal-actions) > :is(.button, .fr-order-button, .fr-action-status) {
	flex: 1 1 0;
	min-width: 0;
}

.jquery-modal.blocker > .modal :is(.form-row, .fr-confirm-modal-actions) > br {
	display: none;
}

.jquery-modal.blocker > .modal .fr-action-status,
.fr-order-modal-panel .fr-action-status {
	justify-items: stretch;
}

/* A screen's one action, outside a row ("Next" under the new account's fields): the width too. */
.jquery-modal.blocker > .modal .fr-box-1 > .fr-action-status {
	display: grid;
	margin: var(--fr-space-6) 0 0;
}

.jquery-modal.blocker > .modal .fr-action-status > :is(.button, .fr-order-button),
.fr-order-modal-panel .fr-action-status > :is(.button, .fr-order-button) {
	width: 100%;
}

.jquery-modal.blocker > .modal .fr-action-status > :is(.spinner-loader, .fr-action-success),
.fr-order-modal-panel .fr-action-status > :is(.spinner-loader, .fr-action-success) {
	justify-self: center;
}

.jquery-modal.blocker > .modal .spinner-loader,
.fr-order-modal-panel .spinner-loader {
	border-top-color: var(--fr-color-ink);
}

/* A link with the buttons: on a line of its own under them, well clear of them. */
.jquery-modal.blocker > .modal .form-row > .text-link,
.fr-order-modal-panel :is(.form-row, .fr-order-modal-actions) > .text-link {
	flex-basis: 100%;
	align-self: flex-start;
	margin-top: var(--fr-space-2);
}

/* The way back from a step: the mini cart's arrow, on the heading's left and level with it, as "Kit
   list" is (round 4's "The way back in a modal", B). Placed from where it falls, at the start of the
   screen, so it needs no knowledge of the panel's padding: its tip on the text's left edge, 19px into
   its box, and the heading moved along past it. */
:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-modal-back {
	--fr-modal-back-line: 31.5px;
	position: absolute;
	z-index: 1;
	margin: calc((var(--fr-modal-back-line) - var(--fr-control-height)) / 2) 0 0 -19px;
}

:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-modal-back[hidden] {
	display: none;
}

:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-modal-back:not([hidden]) + .fr-box-1 > :is(h2, .fr-extension-outcome-title),
:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-modal-back:not([hidden]) + .fr-box-1 > .fr-payment-cards > h1,
:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-modal-back:not([hidden]) + h2 {
	padding-left: 33px;
}

@media (max-width: 639px) {
	:is(.jquery-modal.blocker > .modal, .fr-order-modal-panel) .fr-modal-back {
		--fr-modal-back-line: 25.2px;
	}
}

/* -------------------------------- On a phone: a sheet from the foot of the screen */

@media (max-width: 639px) {
	.jquery-modal.blocker:has(> .modal) {
		padding: 0;
	}

	.jquery-modal.blocker > .modal,
	.fr-order-modal-panel {
		--fr-modal-pad: var(--fr-layout-gutter-narrow);
		--fr-modal-pad-top: var(--fr-space-5);
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: calc(100dvh - var(--fr-space-6));
		padding-bottom: calc(var(--fr-modal-pad) + var(--fr-space-3) + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: none;
		border-radius: var(--fr-radius-sheet) var(--fr-radius-sheet) 0 0;
	}

	.jquery-modal.blocker > .modal > .x-close-btn,
	.fr-order-modal-panel > .x-close-btn,
	.jquery-modal.blocker > .modal:not(:has(> .x-close-btn)) > a.close-modal {
		top: var(--fr-space-3);
		right: var(--fr-space-2);
	}

	.jquery-modal.blocker > .modal .fr-box-2 {
		padding-bottom: 0;
		margin-bottom: 0;
	}

	.jquery-modal.blocker > .modal :is(.form-row, .fr-confirm-modal-actions):has(.button),
	.fr-order-modal-panel :is(.form-row, .fr-order-modal-actions):has(:is(.button, .fr-order-button)) {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.jquery-modal.blocker > .modal :is(.form-row, .fr-confirm-modal-actions) > :is(.button, .fr-action-status),
	.fr-order-modal-panel :is(.form-row, .fr-order-modal-actions) > :is(.button, .fr-order-button, .fr-action-status) {
		flex: none;
	}

	/* The primary, on top, a size larger. */
	.jquery-modal.blocker > .modal :is(.button, .fr-order-button):not(.secondary, .fr-button, .x-close-btn, .password-visibility-btn),
	.fr-order-modal-panel :is(.button, .fr-order-button):not(.secondary, .fr-button, .x-close-btn) {
		min-height: 52px;
		font-size: var(--fr-text-base);
	}
}

@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
	@keyframes fr-modal-in {
		from {
			transform: translateY(32px);
		}
	}

	.fr-order-modal:not([hidden]) .fr-order-modal-panel {
		animation-name: fr-modal-in;
	}
}

/* -------------------------------- Pages as modals, and the contact form
 *
 * How to rent and Contact us (Focus_Bookings_Contact), in a modal or, the form, on its own page,
 * where the modals' rules don't reach. From a tablet's width a little wider than a modal usually
 * is, for reading; on a phone the whole screen, as any modal with fields is.
 */

@media (min-width: 640px) {
	.fr-page-modal .fr-order-modal-panel {
		width: min(540px, calc(100vw - 2 * var(--fr-space-5)));
	}
}

.fr-page-modal-text :is(p, ol, ul):last-child {
	margin-bottom: 0;
}

.fr-page-modal-text li + li {
	margin-top: var(--fr-space-3);
}

.fr-page-modal-text:has(+ .fr-contact),
[data-contact-while="form"] {
	margin-bottom: var(--fr-space-5);
}

.fr-contact-field label {
	margin-bottom: 2px;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
}

/* Several lines: the hairline all round, doubled in use as a field's line is. */
.fr-contact-field textarea {
	display: block;
	min-height: 7em;
	padding: var(--fr-space-3);
	border: var(--fr-control-hairline) solid var(--fr-color-ink);
	border-radius: 0;
	background: transparent;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-base-narrow);
	line-height: var(--fr-leading-body);
}

.fr-contact-field textarea:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px var(--fr-color-ink);
}

.fr-contact-field :is(input, select, textarea).invalid-input,
.fr-contact-field :is(input, select, textarea).invalid-input:focus {
	border-color: var(--fr-color-error);
}

.fr-contact-field :is(input, select).invalid-input,
.fr-contact-field :is(input, select).invalid-input:focus {
	box-shadow: inset 0 -1px 0 var(--fr-color-error);
}

.fr-contact-field textarea.invalid-input,
.fr-contact-field textarea.invalid-input:focus {
	box-shadow: inset 0 0 0 1px var(--fr-color-error);
}

.fr-contact .fr-contact-count {
	margin: var(--fr-space-1) 0 0;
	color: var(--fr-color-text-muted);
	font-size: var(--fr-text-small);
}

.fr-contact .warning {
	margin: var(--fr-space-2) 0 0;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
}

.fr-contact-actions {
	margin-top: var(--fr-space-5);
}

.fr-contact-actions .fr-action-status {
	display: grid;
}

/* The form's one action, record red on the page as in a modal. */
.fr-contact-actions .button {
	width: 100%;
	min-height: var(--fr-control-height-wide);
	border-color: var(--fr-color-record);
	background: var(--fr-color-record);
	color: var(--fr-color-white);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-contact-actions .button:hover {
		border-color: var(--fr-color-ink);
		background: var(--fr-color-ink);
		color: var(--fr-color-white);
	}
}

.fr-contact .fr-checkout-success :is(h2, p) {
	padding-inline: 0;
	text-align: center;
}

.fr-contact .fr-checkout-success h2 {
	margin: 0 0 var(--fr-space-3);
	font-size: var(--fr-text-panel);
	line-height: 1.05;
}

.fr-contact .fr-checkout-success .fr-action-status {
	margin-bottom: var(--fr-space-4);
}

.fr-contact .fr-checkout-success-progress {
	background: var(--fr-color-rule-soft);
}

.fr-contact .fr-checkout-success-links .text-link {
	color: var(--fr-color-ink);
}

/* The form on its own page, under the page's text. */
.fr-prose .fr-contact {
	margin-top: var(--fr-space-6);
}

/* -------------------------------- With fields to type in: the whole screen on a phone
 *
 * The sheet leaves too little room over a phone's keyboard, so a modal with a field to type in
 * takes the whole screen, whichever of its screens is on show. Card fields are Mollie's iframes,
 * so the deposit card's form counts as one.
 */

@media (max-width: 639px) {
	.jquery-modal.blocker > .modal:has(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="file"], [readonly]), textarea, [data-deposit-card-form]),
	.fr-order-modal-panel:has(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="file"], [readonly]), textarea, [data-deposit-card-form]) {
		top: 0;
		bottom: 0;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}
}

/* -------------------------------- Sign in and new account: a size of its own
 *
 * The same size whichever screen is on show, so moving between them doesn't move the panel: the
 * tallest fits without scrolling. Each screen fills the panel, the way to another screen
 * (.fr-box-2) at its foot, on a phone too.
 */

#fr-sign-in-register-modal .fr-sign-in-register-modal-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

#fr-sign-in-register-modal .fr-box-1 {
	flex: 1 0 auto;
}

#fr-sign-in-register-modal .fr-box-2 {
	flex: none;
}

@media (min-width: 640px) {
	.jquery-modal.blocker > #fr-sign-in-register-modal {
		width: 400px;
		height: 560px;
		max-height: calc(100dvh - 2 * var(--fr-space-5));
		overflow-y: auto;
	}
}

/* Reset password and the warnings, in one place: one gives way to the other. */
.fr-sign-in-answer {
	display: grid;
	justify-items: start;
	margin-top: var(--fr-space-4);
}

.fr-sign-in-answer > * {
	grid-area: 1 / 1;
	margin: 0;
}

/* -------------------------------- Asking for longer: the new return (html-extension-modal.php)
 *
 * The extension modal's dates screen laid out as the dates modal's picker: its heading, the
 * calendar at the left from 720px wide, the current return and the new one at the right with
 * Next and Cancel at their foot; stacked narrower, and the whole screen on a phone. Its old
 * fixed sizes in focus-b-front.css are outranked here (body and the modal's id).
 */

#fr-extension-modal,
#fr-remove-items-modal {
	--fr-extension-off: var(--fr-color-text-off);
}

body #fr-extension-modal[data-active-screen="dates"] .fr-extension-modal-panel {
	display: block;
	width: min(860px, calc(100vw - 2 * var(--fr-space-5)));
	max-width: none;
	height: auto;
	max-height: calc(100vh - 2 * var(--fr-space-5));
	padding: var(--fr-space-6) var(--fr-space-6) 26px;
	border-radius: var(--fr-radius-modal);
}

body #fr-extension-modal[data-active-screen="dates"] .fr-extension-screen[data-screen="dates"] {
	display: block;
}

body #fr-extension-modal .fr-extension-dateboxes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fr-space-7);
	margin: 0;
}

body #fr-extension-modal .fr-extension-datebox {
	position: relative;
	flex: none;
	width: auto;
	min-width: 0;
	max-width: none;
}

body #fr-extension-modal #fr-extension-datebox-one {
	align-self: start;
}

body #fr-extension-modal #fr-extension-datebox-two {
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: var(--fr-space-7);
	min-height: 0;
}

#fr-extension-modal #fr-extension-datebox-one h2 {
	margin-bottom: var(--fr-space-5);
}

#fr-extension-modal .fr-extension-section-title {
	display: flex;
	margin: 0 0 var(--fr-space-2);
	color: var(--fr-color-text-muted);
	font-family: var(--fr-font-mark);
	font-size: var(--fr-text-mark-dates);
	font-stretch: var(--fr-mark-stretch);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-mark);
	line-height: 1.2;
	text-transform: uppercase;
}

#fr-extension-modal .fr-extension-new-section {
	margin: 0;
	padding: 0;
}

#fr-extension-modal .fr-ext-display-date {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

#fr-extension-modal .fr-extension-current-section :is(.fr-ext-display-date, .fr-extension-current-return-time) {
	color: var(--fr-color-text-soft);
}

#fr-extension-modal .fr-extension-current-return-time {
	display: block;
}

#fr-extension-modal .fr-ext-timebox-wrapper {
	top: 0;
	gap: var(--fr-space-3);
	height: auto;
	margin-top: var(--fr-space-2);
}

body #fr-extension-modal[data-active-screen="dates"] .fr-extension-dates-actions {
	position: static;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fr-space-3);
	align-self: end;
	margin: var(--fr-space-3) 0 0;
}

#fr-extension-modal .fr-extension-dates-actions .fr-action-status {
	display: grid;
}

#fr-extension-modal .fr-extension-dates-actions > .back-link {
	grid-column: 1 / -1;
}

@media (min-width: 720px), (min-width: 640px) and (orientation: landscape) {
	body #fr-extension-modal[data-active-screen="dates"] .fr-extension-modal-panel {
		width: min(780px, calc(100vw - 2 * var(--fr-space-5)));
	}

	body #fr-extension-modal .fr-extension-dateboxes {
		grid-template-columns: minmax(calc(7 * var(--fr-control-height)), calc(7 * var(--fr-dates-day-width))) minmax(200px, 1fr);
		column-gap: var(--fr-space-8);
	}
}

@media (max-width: 639px) {
	body #fr-extension-modal[data-active-screen="dates"] .fr-extension-modal-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		padding: calc(env(safe-area-inset-top) + var(--fr-space-4)) var(--fr-layout-gutter-narrow) calc(22px + env(safe-area-inset-bottom));
		border-radius: 0;
		transform: none;
	}

	body #fr-extension-modal[data-active-screen="dates"] .fr-extension-modal-panel > .x-close-btn {
		top: calc(env(safe-area-inset-top) + var(--fr-space-3));
	}
}

/* ---------------------------------------------------------------- Dates modal
 *
 * html-dateboxes-modal.php. The light panel, as every modal is (above): centred over the page on a
 * tablet and up, the whole screen on a phone. jquery-modal opens it in a blocker of its own and
 * gives it display inline-block; the blocker centres it.
 *
 * The picker screen: "Your dates" and the cross, under them "Select dates and time slots", the calendar
 * (easepick, styled from inside its shadow root by easepick-brand.css), collect and return with
 * their time slots, then "Clear dates" and "Done": the calendar above collect and return, or,
 * from 720px wide, beside them (landscape).
 * Collect and return are on show from the start, their time slots keeping their place, unseen,
 * until both days are picked, so the panel keeps its height. Until the dates are complete or cleared there is no way out but Clear dates.
 *
 * Moving an order (data-mode="change") the same screen asks for new dates, with Cancel and
 * Confirm; then come its quote and outcome screens, and after a pick that changed the kit list,
 * the kit list screen (data-active-screen). focus-b-front.css switches modes and screens.
 */

/* Until jquery-modal opens it. */
#fr-dateboxes-modal {
	display: none;
}

.jquery-modal.blocker:has(> #fr-dateboxes-modal) {
	background: var(--fr-color-scrim);
}

#fr-dateboxes-modal,
#fr-extension-modal {
	/* Not quite the days' height: they read as square with the gaps between the numbers. */
	--fr-dates-day-width: 48px;
}

#fr-dateboxes-modal.modal {
	width: min(620px, 100%);
	padding: 0;
	font-size: var(--fr-text-small);
}

/* The cross: on every screen but the picker while the dates are half chosen, and the clear
   confirmation, which has buttons of its own. */
/* Level with the heading. */
#fr-dateboxes-modal #fr-date-change-close-btn {
	top: var(--fr-space-5);
	right: var(--fr-space-5);
}

#fr-dateboxes-modal[data-mode="default"][data-active-screen="dates"][data-fr-done="0"] #fr-date-change-close-btn,
#fr-dateboxes-modal:has(> #fr-date-clear-confirm) #fr-date-change-close-btn {
	display: none;
}

/* -------------------------------- The picker screen */

#fr-dateboxes-wrapper {
	display: grid;
	justify-content: stretch;
	gap: var(--fr-space-5);
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: var(--fr-space-6) var(--fr-space-6) 26px;
}

#fr-dateboxes-modal .fr-extension-datebox {
	position: static;
	width: auto;
	min-width: 0;
	max-width: none;
	height: auto;
	padding: 0;
	float: none;
}

#fr-datebox-one {
	display: grid;
	gap: var(--fr-space-5);
}

#fr-datebox-one .easepick-wrapper {
	display: block;
}

/* Clear of the cross. */
.fr-dates-modal__head {
	display: grid;
	gap: var(--fr-space-1);
	padding-right: calc(var(--fr-control-height) + var(--fr-space-4));
}

#fr-dateboxes-modal h2 {
	margin: 0;
	padding: 0;
	font-size: var(--fr-text-panel);
	line-height: 1.05;
}

#fr-dateboxes-modal .fr-dates-modal__intro {
	margin: 0;
	color: var(--fr-color-text-soft);
}

/* Collect, return under it, then the buttons: return well clear of collect's time slots. */
#fr-datebox-two {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fr-space-7);
}

#fr-dateboxes-modal .collect-section,
#fr-dateboxes-modal .return-section {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-2);
	min-width: 0;
	margin: 0;
}

/* Collect and return on show from the start: "Not picked yet" until their day is, the time slots
   keeping their place, unseen and out of reach, until both are. */
#fr-dateboxes-modal:not([data-fr-dates="both"]) .timebox-wrapper {
	visibility: hidden;
}

#fr-dateboxes-modal .fr-dates-modal__no-date,
#fr-dateboxes-modal[data-fr-dates="none"] .collect-section .display-date,
#fr-dateboxes-modal:not([data-fr-dates="both"]) .return-section .display-date {
	display: none;
}

#fr-dateboxes-modal[data-fr-dates="none"] .collect-section .fr-dates-modal__no-date,
#fr-dateboxes-modal:not([data-fr-dates="both"]) .return-section .fr-dates-modal__no-date {
	display: block;
	color: var(--fr-color-text-soft);
}

#fr-dateboxes-modal .fr-extension-section-title {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--fr-color-text-muted);
	font-family: var(--fr-font-mark);
	font-size: var(--fr-text-mark-dates);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-mark);
	line-height: 1.2;
}

#fr-dateboxes-modal .display-date {
	display: block;
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

/* The time slots: ink outlines, the chosen one filled camera body. The script fades the pair in
   once both days are picked. */
#fr-dateboxes-modal .timebox-wrapper {
	display: flex;
	gap: var(--fr-space-3);
	position: static;
	width: auto;
	height: auto;
	margin: 0;
}

#fr-dateboxes-modal .timebox,
#fr-extension-modal .timebox {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	position: static;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: var(--fr-control-height);
	margin: 0;
	padding: var(--fr-space-1) var(--fr-space-2);
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: transparent;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), border-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	#fr-dateboxes-modal .timebox:hover,
	#fr-extension-modal .timebox:hover {
		border-color: var(--fr-color-ink);
		background: var(--fr-color-row-hover);
		color: var(--fr-color-ink);
	}
}

#fr-dateboxes-modal .timebox.timebox-selected,
#fr-dateboxes-modal .timebox.timebox-selected:hover,
#fr-extension-modal .timebox.timebox-selected,
#fr-extension-modal .timebox.timebox-selected:hover {
	border-color: var(--fr-color-body);
	background: var(--fr-color-body);
	color: var(--fr-color-white);
	font-weight: var(--fr-weight-semibold);
	cursor: default;
}

#fr-extension-modal .timebox.timebox-disabled,
#fr-extension-modal .timebox.timebox-disabled:hover,
#fr-dateboxes-modal .timebox.timebox-disabled,
#fr-dateboxes-modal .timebox.timebox-disabled:hover,
#fr-dateboxes-modal .timebox.timebox-disabled-fr-rule,
#fr-dateboxes-modal .timebox.timebox-disabled-fr-rule:hover {
	border-color: var(--fr-color-rule-soft);
	background: transparent;
	color: var(--fr-color-text-off);
	font-weight: var(--fr-weight-regular);
	cursor: default;
}

/* The buttons, at the right: Done, then Clear dates (or Cancel, then Confirm). Set further off the
   time slots than the sections are from each other, so they don't read as a third section. */
#fr-dateboxes-modal .datebox-buttons-wrapper {
	grid-column: 1 / -1;
	position: static;
	display: block;
	margin: var(--fr-space-3) 0 0;
	overflow: visible;
}

#fr-dateboxes-modal .datebox-modal-buttons-slider,
#fr-dateboxes-modal .datebox-change-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	position: static;
	width: auto;
}

#fr-dateboxes-modal .datebox-buttons-wrapper .fr-button {
	min-height: var(--fr-control-height-wide);
	margin: 0;
	padding-inline: var(--fr-space-5);
}

#fr-dateboxes-modal .spinner-loader {
	border-top-color: var(--fr-color-ink);
}

/* -------------------------------- Clearing the dates, when the kit list has items on it */

#fr-dateboxes-modal .fr-date-clear-confirm {
	padding: var(--fr-space-6) var(--fr-space-6) 26px;
}

#fr-dateboxes-modal .fr-date-clear-confirm h3 {
	margin: 0 0 var(--fr-space-2);
	padding: 0;
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
}

#fr-dateboxes-modal .fr-date-clear-confirm p {
	margin: 0;
}

#fr-dateboxes-modal .fr-date-clear-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: var(--fr-space-6);
}

#fr-dateboxes-modal .fr-date-clear-confirm-actions .fr-btn + .fr-btn {
	margin: 0;
}

/* The primary button first, as everywhere: Clear dates, then Go back. */
#fr-dateboxes-modal .fr-date-clear-confirm-clear {
	order: -1;
}

/* -------------------------------- Moving an order: the quote and the outcome; the kit list screen
 *
 * Their markup borrows the sign-in modal's boxes, which focus-b-front.css sizes for that modal:
 * here they are let go, and the panel grows to the text.
 */

#fr-date-change-quote,
#fr-date-change-outcome,
#fr-dateboxes-cart-changes {
	height: auto;
	padding: var(--fr-space-6) var(--fr-space-6) 26px;
}

#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper,
#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper .fr-box-1,
#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper .fr-box-1.full-height {
	position: static;
	width: auto;
	max-width: none;
	height: auto;
	padding: 0;
	overflow: visible;
}

#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper h2 {
	margin-bottom: var(--fr-space-5);
	padding-right: calc(var(--fr-control-height) + var(--fr-space-4));
}

#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper p {
	margin: 0 0 1em;
}

#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper .form-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fr-space-3) var(--fr-space-5);
	margin: var(--fr-space-6) 0 0;
}

#fr-dateboxes-modal .fr-sign-in-register-modal-wrapper .form-row .fr-button {
	min-height: var(--fr-control-height-wide);
	margin: 0;
	padding-inline: var(--fr-space-5);
}

#fr-dateboxes-modal .fr-cart-notice-item {
	padding: 10px 0;
	border-color: var(--fr-color-rule-soft);
}

#fr-dateboxes-modal .fr-cart-notice-item .fr-cart-notice-detail {
	color: var(--fr-color-text-soft);
	font-size: var(--fr-text-small);
}

/* -------------------------------- Where there is the width: side by side
 *
 * The picker screen in landscape, as the old design had it: the heading across the top, the
 * calendar at the left, collect and return at the right with the buttons at its foot, level with
 * the calendar's last row, sharing the column's width as the time slots above them do. The
 * heading and the calendar are placed in the wrapper's grid, their box giving way to them
 * (display: contents), so collect lines up with the top of the calendar. The calendar is held at a
 * width that keeps its days about square, the column for the time slots taking what's left. A phone
 * on its side gets this too; the modal goes portrait otherwise. The other screens and the clear
 * confirmation keep the narrower panel.
 */

@media (min-width: 720px), (min-width: 640px) and (orientation: landscape) {
	#fr-dateboxes-modal.modal[data-active-screen="dates"]:not(:has(> #fr-date-clear-confirm)) {
		width: min(780px, 100%);
	}

	#fr-dateboxes-wrapper {
		grid-template-columns: minmax(calc(7 * var(--fr-control-height)), calc(7 * var(--fr-dates-day-width))) minmax(200px, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: var(--fr-space-8);
	}

	#fr-datebox-one {
		display: contents;
	}

	#fr-dateboxes-modal .fr-dates-modal__head {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	#fr-datepicker-host,
	#fr-datebox-one .easepick-wrapper {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
	}

	#fr-datebox-two {
		grid-column: 2;
		grid-row: 2;
		grid-template-rows: auto auto 1fr;
	}

	#fr-dateboxes-modal .datebox-buttons-wrapper {
		align-self: end;
	}

	#fr-dateboxes-modal .datebox-modal-buttons-slider,
	#fr-dateboxes-modal .datebox-change-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--fr-space-3);
	}

	#fr-dateboxes-modal .datebox-change-actions .fr-action-status {
		display: grid;
	}

	#fr-dateboxes-modal .datebox-change-actions .fr-action-status > .fr-button {
		width: 100%;
	}

	/* Clear dates at the right, Done (disabled while the dates are half chosen) at the left. */
	#fr-dateboxes-modal .datebox-modal-clear {
		grid-column: 2;
		grid-row: 1;
	}
}

/* -------------------------------- On a phone: the whole screen
 *
 * Edge to edge, below any notch, rather than the other modals' sheet; it scrolls inside itself if
 * the screen is shorter. Done and Clear dates stacked, Done on top, and other pairs of buttons
 * share the width.
 */

@media (max-width: 639px) {
	.jquery-modal.blocker:has(> #fr-dateboxes-modal) {
		padding: 0;
	}

	#fr-dateboxes-modal.modal {
		position: fixed;
		inset: 0;
		width: 100%;
		max-height: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 0;
		padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
	}

	#fr-dateboxes-modal #fr-date-change-close-btn {
		top: calc(env(safe-area-inset-top) + var(--fr-space-3));
		right: var(--fr-space-2);
	}

	#fr-dateboxes-wrapper,
	#fr-dateboxes-modal .fr-date-clear-confirm,
	#fr-date-change-quote,
	#fr-date-change-outcome,
	#fr-dateboxes-cart-changes {
		padding: var(--fr-space-4) var(--fr-layout-gutter-narrow) 22px;
	}

	#fr-dateboxes-wrapper,
	#fr-datebox-one {
		gap: var(--fr-space-3);
	}

	/* Level with the cross. */
	.fr-dates-modal__head {
		min-height: var(--fr-control-height);
		align-content: center;
	}

	.fr-dates-modal__intro {
		font-size: 14px;
	}

	#fr-dateboxes-modal .datebox-change-actions,
	#fr-dateboxes-modal .fr-date-clear-confirm-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#fr-dateboxes-modal .datebox-change-actions .fr-action-status {
		display: grid;
	}

	#fr-dateboxes-modal .datebox-change-actions .fr-action-status > .fr-button {
		width: 100%;
	}

	/* Done and Clear dates each the whole width, Done on top. */
	#fr-dateboxes-modal .datebox-modal-buttons-slider {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

}

/* Portrait, phone included: collect well clear of the calendar above it, as return is of collect.
   After the phone's rules, whose gap this overrides. */
@media (max-width: 719px) {
	#fr-dateboxes-wrapper {
		row-gap: var(--fr-space-7);
	}
}

/* ---------------------------------------------------------------- The bin
 *
 * Taking something off the kit list, on the product's page and in the mini cart: the bin alone,
 * in ink, its box drawn only under the pointer. Its size is set where it sits.
 */

.fr-bin-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--fr-control-height);
	min-height: var(--fr-control-height);
	padding: 0;
	border: var(--fr-control-border) solid transparent;
	border-radius: var(--fr-radius-control);
	background: none;
	color: var(--fr-color-ink);
	cursor: pointer;
	transition: border-color var(--fr-motion-quick) var(--fr-motion-ease);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-bin-button:hover {
		border-color: var(--fr-color-ink);
	}
}

.fr-bin-button .fr-trash-icon {
	fill: currentColor;
}

/* ---------------------------------------------------------------- Mini cart
 *
 * html-mini-cart-brand.php and html-mini-cart-item.php. A drawer from the right, the whole screen
 * on a phone: the back arrow and "Kit list", the items, and at its foot the subtotal with the VAT
 * switch, then Checkout (record red) and Email quote. The plugin's script opens it
 * (.fr-mini-cart-open) with the scrim (#fr-mini-cart-overlay) behind.
 *
 * An item: its name, then one line of its picture, the quantity, "× £225", the kit's mark and the
 * bin, all centred on the same middle. The mark opens the product page's list of switches below; filled
 * camera body while it is open. The quantity picker is the product page's, smaller: one box,
 * opening across the line, the price, mark and bin giving way until it closes.
 */

.fr-mini-cart-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: var(--fr-color-scrim);
}

/* Under WordPress's toolbar when signed in, as the header is; on a narrow phone, where the toolbar
   scrolls with the page, the drawer covers the whole screen, toolbar too. */
.fr-mini-cart {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 460px;
	background: var(--fr-color-ground);
	color: var(--fr-color-ink);
	transform: translateX(100%);
	transition: transform var(--fr-motion-settle) var(--fr-motion-ease);
}

.fr-mini-cart.fr-mini-cart-open {
	transform: none;
}

.fr-mini-cart__head {
	display: flex;
	align-items: center;
	gap: var(--fr-space-2);
	padding: var(--fr-space-4) var(--fr-space-6) var(--fr-space-4) var(--fr-space-3);
	border-bottom: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-mini-cart__title {
	margin: 0;
	font-size: var(--fr-text-panel);
}

/* The way back: the arrow alone, no box. */
:is(.fr-mini-cart__back, .fr-modal-back) {
	flex: none;
	color: var(--fr-color-ink);
	transition: color var(--fr-motion-quick) var(--fr-motion-ease);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	:is(.fr-mini-cart__back, .fr-modal-back):hover {
		color: var(--fr-color-text-muted);
	}
}

:is(.fr-mini-cart__back, .fr-modal-back) .fr-back-arrow-icon {
	width: 26px;
	height: 26px;
	stroke-width: 1.8;
	stroke-linecap: butt;
	stroke-linejoin: miter;
}

.fr-mini-cart__items {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 var(--fr-space-6);
}

#fr-mini-cart-item-template {
	display: none;
}

.fr-mini-cart__empty {
	margin: var(--fr-space-6) 0 0;
	color: var(--fr-color-text-soft);
}

.fr-mini-cart__items:has(.fr-mini-cart-item:not(#fr-mini-cart-item-template)) .fr-mini-cart__empty {
	display: none;
}

/* ---------------------------------------- An item */

.fr-mini-cart-item {
	padding-block: var(--fr-space-5) var(--fr-space-3);
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
}

.fr-mini-cart-item__main {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: var(--fr-space-4);
	align-items: center;
	margin-top: var(--fr-space-2);
}

.fr-mini-cart-item__image img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.fr-mini-cart-item__body {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-2);
	min-width: 0;
}

.fr-mini-cart-item__name {
	margin: 0;
	font-size: var(--fr-text-item);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-heading);
	line-height: var(--fr-leading-snug);
}

.fr-mini-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.fr-mini-cart-item__name a:hover {
	text-decoration: underline;
}

/* Room at the left for the quantity's box, which opens across the price. */
.fr-mini-cart-item__row {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--fr-control-height);
	padding-left: calc(var(--fr-control-height) + var(--fr-space-3));
}

:is(.fr-mini-cart, .fr-review-items) .frqbs-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: var(--fr-control-height);
	min-width: 0;
	/* QtyPicker opens it to this, in pixels: five boxes, then it scrolls. */
	max-width: 260px;
	height: var(--fr-control-height);
	background: var(--fr-color-ground);
	transition: width var(--fr-motion-settle) var(--fr-motion-ease);
}

:is(.fr-mini-cart, .fr-review-items) .frqb-slider {
	transition: transform var(--fr-motion-settle) var(--fr-motion-ease);
}

:is(.fr-mini-cart, .fr-review-items) .fr-qty-box {
	width: var(--fr-control-height);
	min-width: 0;
	max-width: none;
	height: var(--fr-control-height);
	margin-right: var(--fr-space-2);
	padding: 0;
	/* A hairline: lighter than the product page's, in the narrower drawer. */
	border: var(--fr-control-hairline) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: var(--fr-color-ground);
	color: var(--fr-color-ink);
	font-size: var(--fr-text-base);
	font-weight: var(--fr-weight-semibold);
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

:is(.fr-mini-cart, .fr-review-items) .fr-qty-box span,
:is(.fr-mini-cart, .fr-review-items) .fr-qty-box:hover span,
:is(.fr-mini-cart, .fr-review-items) .fr-qty-box.selected span {
	color: inherit;
}

:is(.fr-mini-cart, .fr-review-items) .frqbs-wrapper .fr-qty-box:hover,
:is(.fr-mini-cart, .fr-review-items) .frqbs-wrapper .fr-qty-box.selected,
:is(.fr-mini-cart, .fr-review-items) .frqbs-wrapper .fr-qty-box.selected:hover {
	border-color: var(--fr-color-ink);
	background: var(--fr-color-ground);
	color: var(--fr-color-ink);
}

/* Only where there is a pointer to hover: on a touch screen a tap would leave it inked. */
@media (hover: hover) {
	:is(.fr-mini-cart, .fr-review-items) .frqbs-wrapper.is-open .fr-qty-box:hover {
		background: var(--fr-color-ink);
		color: var(--fr-color-ground);
	}
}

:is(.fr-mini-cart, .fr-review-items) .frqbs-wrapper.is-open .fr-qty-box.selected {
	border-color: var(--fr-color-body);
	background: var(--fr-color-body);
	color: var(--fr-color-white);
}

:is(.fr-mini-cart, .fr-review-items) .fr-qty-box-template {
	display: none;
}

/* "× £225": the price for the dates only, in ink, as large as the line allows. */
.fr-mini-cart-item__price {
	display: flex;
	align-items: center;
	gap: var(--fr-space-2);
	min-width: 0;
	font-size: var(--fr-text-item);
}

:is(.fr-mini-cart, .fr-review-items) .fr-multiply-x,
:is(.fr-mini-cart, .fr-review-items) .fr-mini-cart-item-price-box {
	position: static;
	float: none;
	margin: 0;
	color: var(--fr-color-ink);
}

:is(.fr-mini-cart, .fr-review-items) .fr-mini-cart-item-price-box .live-price-wrapper {
	display: inline;
	opacity: 1;
}

:is(.fr-mini-cart, .fr-review-items) .fr-mini-cart-item-price-box .live-price-text {
	font-weight: var(--fr-weight-semibold);
}

:is(.fr-mini-cart, .fr-review-items) .fr-mini-cart-item-price-box .per-price-text,
:is(.fr-mini-cart, .fr-review-items) .fr-mini-cart-item-price-box br {
	display: none;
}

/* The kit's mark and the bin, at the end of the line. */
.fr-mini-cart-item__tools {
	display: flex;
	align-items: center;
	gap: var(--fr-space-1);
	margin-left: auto;
}

.fr-mini-cart-item__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--fr-control-height);
	height: var(--fr-control-height);
	padding: 0;
	border: var(--fr-control-border) solid transparent;
	border-radius: var(--fr-radius-control);
	background: none;
	color: var(--fr-color-ink);
	cursor: pointer;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), border-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

/* In ink always; under the pointer its box is drawn, as the bin's is. */
/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-mini-cart-item__toggle:hover {
		border-color: var(--fr-color-ink);
	}
}

.fr-mini-cart-item__toggle[aria-expanded="true"] {
	border-color: var(--fr-color-body);
	background: var(--fr-color-body);
	color: var(--fr-color-white);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-mini-cart-item__toggle[aria-expanded="true"]:hover {
		border-color: var(--fr-color-ink);
	}
}

.fr-mini-cart-item__toggle[hidden] {
	display: none;
}

.fr-kit-icon {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.fr-kit-icon__switch {
	stroke-width: 1.1;
}

.fr-kit-icon__knob {
	fill: currentColor;
	stroke: none;
}

/* Their boxes, drawn under the pointer, a hairline as the quantity's is. */
:is(.fr-mini-cart, .fr-review-items) .fr-mini-cart-item__toggle,
:is(.fr-mini-cart, .fr-review-items) .fr-bin-button {
	border-width: var(--fr-control-hairline);
}

.fr-mini-cart-item__remove .fr-trash-icon {
	width: 30px;
	height: 30px;
}

/* What is in the kit, opening below the item: its height eased from nothing to its own. */
.fr-mini-cart-item__kit {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--fr-motion-settle) var(--fr-motion-ease);
}

.fr-mini-cart-item.options-open .fr-mini-cart-item__kit {
	grid-template-rows: 1fr;
}

.fr-mini-cart-item__kit-inner {
	min-height: 0;
	overflow: hidden;
}

.fr-mini-cart-item__kit .fr-kit__list-wrapper {
	margin-top: var(--fr-space-3);
}

/* Smaller rows in the mini cart and in an order's line. */
:is(.fr-mini-cart-item__kit, .fr-order-included-drawer) .fr-kit__list {
	font-size: var(--fr-text-small);
}

:is(.fr-mini-cart-item__kit, .fr-order-included-drawer) .fr-kit__row {
	min-height: var(--fr-control-height);
	padding-block: 0;
}

:is(.fr-mini-cart-item__kit, .fr-order-included-drawer) .fr-kit__always {
	font-size: var(--fr-text-mark);
}

/* ---------------------------------------- The foot */

.fr-mini-cart__foot {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-4);
	padding: var(--fr-space-4) var(--fr-space-6) var(--fr-space-6);
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-mini-cart__subtotal-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fr-space-2) var(--fr-space-4);
}

.fr-mini-cart__subtotal {
	display: flex;
	align-items: baseline;
	gap: var(--fr-space-2);
	margin: 0;
}

.fr-mini-cart__subtotal-amount {
	font-family: var(--fr-font-heading);
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-heading);
}

.fr-mini-cart__subtotal .spinner-loader {
	width: 18px;
	height: 18px;
	border-top-width: 2px;
	border-right-width: 2px;
}

/* Checkout first, Email quote (or Exit) under it. */
.fr-mini-cart__actions {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-2);
}

.fr-mini-cart-checkout-link {
	order: -1;
	min-height: var(--fr-control-height-large);
	font-size: var(--fr-text-base);
}

.fr-mini-cart-quote-status {
	display: grid;
	justify-items: stretch;
}

.fr-mini-cart-quote-status > .spinner-loader,
.fr-mini-cart-quote-status > .fr-action-success {
	justify-self: center;
}

@media (max-width: 600px) {
	.fr-mini-cart {
		top: 0;
		z-index: 100000;
	}
}

/* On a phone the whole screen, and Checkout and Email quote side by side, Checkout first. */
@media (max-width: 639px) {
	.fr-mini-cart {
		max-width: none;
	}

	.fr-mini-cart__head,
	.fr-mini-cart__foot {
		padding-inline: var(--fr-layout-gutter-narrow);
	}

	.fr-mini-cart__items {
		padding-inline: var(--fr-layout-gutter-narrow);
	}

	.fr-mini-cart-item__main {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: var(--fr-space-3);
	}

	.fr-mini-cart-item__image img {
		width: 60px;
		height: 60px;
	}

	.fr-mini-cart__actions {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}

	.fr-mini-cart-checkout-link {
		min-height: var(--fr-control-height-wide);
	}
}

/* ---------------------------------------------------------------- Cart: review your order
 *
 * templates/cart/cart.php, which the theme's page.php draws without a title of its own. "Review
 * your order", then on a computer three columns: the dates (html-cart-dates-brand.php), the kit
 * list, and what is to be paid and held with Pay (record red) and Email quote. Narrower, the
 * dates go across the top, the kit list and the totals side by side under them while there is
 * the width; on a phone it is one column, Pay and Email quote side by side at the foot.
 *
 * The kit list's items are the mini cart's own (html-mini-cart-item.php), moved here by
 * checkout.js with their kit lists open; the mini cart's rules above cover them here too
 * (.fr-review-items), with a larger picture. The header has no dates button and no Kit on
 * this page.
 *
 * The totals have no box: while they are beside the kit list a line runs down their left, only
 * as tall as they are; under it, an ink rule across their top, as the mini cart's foot has.
 */

/* The drawer the items came from, now empty. */
.fr-mini-cart.fr-mini-cart-review-source {
	display: none;
}

.fr-order-screen-heading {
	display: grid;
	gap: var(--fr-space-2);
	margin-bottom: var(--fr-space-7);
}

.fr-order-screen-heading h1 {
	margin: 0;
	font-size: var(--fr-text-title);
}

.fr-order-screen-heading p {
	margin: 0;
	color: var(--fr-color-text-soft);
	font-size: var(--fr-text-lead);
}

.fr-review-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"dates"
		"items"
		"summary";
	gap: var(--fr-space-7);
	align-items: start;
}

/* A line between the dates and the kit list, as between the kit list and the totals. */
.fr-review-dates {
	grid-area: dates;
	min-width: 0;
	padding-bottom: var(--fr-space-7);
	border-bottom: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-review-items {
	grid-area: items;
	min-width: 0;
}

.fr-review-summary {
	grid-area: summary;
	min-width: 0;
	padding-top: var(--fr-space-5);
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

/* -------------------------------- The dates: collect and return, their days and time slots */

.fr-cart-dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fr-space-5) var(--fr-space-4);
}

.fr-cart-dates__slot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

/* A size up from the other markings: collect and return head what is under them. */
.fr-cart-dates__mark {
	margin-bottom: 2px;
	color: var(--fr-color-text-muted);
	font-size: var(--fr-text-mark-dates);
}

.fr-cart-dates__day {
	font-size: var(--fr-text-base-narrow);
	font-weight: var(--fr-weight-semibold);
}

.fr-cart-dates__time {
	color: var(--fr-color-text-soft);
	font-size: var(--fr-text-small);
}

.fr-cart-dates__change {
	grid-column: 1 / -1;
	min-height: var(--fr-control-height-wide);
}

.fr-cart-dates__change .fr-calendar-icon {
	width: 20px;
	height: 20px;
}

/* -------------------------------- The kit list */

.fr-review-items__title,
.fr-review-summary h2 {
	margin: 0;
	font-size: var(--fr-text-panel);
}

.fr-review-items__title {
	padding-bottom: var(--fr-space-3);
	border-bottom: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-review-items .fr-mini-cart__items {
	overflow: visible;
	padding: 0;
}

/* -------------------------------- To be paid, to be held */

.fr-review-summary h2 + .fr-review-totals {
	margin-top: var(--fr-space-3);
}

.fr-review-totals + h2 {
	margin-top: var(--fr-space-7);
}

.fr-review-totals {
	margin: 0;
}

.fr-review-totals > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--fr-space-4);
	padding-block: var(--fr-space-1);
}

.fr-review-totals dt {
	color: var(--fr-color-text-soft);
}

.fr-review-totals dd {
	display: flex;
	align-items: center;
	margin: 0;
	font-weight: var(--fr-weight-semibold);
}

.fr-review-totals .spinner-loader {
	width: 16px;
	height: 16px;
	border-top-width: 2px;
	border-right-width: 2px;
}

/* The total under a hairline, its figure the largest; in "To be held", alone under its heading. */
.fr-review-totals > .fr-review-total {
	margin-top: var(--fr-space-2);
	padding-top: var(--fr-space-3);
	border-top: var(--fr-control-hairline) solid var(--fr-color-ink);
}

.fr-review-totals > .fr-review-total:only-child {
	margin-top: 0;
	border-top: 0;
}

.fr-review-total dt {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

.fr-review-total-value {
	font-family: var(--fr-font-heading);
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-heading);
}

/* Pay first, Email quote (or Exit) under it. */
.fr-review-actions {
	display: grid;
	gap: var(--fr-space-2);
	margin-top: var(--fr-space-7);
}

.fr-review-actions .fr-button {
	width: 100%;
	min-height: var(--fr-control-height-wide);
}

.fr-review-actions .fr-review-continue {
	min-height: var(--fr-control-height-large);
	font-size: var(--fr-text-base);
}

.fr-review-actions > .fr-action-status {
	display: grid;
	justify-items: stretch;
}

.fr-review-actions > .fr-action-status > .spinner-loader,
.fr-review-actions > .fr-action-status > .fr-action-success {
	justify-self: center;
}

/* On a phone, Pay and Email quote side by side, Pay first. */
@media (max-width: 639px) {
	.fr-review-actions {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}

	.fr-review-actions .fr-review-continue {
		min-height: var(--fr-control-height-wide);
	}
}

/* -------------------------------- Wider */

@media (min-width: 640px) {
	.fr-review-items .fr-mini-cart-item__main {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: var(--fr-space-5);
	}

	.fr-review-items .fr-mini-cart-item__image img {
		width: 96px;
		height: 96px;
	}

	/* The dates across the top: collect, return, then Change dates. */
	.fr-cart-dates {
		grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
		align-items: center;
	}

	.fr-cart-dates__day {
		font-size: var(--fr-text-base);
	}

	.fr-cart-dates__change {
		grid-column: auto;
		padding-inline: var(--fr-space-5);
	}
}

/* The totals beside the kit list, the line down their left. */
@media (min-width: 860px) {
	.fr-review-grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-areas:
			"dates dates"
			"items summary";
		column-gap: var(--fr-space-7);
	}

	.fr-review-dates {
		border-bottom-width: var(--fr-control-hairline);
	}

	.fr-review-summary {
		padding-top: 0;
		padding-left: var(--fr-space-7);
		border-top: 0;
		border-left: var(--fr-control-hairline) solid var(--fr-color-ink);
	}
}

/* A computer: the dates a column of their own at the left, collect above return. */
@media (min-width: 1024px) {
	.fr-review-grid {
		grid-template-columns: 260px minmax(0, 1fr) 320px;
		grid-template-areas: "dates items summary";
	}

	/* The line down their right, as the totals' is down their left. */
	.fr-review-dates {
		padding-right: var(--fr-space-7);
		padding-bottom: 0;
		border-right: var(--fr-control-hairline) solid var(--fr-color-ink);
		border-bottom: 0;
	}

	.fr-cart-dates {
		grid-template-columns: minmax(0, 1fr);
	}

	.fr-cart-dates__change {
		margin-top: var(--fr-space-1);
	}
}

/* ---------------------------------------------------------------- Product page: booking
 *
 * html-product-booking.php, in the product page's right-hand column (the theme's
 * woocommerce/content-single-product.php). The controls' data-fr-state says which parts show,
 * beside the VAT switch and under it:
 *
 *   dates   the price per day and week, and "Choose dates" (record red: the one thing to do next)
 *   add     the price for the dates in their place, the quantity and "Add to kit list"
 *   added   the same, with "On your kit list" (camera body, record light) and a bin
 *   none    the price for the dates and the line saying none are free
 *
 * The quantity picker is the plugin's QtyPicker: one box showing the quantity, which opens into a
 * row of them over the buttons (data-fr-picking while it is open) and closes on a choice. It
 * measures a box's width with its margin and slides by that, so the boxes keep a fixed size. As
 * it opens the button goes at once; once it has closed, or when the button becomes another, it is
 * drawn again from left to right (ProductPageButtons.revealActions()).
 */

.fr-product-booking {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-7);
}

.fr-product-booking p {
	margin: 0;
}

.fr-product-booking__controls {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-4);
}

/* The rates, or the price for the dates in their place, with the VAT switch at the right. */
.fr-product-booking__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fr-space-2) var(--fr-space-5);
	min-height: var(--fr-control-height);
}

.fr-product-booking__rates {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fr-space-1) var(--fr-space-6);
}

.fr-product-booking__rates,
.fr-product-booking__total {
	font-size: var(--fr-text-base);
}

.fr-product-booking__prices .fr-price__amount {
	font-family: var(--fr-font-heading);
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-heading);
}

.fr-product-booking__prices .fr-price__label {
	display: none;
	color: var(--fr-color-text-muted);
	font-size: var(--fr-text-small);
	line-height: 1.2;
}

/* On a phone what a price is for goes over it, not after it, leaving the VAT switch room beside. */
@media (max-width: 639px) {
	.fr-product-booking__prices .fr-price {
		display: inline-flex;
		flex-direction: column;
		gap: 2px;
	}

	.fr-product-booking__prices .fr-price__label {
		display: block;
	}

	.fr-product-booking__prices .fr-price__unit {
		display: none;
	}
}

/* Room at the left for the quantity's box, which sits over it and opens across the buttons. */
.fr-product-booking__row {
	position: relative;
	padding-left: calc(var(--fr-control-height-large) + var(--fr-space-2));
}

.fr-product-booking .frqbs-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: var(--fr-control-height-large);
	/* QtyPicker opens it to this, in pixels: five boxes, then it scrolls. */
	max-width: 320px;
	height: var(--fr-control-height-large);
	background: var(--fr-color-ground);
	transition: width var(--fr-motion-settle) var(--fr-motion-ease);
}

.fr-product-booking .frqb-slider {
	transition: transform var(--fr-motion-settle) var(--fr-motion-ease);
}

.fr-product-booking .fr-qty-box {
	width: var(--fr-control-height-large);
	min-width: 0;
	max-width: none;
	height: var(--fr-control-height-large);
	margin-right: var(--fr-space-2);
	padding: 0;
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: var(--fr-color-ground);
	color: var(--fr-color-ink);
	font-size: var(--fr-text-lead);
	font-weight: var(--fr-weight-semibold);
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

.fr-product-booking .fr-qty-box span,
.fr-product-booking .fr-qty-box:hover span,
.fr-product-booking .fr-qty-box.selected span {
	color: inherit;
}

.fr-product-booking .frqbs-wrapper .fr-qty-box:hover,
.fr-product-booking .frqbs-wrapper .fr-qty-box.selected,
.fr-product-booking .frqbs-wrapper .fr-qty-box.selected:hover {
	border-color: var(--fr-color-ink);
	background: var(--fr-color-ground);
	color: var(--fr-color-ink);
}

/* Open, the boxes are choices: the chosen one filled, the one under the pointer inked (only
   where there is a pointer to hover: on a touch screen a tap would leave it inked). */
@media (hover: hover) {
	.fr-product-booking .frqbs-wrapper.is-open .fr-qty-box:hover {
		background: var(--fr-color-ink);
		color: var(--fr-color-ground);
	}
}

.fr-product-booking .frqbs-wrapper.is-open .fr-qty-box.selected {
	border-color: var(--fr-color-body);
	background: var(--fr-color-body);
	color: var(--fr-color-white);
}

.fr-product-booking .fr-qty-box-template {
	display: none;
}

.fr-product-booking__actions {
	clip-path: inset(0);
	transition: clip-path var(--fr-motion-settle) var(--fr-motion-ease);
}

/* Gone at once while the picker is open. */
.fr-product-booking__controls[data-fr-picking] .fr-product-booking__actions {
	clip-path: inset(0 0 0 100%);
	transition: none;
	pointer-events: none;
}

.fr-product-booking__actions.is-revealing {
	animation: fr-reveal-from-left calc(var(--fr-motion-settle) * 1.5) var(--fr-motion-ease) both;
}

@keyframes fr-reveal-from-left {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0);
	}
}

.fr-product-booking__actions > .fr-button,
.fr-product-booking__added .fr-product-booking__on-list {
	width: 100%;
}

.fr-product-booking__dates .fr-calendar-icon {
	width: 22px;
	height: 22px;
}

.fr-product-booking__added {
	display: flex;
	gap: var(--fr-space-2);
}

.fr-product-booking__on-list {
	flex: 1;
	gap: var(--fr-space-3);
}

.fr-product-booking__remove {
	flex: none;
	width: var(--fr-control-height-large);
	height: var(--fr-control-height-large);
}

.fr-product-booking__remove .fr-trash-icon {
	width: 36px;
	height: 36px;
}

.fr-product-booking .fr-live-availability-text {
	color: var(--fr-color-text-soft);
	font-size: var(--fr-text-small);
}

.fr-product-booking .fr-live-availability-text:empty {
	display: none;
}

.fr-product-booking .fr-qty-available-emph {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

/*
 * Which parts each state shows. The quantity picker is hidden without leaving the layout, never
 * with display: none: QtyPicker measures its boxes, and jQuery leaves an animation that runs on a
 * hidden element hidden for good.
 */
.fr-product-booking__controls:not([data-fr-state="dates"]) .fr-product-booking__rates,
.fr-product-booking__controls:not([data-fr-state="dates"]) .fr-product-booking__dates,
.fr-product-booking__controls:not([data-fr-state="add"]) .fr-product-booking__add,
.fr-product-booking__controls:not([data-fr-state="added"]) .fr-product-booking__added,
.fr-product-booking__controls[data-fr-state="dates"] .fr-product-booking__total,
.fr-product-booking__controls[data-fr-state="dates"] .fr-live-availability-text {
	display: none;
}

.fr-product-booking__controls[data-fr-state="dates"] .frqbs-wrapper {
	visibility: hidden;
}

.fr-product-booking__controls[data-fr-state="none"] .fr-product-booking__row {
	position: absolute;
	visibility: hidden;
}

.fr-product-booking__controls[data-fr-state="dates"] .fr-product-booking__row {
	padding-left: 0;
}

/* ---------------------------------------------------------------- In the kit
 *
 * html-product-kit-list.php, on the product's page (html-product-kit.php), in the mini cart under
 * its item's kit mark and on an order's line: "Included", then "Left out" while anything is, each
 * a heading over one row per part, the optional ones a label holding the name and a slide switch,
 * out or in (its track light while out, base.css), what is left out muted. A part switched folds
 * away and opens in the other list, and "Left out" opens and folds away whole round the first and
 * last part to go there (ProductItemsList.moveBetweenLists()); hidden while empty, it leaves no
 * gap. While a choice is being saved a spinner turns beside its switch
 * (ProductItemsList.showSpinners()).
 */

.fr-kit {
	padding-top: var(--fr-space-5);
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

/* "Included" and "Left out": small headings in the mini cart and an order's line, and on the
   product's page the section's own, as "In the kit" was. */
.fr-kit__group {
	margin: 0 0 var(--fr-space-2);
	color: var(--fr-color-ink);
	font-family: var(--fr-font-heading);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-heading);
}

.fr-kit .fr-kit__group {
	margin-bottom: var(--fr-space-3);
	font-size: var(--fr-text-panel);
}

.fr-kit__left-out {
	margin-top: var(--fr-space-4);
}

.fr-kit .fr-kit__left-out {
	margin-top: var(--fr-space-6);
}

.fr-kit__left-out[hidden] {
	display: none;
}

.fr-kit__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fr-kit__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fr-space-4);
	min-height: 52px;
	padding-block: var(--fr-space-1);
	border-top: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
}

.fr-kit__label {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: var(--fr-space-4);
	min-height: var(--fr-control-height);
	font-size: inherit;
	font-weight: var(--fr-weight-regular);
	cursor: pointer;
}

.fr-kit__name {
	font-size: inherit;
	font-weight: var(--fr-weight-regular);
	line-height: var(--fr-leading-snug);
	transition: color var(--fr-motion-quick) var(--fr-motion-ease);
}

.fr-kit__row:has(.fr-item-checkbox:not(:checked)) .fr-kit__name,
.fr-kit__left-out .fr-kit__name {
	color: var(--fr-color-text-muted);
}

.fr-kit__always {
	flex: none;
	color: var(--fr-color-text-muted);
	font-size: var(--fr-text-small);
}

.fr-kit__control {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
}

.fr-kit__list-wrapper .spinner-loader {
	display: block;
	position: absolute;
	top: 50%;
	right: calc(100% + var(--fr-space-2));
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border-top-width: 2px;
	border-right-width: 2px;
	visibility: hidden;
}

/* ---------------------------------------------------------------- The quantity box
 *
 * On the product page and in the mini cart alike. Closed, with more than one free, the box answers
 * the pointer as the boxes do once open, inked, since pressing it opens them; only where there is
 * a pointer to hover, so a tap on a touch screen leaves nothing inked behind. With only one free
 * there is nothing to choose: the box is greyed and the pointer stays an arrow, and pressing it
 * does nothing (QtyPicker leaves it closed). A press never shows the old design's red.
 */

:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper .fr-qty-box:active {
	border-color: var(--fr-color-ink);
	background: var(--fr-color-ink);
	color: var(--fr-color-ground);
}

@media (hover: hover) {
	:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper:not(.is-open):has(.fr-qty-box ~ .fr-qty-box) .fr-qty-box.selected:hover {
		background: var(--fr-color-ink);
		color: var(--fr-color-ground);
	}
}

:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper:not(:has(.fr-qty-box ~ .fr-qty-box)) .fr-qty-box,
:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper:not(:has(.fr-qty-box ~ .fr-qty-box)) .fr-qty-box:hover,
:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper:not(:has(.fr-qty-box ~ .fr-qty-box)) .fr-qty-box:active,
:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper:not(:has(.fr-qty-box ~ .fr-qty-box)) .fr-qty-box.selected,
:is(.fr-product-booking, .fr-mini-cart, .fr-review-items) .frqbs-wrapper:not(:has(.fr-qty-box ~ .fr-qty-box)) .fr-qty-box.selected:hover {
	border-color: var(--fr-color-text-muted);
	background: var(--fr-color-ground);
	color: var(--fr-color-text-muted);
	cursor: default;
	-webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------------- My account
 *
 * After round 4. The theme draws the frame (woocommerce/myaccount/, account.css): the account's
 * navigation at the left on a computer, the page beside it. The pages are the plugin's views:
 * Account home, Profile, Payment cards, Orders, Settings. Each starts with its title, then
 * sections, each under an ink rule with its heading, never boxed. What wants the customer's
 * attention (a payment due, an invitation, a warning) is a camera-body panel with the record light.
 *
 * Their buttons are outlines; the one action a page or panel exists for is record red. The old
 * rules for all of this in focus-b-front.css are class-level, so these follow and outrank them.
 */

/* -------------------------------- The navigation (html-account-nav.php) */

.fr-account-nav {
	flex-direction: column;
	gap: var(--fr-space-1);
	font-size: var(--fr-text-base-narrow);
}

.fr-account-nav__who {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 10px;
	align-items: center;
	margin-bottom: var(--fr-space-2);
	padding-bottom: var(--fr-space-4);
	border-bottom: var(--fr-control-border) solid var(--fr-color-ink);
	line-height: 1.3;
}

.fr-account-nav__who .fr-account-icon {
	grid-row: span 2;
	width: 32px;
	height: 32px;
}

.fr-account-nav__name {
	font-weight: var(--fr-weight-semibold);
}

.fr-account-nav__email {
	overflow: hidden;
	color: var(--fr-color-text-muted);
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fr-account-nav__items {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fr-account-nav__link {
	display: flex;
	align-items: center;
	min-height: var(--fr-control-height-wide);
	padding: 0 14px;
	border-radius: var(--fr-radius-control);
	color: var(--fr-color-ink);
	text-decoration: none;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease);
}

.fr-account-nav__link:hover {
	background: var(--fr-color-row-hover);
	color: var(--fr-color-ink);
}

.fr-account-nav__link[aria-current="page"],
.fr-account-nav__link[aria-current="page"]:hover {
	background: var(--fr-color-body);
	color: var(--fr-color-white);
	font-weight: var(--fr-weight-semibold);
}

.fr-account-nav__sign-out {
	margin-top: var(--fr-space-2);
	border-top: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	border-radius: 0;
}

/* -------------------------------- Shared by the pages */

.fr-page--account .woocommerce-MyAccount-content {
	font-size: var(--fr-text-base-narrow);
}

.fr-page--account .woocommerce-MyAccount-content h1 {
	margin: 0 0 var(--fr-space-7);
	font-size: clamp(40px, 4vw, 56px);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
	line-height: 1;
	text-wrap: balance;
}

.fr-page--account .woocommerce-MyAccount-content :is(h2, h3, h4) {
	font-family: var(--fr-font-heading);
	letter-spacing: var(--fr-tracking-heading);
	text-wrap: balance;
}

.fr-page--account .woocommerce-MyAccount-content p {
	color: var(--fr-color-text-soft);
}

/* Buttons: outlines, as the brand's are; the primary ones are named below. Not in the order
   pages' modals, which have their own (above). */
.fr-page--account .woocommerce-MyAccount-content :is(.button, .fr-order-button, .fr-account-card-body a > button):not(.password-visibility-btn, .fr-order-modal *) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fr-space-2);
	width: auto;
	min-width: 0;
	height: auto;
	min-height: var(--fr-control-height);
	margin: 0;
	padding: 0 18px;
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: transparent;
	box-shadow: none;
	color: var(--fr-color-ink);
	font-family: var(--fr-font-body);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), border-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

.fr-page--account .woocommerce-MyAccount-content :is(.button, .fr-order-button) :is(span, div) {
	color: inherit;
}

/* The one action a page or panel exists for. */
.fr-page--account .woocommerce-MyAccount-content :is(
	#fr-verify-step-link,
	.fr-account-card-body a > button,
	.fr-account-card-locked .button,
	.fr-account-invitation-card .fr-account-card-body > .button,
	.fr-account-invitation-actions .button[data-invitation-action="accept"],
	.fr-account-warning-actions .fr-account-warning-dismiss,
	.fr-order-action-pay,
	.fr-order-action-approve,
	.fr-payment-card-form-actions .button[type="submit"],
	.fr-account-empty .button,
	.fr-orders-empty .button,
	#fr-progress-continue-btn
) {
	border-color: var(--fr-color-record);
	background: var(--fr-color-record);
	color: var(--fr-color-white);
}

@media (hover: hover) {
	.fr-page--account .woocommerce-MyAccount-content :is(.button, .fr-order-button, .fr-account-card-body a > button):not(.password-visibility-btn, .fr-order-modal *, :disabled):hover {
		border-color: var(--fr-color-ink);
		background: var(--fr-color-ink);
		color: var(--fr-color-white);
	}
}

.fr-page--account .woocommerce-MyAccount-content :is(.button, .fr-order-button):disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fr-page--account .woocommerce-MyAccount-content .spinner-loader {
	border-top-color: var(--fr-color-ink);
}

/* A warning or a status that went wrong: in ink, as in the modals. */
.fr-page--account .woocommerce-MyAccount-content :is(p, span).warning,
.fr-account-warning-status,
.fr-account-invitation-status,
.fr-payment-status,
.fr-pref-status {
	position: relative;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
}

/* Nothing yet (no orders, no cards until the profile is done): a section like the others. */
.fr-orders-empty,
.fr-account-empty {
	padding: var(--fr-space-5) 0 0;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
	text-align: left;
}

.fr-orders-empty h2,
.fr-account-empty h2 {
	margin: 0 0 var(--fr-space-2);
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
}

.fr-orders-empty p,
.fr-account-empty p {
	margin: 0 0 var(--fr-space-5);
	color: var(--fr-color-text-soft);
}

/* -------------------------------- Account home (html-my-account-home.php)
 *
 * Two columns of sections, each under an ink rule: its heading, a line, then its link or button.
 * The old cards' icons go, except a spinner while identity is being checked. A card wanting
 * attention takes the width, in camera body, the record light by its heading.
 */

.fr-account-home {
	max-width: none;
}

.fr-account-home-intro {
	margin: calc(-1 * var(--fr-space-5)) 0 var(--fr-space-7);
	color: var(--fr-color-text-soft);
	font-family: var(--fr-font-body);
	font-size: var(--fr-text-lead);
	font-weight: var(--fr-weight-regular);
	letter-spacing: 0;
}

.fr-account-home .fr-account-grid {
	margin-top: 0;
}

.fr-account-grid {
	gap: var(--fr-space-8) var(--fr-space-8);
}

.fr-account-card,
.fr-account-card:hover,
.fr-account-card.fr-account-card-done:hover,
.fr-account-card.fr-account-card-identity-verified,
.fr-account-card.fr-account-card-identity-verified:hover,
.fr-account-card.fr-account-card-locked,
.fr-account-card.fr-account-card-locked:hover {
	display: block;
	padding: 18px 0 0;
	border: 0;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: 0;
	background: none;
	color: var(--fr-color-ink);
}

.fr-account-card-icon {
	display: none;
}

/* While identity is checked: the spinner, then the tick, beside the heading. */
.fr-account-card[data-identity-processing] {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: var(--fr-space-4);
	align-items: start;
}

.fr-account-card[data-identity-processing] .fr-account-card-icon {
	display: flex;
	width: 32px;
	height: 32px;
}

.fr-account-card[data-identity-processing] .fr-account-card-icon :is(svg, .spinner-loader) {
	width: 28px;
	height: 28px;
}

.fr-account-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.fr-account-card-body > br {
	display: none;
}

.fr-account-card-body h2 {
	margin: 0;
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
	line-height: 1.05;
}

.fr-account-card-body p {
	margin: 0;
	color: var(--fr-color-text-soft);
}

.fr-account-card-body > a.text-link,
.fr-account-card-body > a:not(.button) {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

.fr-account-card-locked .fr-account-card-body :is(h2, p) {
	color: var(--fr-color-text-muted);
}

.fr-idv-incomplete-message ol {
	display: grid;
	gap: var(--fr-space-3);
	margin: 0;
	padding-left: 1.2em;
}

/* Wanting attention: a payment due, an order to approve, an invitation, a warning. */
.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card),
.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card):hover {
	grid-column: 1 / -1;
	padding: 28px;
	border: 0;
	border-radius: var(--fr-radius-panel);
	background: var(--fr-color-body);
	color: var(--fr-color-on-dark);
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .fr-account-card-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	column-gap: var(--fr-space-7);
	row-gap: 6px;
	align-items: end;
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .fr-account-card-body > :not(.button, .fr-account-invitation-actions, .fr-account-warning-actions) {
	grid-column: 1;
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .fr-account-card-body > :is(.button, .fr-account-invitation-actions, .fr-account-warning-actions) {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: end;
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--fr-color-on-dark);
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) h2::before {
	content: "";
	flex: none;
	width: var(--fr-motif-dot);
	height: var(--fr-motif-dot);
	border-radius: 50%;
	background: var(--fr-color-record);
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) p,
.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .fr-account-invitation-status {
	color: var(--fr-color-on-dark-soft);
}

.fr-account-invitation-actions,
.fr-account-warning-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--fr-space-2);
}

.fr-account-invitation-actions .fr-action-status,
.fr-account-warning-actions .fr-action-status {
	display: grid;
	justify-items: stretch;
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .button {
	width: 100%;
	min-height: var(--fr-control-height-wide);
}

.fr-page--account .woocommerce-MyAccount-content .fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .button.secondary {
	border-color: var(--fr-color-body-line-strong);
	color: var(--fr-color-on-dark);
}

/* On the panel the red's hover goes light, as the dark panels' buttons do. */
@media (hover: hover) {
	.fr-page--account .woocommerce-MyAccount-content .fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .button:hover {
		border-color: var(--fr-color-on-dark);
		background: var(--fr-color-on-dark);
		color: var(--fr-color-ink);
	}
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .spinner-loader {
	border-top-color: var(--fr-color-on-dark);
}

.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) :focus-visible {
	outline-color: var(--fr-color-on-dark);
}

@media (max-width: 699px) {
	.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card),
	.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card):hover {
		padding: var(--fr-space-5) var(--fr-space-4);
	}

	.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .fr-account-card-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.fr-account-card:is(.fr-account-invitation-card, .fr-account-warning-card) .fr-account-card-body > :is(.button, .fr-account-invitation-actions, .fr-account-warning-actions) {
		grid-column: 1;
		grid-row: auto;
		margin-top: var(--fr-space-3);
	}
}

/* -------------------------------- Settings (html-my-account-settings.php)
 *
 * A row per setting under an ink rule: its heading and line at the left, its control at the right,
 * "Saved" beside the control once a change is saved (a spinner while it is). On and off settings are
 * slide switches. On a phone the control goes under the line.
 */

.fr-settings .fr-pref-grid {
	display: block;
}

.fr-pref-card,
.fr-pref-card:hover {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 320px);
	grid-template-areas:
		"title  note control"
		"text   note control"
		"status note control";
	column-gap: var(--fr-space-4);
	row-gap: 6px;
	align-items: center;
	margin: 0;
	padding: var(--fr-space-5) 0 28px;
	border: 0;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: 0;
	background: none;
}

.fr-pref-card-body {
	display: contents;
}

.fr-pref-card-body > h2 {
	grid-area: title;
	margin: 0;
	font-size: 24px;
	font-weight: var(--fr-weight-semibold);
	line-height: var(--fr-leading-snug);
}

.fr-pref-card-body > p:not(.fr-pref-status) {
	grid-area: text;
	max-width: var(--fr-layout-measure);
	margin: 0;
	color: var(--fr-color-text-soft);
}

.fr-pref-card-body > :is(.fr-pref-input-row, .fr-pref-switch, .fr-pref-options, .button) {
	grid-area: control;
	justify-self: end;
}

.fr-pref-status {
	grid-area: status;
	margin: 0;
}

.fr-pref-status:empty {
	display: none;
}

/* Where the icon was: the spinner while saving, then "Saved". */
.fr-pref-card-icon {
	grid-area: note;
	display: flex;
	justify-content: flex-end;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	animation: none;
}

.fr-pref-card .fr-pref-icon {
	display: none;
}

.fr-pref-card-icon .spinner-loader {
	width: 24px;
	height: 24px;
	border-top-width: 2px;
	border-right-width: 2px;
}

.fr-pref-card.fr-pref-saved .fr-pref-saved-note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fr-color-text-soft);
	font-size: 14px;
}

.fr-pref-card.fr-pref-saved .fr-pref-saved-note::before {
	content: "";
	width: var(--fr-motif-dot);
	height: var(--fr-motif-dot);
	border-radius: 50%;
	background: var(--fr-color-record);
}

.fr-pref-card.fr-pref-saving .fr-pref-saved-note {
	display: none;
}

/* The preferred name: the field, then Save. */
.fr-pref-input-row {
	display: flex;
	align-items: flex-end;
	gap: var(--fr-space-3);
	width: 100%;
	max-width: none;
}

.fr-pref-card-body .fr-pref-input-row input[type="text"] {
	flex: 1 1 auto;
	height: auto;
	min-height: var(--fr-control-height);
	padding: 0 var(--fr-space-3);
	border: solid var(--fr-color-ink);
	border-width: 0 0 var(--fr-control-hairline);
	background: transparent;
	font-size: var(--fr-text-base-narrow);
}

.fr-pref-card-body .fr-pref-input-row input[type="text"]:focus {
	box-shadow: inset 0 -1px 0 var(--fr-color-ink);
}

.fr-settings button.fr-pref-save-btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--fr-control-height);
	min-width: 0;
	height: var(--fr-control-height);
	min-height: 0;
	margin: 0;
	padding: 0;
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: transparent;
	box-shadow: none;
	color: var(--fr-color-ink);
}

@media (hover: hover) {
	.fr-settings button.fr-pref-save-btn:hover {
		background: var(--fr-color-ink);
		color: var(--fr-color-ground);
	}
}

.fr-settings .fr-pref-save-tick {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.fr-pref-switch {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.fr-pref-switch .fr-switch {
	cursor: pointer;
}

@media (max-width: 639px) {
	.fr-pref-card,
	.fr-pref-card:hover {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"title   note"
			"text    text"
			"control control"
			"status  status";
		row-gap: var(--fr-space-2);
	}

	.fr-pref-card-body > :is(.fr-pref-input-row, .fr-pref-switch, .fr-pref-options, .button) {
		justify-self: start;
		margin-top: var(--fr-space-2);
	}

	.fr-pref-card-body > h2 {
		font-size: 21px;
	}
}

/* -------------------------------- Payment cards (html-my-account-payment-cards.php)
 *
 * "Saved cards" under an ink rule with Add card at its right, then the cards drawn as cards in
 * camera body, the bin in each one's corner; a card saved for payments only is a line between
 * hairlines with Save for deposits. Adding a card opens its form under an ink rule. In the
 * payment modals a card is a choice, a row rather than a card, outlined in ink once chosen.
 */

.fr-payment-cards {
	max-width: none;
}

.fr-payment-card-section {
	padding: 0 0 var(--fr-space-7);
	border-bottom: 0;
}

.fr-payment-card-section + .fr-payment-card-section {
	padding-top: var(--fr-space-4);
}

.fr-payment-card-section-heading {
	gap: var(--fr-space-4);
	padding-top: 18px;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-payment-card-section-heading + .fr-payment-card-section-heading {
	padding-top: var(--fr-space-3);
	border-top: 0;
}

.fr-payment-card-section-heading :is(h1, h2, h3, h4) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--fr-font-heading);
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
	line-height: 1;
}

.fr-payment-card-empty {
	color: var(--fr-color-text-soft);
}

.fr-payment-card-empty > br {
	display: none;
}

.fr-payment-card-list {
	margin: var(--fr-space-6) 0;
}

.fr-payment-card-grid {
	gap: var(--fr-space-7);
	grid-template-columns: repeat(auto-fill, minmax(240px, 340px));
}

.fr-payment-card-grid > .fr-payment-card {
	margin: 0;
}

/* A saved card, drawn as a payment card: camera body, its writing light, a card's corners, the
   brand's logo straight on it, in its own colours but for Visa's, white here (the logos' sprite
   is outside the card, so only a custom property reaches it). Full size on Payment Cards (div); in
   the modals a small version of it, as wide as what it says, to choose from (label) and the one
   chosen (.fr-payment-card-summary). */
:is(div.fr-payment-card-face, label.fr-payment-card-face, .fr-payment-card-summary) {
	--fr-card-visa: var(--fr-color-white);
	border: 0;
	border-radius: var(--fr-radius-card);
	background: var(--fr-color-body);
	box-shadow: none;
	color: var(--fr-color-on-dark);
}

div.fr-payment-card-face {
	padding: var(--fr-space-5) 22px;
}

/* Twice the card's width, cropped by it, and still turned about the card's centre. No max-width,
   the theme's holding any picture to its container's width. */
:is(div.fr-payment-card-face, label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-watermark {
	display: block;
	width: 200%;
	max-width: none;
	opacity: 0.08;
}

:is(div.fr-payment-card-face, label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-number {
	color: var(--fr-color-on-dark);
	font-weight: var(--fr-weight-medium);
	letter-spacing: 0.06em;
}

:is(div.fr-payment-card-face, label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-filler {
	display: inline-block;
	color: var(--fr-color-on-dark-mark);
}

:is(div.fr-payment-card-face, label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-expiry {
	color: var(--fr-color-on-dark-soft);
	font-size: 14px;
}

/* Compact: the number and expiry, a little space, then the logo at the right of both, and no
   wider than that. Not a size container, as the full card is, since that would stop it shrinking
   to what it holds. */
label.fr-payment-card-face,
.fr-payment-card-summary {
	position: relative;
	overflow: hidden;
	container-type: normal;
	grid-template-areas:
		"number brand"
		"expiry brand";
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 2px var(--fr-space-5);
	width: fit-content;
	max-width: 100%;
	padding: var(--fr-space-3) var(--fr-space-4);
}

.fr-payment-card-summary > :not(.fr-payment-card-face-watermark) {
	z-index: 1;
}

:is(label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-number {
	align-self: end;
	font-size: 1em;
}

/* The narrowest phones have not quite the room for all nineteen characters at full size. */
@media (max-width: 359px) {
	:is(label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-number {
		font-size: 0.9em;
	}
}

:is(label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-expiry {
	align-self: start;
}

:is(label.fr-payment-card-face, .fr-payment-card-summary) .fr-payment-card-face-brand {
	align-self: center;
	justify-self: end;
	width: 40px;
	height: 25px;
}

/* In a modal the list is only the cards, one above another, without the rows it has on the page. */
.jquery-modal.blocker > .modal .fr-payment-card-list:not([hidden]) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fr-space-3);
	margin: var(--fr-space-4) 0;
	padding: 0;
	list-style: none;
}

.fr-payment-card:has(> :is(label.fr-payment-card-face, .fr-payment-card-summary)) {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.jquery-modal.blocker > .modal .fr-payment-card-grid > .fr-payment-card {
	max-width: none;
	margin: 0;
}

/* The bin, at the card's top right, its box drawn under the pointer. */
body .fr-payment-cards button.fr-payment-card-trash,
body .fr-payment-cards button.fr-payment-card-trash:focus {
	width: var(--fr-control-height);
	height: var(--fr-control-height);
	margin: -12px -14px 0 0;
	padding: 0;
	border-radius: var(--fr-radius-control);
	color: inherit;
}

@media (hover: hover) {
	body .fr-payment-cards button.fr-payment-card-trash:hover {
		box-shadow: inset 0 0 0 var(--fr-control-hairline) currentColor;
		color: inherit;
	}
}

.fr-payment-cards .fr-payment-card-trash .fr-trash-icon {
	width: 26px;
	height: 26px;
}

/* Delete this card?, laid over it. */
.fr-payment-card-grid .fr-payment-card-delete-confirmation {
	border-radius: var(--fr-radius-card);
	background: var(--fr-color-ground);
	box-shadow: inset 0 0 0 var(--fr-control-border) var(--fr-color-ink);
	padding: var(--fr-space-4);
}

.fr-payment-card-grid .fr-payment-card-delete-confirmation p {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

.fr-payment-card-delete-confirmation .fr-action-status {
	display: grid;
}

.fr-page--account .woocommerce-MyAccount-content .fr-payment-card-delete-confirm {
	border-color: var(--fr-color-record);
	background: var(--fr-color-record);
	color: var(--fr-color-white);
}

/* Saved for payments only: a line between hairlines. */
.fr-payment-card-half-saved-note {
	margin: 0 0 var(--fr-space-2);
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

.fr-payment-card-half-saved .fr-payment-card,
.fr-payment-card {
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-top: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	background: none;
	min-height: 0;
}

.fr-payment-card-grid > .fr-payment-card {
	padding: 0;
	border: 0;
}

.fr-payment-card-reference-number {
	font-weight: var(--fr-weight-semibold);
}

.fr-payment-card-reference-expiry {
	color: var(--fr-color-text-muted);
}

/* Adding a card: its form under an ink rule. */
.fr-payment-card-form {
	max-width: 560px;
	margin-top: var(--fr-space-6);
	padding-top: 22px;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-payment-card-form h3 {
	margin: 0 0 var(--fr-space-2);
	font-size: 26px;
	font-weight: var(--fr-weight-semibold);
}

.fr-payment-card-step {
	margin: 0 0 var(--fr-space-2);
	color: var(--fr-color-ink);
	font-family: var(--fr-font-mark);
	font-size: var(--fr-text-mark);
	font-stretch: var(--fr-mark-stretch);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-mark);
}

.fr-payment-field-group label {
	margin-bottom: 0;
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
}

.fr-payment-hosted-field {
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-ink);
}

.fr-payment-field-decoration.is-focused {
	background: transparent;
	box-shadow: inset 0 -1px 0 var(--fr-color-ink);
}

.fr-payment-field-decoration.invalid-input {
	box-shadow: inset 0 -1px 0 var(--fr-color-error);
}

.fr-payment-field-decoration.invalid-input ~ .fr-payment-hosted-field {
	border-bottom-color: var(--fr-color-error);
}

.fr-payment-field-group input[type="text"].fr-payment-address-field {
	height: 50px;
	border: solid var(--fr-color-ink);
	border-width: 0 0 var(--fr-control-hairline);
	font-family: var(--fr-font-body);
}

.fr-payment-field-skeleton {
	background-color: var(--fr-color-row-hover);
	border-bottom-color: var(--fr-color-rule-soft);
}

.fr-payment-card-form-actions {
	flex-wrap: wrap;
	gap: var(--fr-space-3);
	margin-top: var(--fr-space-2);
}

.fr-payment-card-form-actions .fr-action-status {
	display: grid;
}

/* In the payment modals a card is a choice: lifted a shade under the pointer, and once chosen an
   ink ring round it, clear of its edge. Nothing shifts, the ring being drawn without taking room. */
label.fr-payment-card-face:hover {
	background: var(--fr-color-body);
}

@media (hover: hover) {
	label.fr-payment-card-face:hover {
		background: var(--fr-color-body-raised);
	}
}

label.fr-payment-card-face:has(.fr-payment-card-face-choice:checked) {
	background: var(--fr-color-body);
	box-shadow: 0 0 0 2px var(--fr-color-ground), 0 0 0 4px var(--fr-color-ink);
}

/* Adding a card in a modal: the same room above the form as on the page (the old design's rule
   for the modals takes it away), under the screen's heading. */
.jquery-modal.blocker > .modal .fr-payment-card-form {
	margin-top: var(--fr-space-5);
	padding-top: var(--fr-space-5);
}

.jquery-modal.blocker > .modal .fr-deposit-step-heading {
	margin-bottom: 0;
}

/* The Terms of Hire box and its line: the box level with the line's first line of text. */
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: var(--fr-weight-regular);
	cursor: pointer;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox > br {
	display: none;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox {
	flex: none;
	width: 18px;
	height: 18px;
	margin: calc((1lh - 18px) / 2) 0 0;
}

/* -------------------------------- Orders (html-my-account-orders-page.php, -order-card.php)
 *
 * "Your orders" with Filter at its right, then current, future and past orders, each group's
 * heading under an ink rule with its count in brackets and Expand all. Orders are set apart by
 * space, not rules, each with a 2px rule at its left in its status's colour, opening below from a
 * chevron at its right (and scrolled up to the header's foot as it opens, focus-b-front.js); its
 * status a square label under when it was placed, in the old cards' colours (focus-b-front.css's
 * status palette: the light one behind, the dark one for the words), the record light by one
 * waiting to be paid.
 */

#fr-orders {
	--fr-order-line: var(--fr-color-rule-soft);
	--fr-order-muted: var(--fr-color-text-muted);
}

.fr-orders-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fr-space-4);
	margin-bottom: var(--fr-space-7);
}

.fr-page--account .woocommerce-MyAccount-content .fr-orders-header .fr-orders-title {
	margin: 0;
}

#fr-orders .fr-orders-filter-btn,
#fr-orders .fr-orders-filter-btn:hover {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: var(--fr-space-2);
	width: auto;
	min-width: 0;
	height: auto;
	min-height: var(--fr-control-height);
	margin: 0;
	padding: 0 18px;
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: transparent;
	box-shadow: none;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
	cursor: pointer;
}

/* Filled under the pointer, and kept filled while the filters are open (.is-active, set by
   focus-b-front.js for the modal and the phone's panel alike); the label and icon follow the
   button's colour rather than the old design's red. */
@media (hover: hover) {
	#fr-orders .fr-orders-filter-btn:hover {
		background: var(--fr-color-ink);
		color: var(--fr-color-ground);
	}
}

#fr-orders .fr-orders-filter-btn.is-active {
	background: var(--fr-color-ink);
	color: var(--fr-color-ground);
}

#fr-orders .fr-orders-filter-btn:focus-visible:not(.is-active) {
	background: transparent;
	outline: 2px solid var(--fr-color-ink);
	outline-offset: 2px;
}

#fr-orders .fr-orders-filter-btn:is(:hover, .is-active, :focus-visible) .fr-orders-filter-btn-label {
	color: inherit;
}

#fr-orders .fr-orders-filter-btn:is(:hover, .is-active, :focus-visible) .fr-filter-icon-path {
	stroke: currentColor;
}

#fr-orders .fr-orders-filter-btn-label {
	display: inline;
	color: inherit;
	font-weight: inherit;
}

#fr-orders .fr-filter-icon {
	width: 18px;
	height: 18px;
}

#fr-orders .fr-filter-icon-path {
	stroke: currentColor;
}

.fr-orders-group {
	margin-bottom: var(--fr-space-8);
}

.fr-orders-group-header {
	margin: 0;
	padding: 18px 0 14px;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

.fr-page--account .woocommerce-MyAccount-content .fr-orders-group-title {
	align-items: baseline;
	gap: var(--fr-space-3);
	margin: 0;
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
	line-height: 1;
	text-transform: none;
}

/* The count beside the heading, in brackets, in the heading's face and size but muted:
   "Current orders (2)". */
.fr-page--account .woocommerce-MyAccount-content .fr-orders-group-title:has(.fr-orders-group-count) {
	gap: 0.3em;
}

.fr-orders-group-count {
	display: inline;
	min-width: 0;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--fr-color-text-muted);
	font-family: inherit;
	font-size: inherit;
	font-weight: var(--fr-weight-medium);
	letter-spacing: inherit;
}

.fr-orders-group-count::before {
	content: "(";
}

.fr-orders-group-count::after {
	content: ")";
}

.fr-orders-group-toggle-all,
body .fr-orders-group-toggle-all.text-link {
	min-height: var(--fr-control-height);
	padding: 0;
	border: 0;
	background: none;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
	letter-spacing: 0;
	text-transform: none;
}

/* An order: space between it and the next, its status's colour down both sides and a grey rule top
   and bottom, white under the pointer and while it's open, as in the old design. */
.fr-order-card,
.fr-order-card.is-card-collapsed,
.fr-order-card:hover,
#fr-orders .fr-order-card:not(.is-card-collapsed) {
	margin: 0 0 var(--fr-space-4);
	padding: 0 var(--fr-space-4);
	border: var(--fr-control-border) solid var(--fr-color-rule-soft);
	border-right-color: var(--fr-order-accent);
	border-left-color: var(--fr-order-accent);
	border-radius: 0;
	background: none;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease);
}

#fr-orders .fr-order-card:not(.is-card-collapsed) {
	background: var(--fr-color-white);
}

/* Only with a pointer to hover: on a touch screen a tap would leave this look behind. */
@media (hover: hover) {
	.fr-order-card:hover,
	.fr-order-card.is-card-collapsed:hover {
		background: var(--fr-color-white);
	}
}

/* Who placed it and when, the status under it, and the chevron at the right of both. */
.fr-order-card-header,
.fr-order-card.is-card-collapsed .fr-order-card-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	justify-items: start;
	gap: var(--fr-space-2) var(--fr-space-4);
	margin: 0 calc(-1 * var(--fr-space-4));
	padding: var(--fr-space-4);
	border: 0;
	border-radius: 0;
}

.fr-order-card-header > .fr-order-status {
	grid-column: 1;
}

.fr-order-card-chevron {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	color: var(--fr-color-ink);
}

.fr-order-card-chevron .fr-chevron-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform var(--fr-motion-settle) var(--fr-motion-ease);
}

.fr-order-card-header[aria-expanded="true"] .fr-order-card-chevron .fr-chevron-icon {
	transform: rotate(180deg);
}

/* From a tablet's width up the status moves up beside who placed it and when, by the chevron, and
   the card is that much shorter. */
@media (min-width: 640px) {
	.fr-order-card-header,
	.fr-order-card.is-card-collapsed .fr-order-card-header {
		grid-template-columns: minmax(0, 1fr) auto auto;
	}

	.fr-order-card-header > .fr-order-status {
		grid-column: 2;
		grid-row: 1;
		margin-top: 0;
	}

	.fr-order-card-chevron {
		grid-column: 3;
		grid-row: 1;
	}
}

.fr-order-card-header:focus-visible {
	outline: 2px solid var(--fr-color-ink);
	outline-offset: 2px;
}

.fr-page--account .woocommerce-MyAccount-content .fr-order-number {
	margin: 0;
	font-size: 20px;
	font-weight: var(--fr-weight-semibold);
	line-height: var(--fr-leading-snug);
}

.fr-order-placed {
	color: var(--fr-color-text-muted);
	font-size: 14px;
}

/* The status, a square label in its colours; the record light before one that waits on the
   customer to pay. */
.fr-order-status {
	display: inline-flex;
	align-items: center;
	gap: var(--fr-space-2);
	padding: var(--fr-space-1) var(--fr-space-3);
	border-radius: 0;
	background: var(--fr-order-accent-soft);
	color: var(--fr-order-accent);
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
	letter-spacing: 0;
	text-transform: none;
}

.fr-order-card:is([data-status="pending"], [data-status="awaiting-deposit"]) .fr-order-status {
	font-weight: var(--fr-weight-semibold);
}

.fr-order-card:is([data-status="pending"], [data-status="awaiting-deposit"]) .fr-order-status::before {
	content: "";
	width: var(--fr-motif-dot);
	height: var(--fr-motif-dot);
	border-radius: 50%;
	background: var(--fr-color-record);
}

.fr-order-card-body-inner {
	padding: 0;
}

.fr-order-card:not(.is-card-collapsed) .fr-order-card-body-inner {
	padding-bottom: 28px;
}

/* Collect and return, their names in capitals as on the dates panels; from a tablet's width
   side by side at their own widths, not half the card's each. */
.fr-order-window {
	gap: var(--fr-space-4);
	padding: var(--fr-space-2) 0 var(--fr-space-5);
}

@media (min-width: 640px) {
	.fr-order-window {
		grid-template-columns: repeat(2, max-content);
		column-gap: var(--fr-space-9);
	}
}

.fr-order-window-block,
.fr-order-window-block:nth-child(odd) {
	gap: 2px;
	padding: 0;
	border: 0;
}

.fr-order-window-label {
	color: var(--fr-color-text-muted);
	font-family: var(--fr-font-mark);
	font-size: var(--fr-text-mark);
	font-stretch: var(--fr-mark-stretch);
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-mark);
	text-transform: uppercase;
}

.fr-order-window-date {
	font-size: var(--fr-text-base-narrow);
	font-weight: var(--fr-weight-semibold);
}

.fr-order-window-time {
	color: var(--fr-color-text-soft);
	font-size: var(--fr-text-small);
}

.fr-order-extension-notice {
	padding: var(--fr-space-3) 0;
	border-top: 0;
}

.fr-order-extension-notice-line {
	padding-left: var(--fr-space-5);
	border-left: 0;
	position: relative;
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-medium);
}

.fr-order-extension-notice-line::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(0.75em - var(--fr-motif-dot) / 2);
	width: var(--fr-motif-dot);
	height: var(--fr-motif-dot);
	border-radius: 50%;
	background: var(--fr-color-ink);
}

/* The items: an ink rule under the heads, hairlines between rows, a total under an ink rule. */
.fr-order-items-table {
	font-size: var(--fr-text-small);
}

.fr-order-items-table thead th {
	border-bottom: var(--fr-control-border) solid var(--fr-color-ink);
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
	text-transform: none;
	letter-spacing: 0;
}

.fr-order-items-table td,
.fr-order-items-table tbody > tr.fr-order-item-row > td {
	border-color: var(--fr-color-rule-soft);
}

.fr-order-items-table .fr-order-total-row td {
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
	font-family: var(--fr-font-heading);
	font-weight: var(--fr-weight-bold);
}

.fr-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fr-space-2);
}

.fr-order-actions .fr-action-status {
	display: grid;
}

@media (max-width: 639px) {
	.fr-orders-header {
		margin-bottom: var(--fr-space-6);
	}

	.fr-order-actions .fr-order-button,
	.fr-order-actions .fr-action-status {
		flex: 1 1 100%;
	}
}

/* -------------------------------- Profile (html-my-account-profile.php, -profile-flow.php, -profile-templates.php)
 *
 * A form in steps, one screen at a time (my-account-profile.js shows them): the screen's heading,
 * its question, the answers, then the step's own action in record red and first, Prev after it
 * as an outline, and Check progress and Start again as links under them. A choice between
 * answers is a row each, outlined, filled camera body once chosen, the radio or checkbox kept
 * underneath for the script and the keyboard. Fields are underlined, their labels over them.
 * Once submitted, the profile is read as the account's other pages are: a section each under an
 * ink rule, a label column and the values, the verified mark in ink.
 *
 * Its old rules are all prefixed with body.woocommerce-account section#fr-my-account-profile, so
 * these are too, and win by coming later.
 */

#fr-my-account-profile {
	max-width: 560px;
}

#fr-my-account-profile:has(#fr-my-account-profile-screen-profile-type.is-active),
#fr-my-account-profile:has(#fr-my-account-profile-screen-view-and-edit.is-active),
#fr-my-account-profile[data-profile-closed] {
	max-width: 860px;
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-screen {
	margin: 0;
	padding: 0;
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-screen > h2,
body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-screen > .fr-profile-conditional-field > h2 {
	margin: 0 0 var(--fr-space-3);
	font-size: var(--fr-text-panel);
	font-weight: var(--fr-weight-bold);
	letter-spacing: var(--fr-tracking-display);
	line-height: 1.05;
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-screen h3 {
	margin: var(--fr-space-6) 0 var(--fr-space-2);
	font-size: 19px;
	font-weight: var(--fr-weight-semibold);
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-screen > p {
	margin: 0 0 var(--fr-space-5);
	color: var(--fr-color-text-soft);
}

body.woocommerce-account section#fr-my-account-profile .bold {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

/* -------------------------------- Fields */

body.woocommerce-account section#fr-my-account-profile .fr-profile-field-stack:not(.fr-company-search-wrapper),
body.woocommerce-account section#fr-my-account-profile .fr-profile-reference-block,
body.woocommerce-account section#fr-my-account-profile .fr-profile-upload-block {
	margin-bottom: var(--fr-space-5);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-field-stack label,
body.woocommerce-account section#fr-my-account-profile .fr-profile-reference-block > label {
	display: block;
	margin-bottom: 0;
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-medium);
}

body.woocommerce-account section#fr-my-account-profile :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], select) {
	min-height: var(--fr-control-height);
	padding: 0 var(--fr-space-3);
	border: solid var(--fr-color-ink);
	border-width: 0 0 var(--fr-control-hairline);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: var(--fr-text-base-narrow);
}

body.woocommerce-account section#fr-my-account-profile textarea {
	border: var(--fr-control-hairline) solid var(--fr-color-ink);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.woocommerce-account section#fr-my-account-profile input:active,
body.woocommerce-account section#fr-my-account-profile input:focus,
body.woocommerce-account section#fr-my-account-profile select:focus,
body.woocommerce-account section#fr-my-account-profile textarea:focus {
	background-color: transparent;
}

body.woocommerce-account section#fr-my-account-profile :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], select):focus {
	box-shadow: inset 0 -1px 0 var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile :is(input, select, textarea).fr-is-valid {
	border-bottom-color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile :is(input, select, textarea).fr-is-invalid,
body.woocommerce-account section#fr-my-account-profile :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], select).fr-is-invalid:focus {
	border-bottom-color: var(--fr-color-error);
	box-shadow: inset 0 -1px 0 var(--fr-color-error);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-inline-url-prefix,
body.woocommerce-account section#fr-my-account-profile .fr-profile-inline-email-domain {
	bottom: 0;
	font-weight: var(--fr-weight-semibold);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-inline-url,
body.woocommerce-account section#fr-my-account-profile .fr-profile-inline-email {
	align-items: center;
}

/* -------------------------------- Answers to choose from: a row each */

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list) {
	display: grid;
	gap: var(--fr-space-2);
	margin-bottom: var(--fr-space-5);
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label:has(> input:is([type="radio"], [type="checkbox"])) {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--fr-space-3);
	min-height: var(--fr-control-height-wide);
	margin: 0;
	padding: var(--fr-space-2) var(--fr-space-4);
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: var(--fr-radius-control);
	background: transparent;
	color: var(--fr-color-ink);
	font-size: var(--fr-text-base-narrow);
	font-weight: var(--fr-weight-medium);
	line-height: 1.3;
	cursor: pointer;
	transition: background-color var(--fr-motion-quick) var(--fr-motion-ease), color var(--fr-motion-quick) var(--fr-motion-ease);
}

/* The input underneath, out of sight but still the thing the keyboard and the script use. */
body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label > input:is([type="radio"], [type="checkbox"]) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

@media (hover: hover) {
	body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label:has(> input:is([type="radio"], [type="checkbox"])):hover {
		background: var(--fr-color-row-hover);
	}
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label:has(> input:checked),
body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label:has(> input:checked):hover {
	border-color: var(--fr-color-body);
	background: var(--fr-color-body);
	color: var(--fr-color-white);
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label:has(> input:focus-visible) {
	outline: 2px solid var(--fr-color-ink);
	outline-offset: 2px;
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list, .fr-profile-sub-options, .fr-profile-conditional-field) > label:has(> input:disabled) {
	border-color: var(--fr-color-rule-soft);
	color: var(--fr-color-text-off);
	cursor: default;
}

/* A question that follows from an answer, under it and set in. */
body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-radio-list, .fr-profile-checkbox-list) .fr-profile-conditional-field:not([hidden]),
body.woocommerce-account section#fr-my-account-profile .fr-profile-sub-options {
	display: grid;
	gap: var(--fr-space-2);
	margin: 0 0 var(--fr-space-2) var(--fr-space-5);
	padding: var(--fr-space-2) 0 var(--fr-space-2) var(--fr-space-4);
	border-left: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
}

#fr-profile-company-ltd-question,
#fr-profile-company-plc-question,
#fr-profile-company-llp-question {
	left: 0;
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-conditional-field > p {
	margin: 0 0 var(--fr-space-1);
}

/* A single tick box (consent and the like) stays a tick box. */
body.woocommerce-account section#fr-my-account-profile .fr-profile-inline-check {
	align-items: center;
	gap: var(--fr-space-3);
	font-size: var(--fr-text-small);
}

/* Who the profile is for: Individual or Company, side by side as sections, not boxes. */
body.woocommerce-account section#fr-my-account-profile .fr-profile-choice-grid {
	gap: var(--fr-space-8);
	margin-top: var(--fr-space-6);
}

.fr-profile-choice-card,
.fr-profile-choice-card:hover {
	display: block;
	padding: 18px 0 0;
	border: 0;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
	border-radius: 0;
	background: none;
}

.fr-profile-choice-card-icon {
	display: none;
}

.fr-profile-choice-card-body h3 {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: var(--fr-weight-semibold);
}

.fr-profile-choice-card-body p {
	margin: 0 0 var(--fr-space-4);
}

/* -------------------------------- The step's buttons, and the links under them */

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fr-space-3);
	margin-top: var(--fr-space-7);
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions > br {
	display: none;
}

/* The step's own action, first and in red; No and the like after it, outlined. Prev and Next
   (or Finish, Submit) keep their order, Prev at the left, as a way back and a way on read. */
body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions:not(:has(> .button.secondary[data-screen-switch-id])) > :is(.button:not(.secondary), .fr-action-status) {
	order: -1;
}

/* A button inside the spinner's wrapper fills it, so it is the size of one standing alone. */
body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions > .fr-action-status {
	display: grid;
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions > .fr-action-status > .button {
	justify-self: stretch;
}

body.woocommerce-account .fr-page--account section#fr-my-account-profile .fr-my-account-profile-actions :is(.button:not(.secondary)) {
	border-color: var(--fr-color-record);
	background: var(--fr-color-record);
	color: var(--fr-color-white);
}

/* Ink under the pointer, as every other button; the red above would otherwise outrank it. */
@media (hover: hover) {
	body.woocommerce-account .fr-page--account section#fr-my-account-profile .fr-my-account-profile-actions .button:not(:disabled):hover {
		border-color: var(--fr-color-ink);
		background: var(--fr-color-ink);
		color: var(--fr-color-white);
	}
}

/* Every button the same size at least, outlined or red. */
body.woocommerce-account .fr-page--account section#fr-my-account-profile .fr-my-account-profile-actions .button {
	min-width: 120px;
	min-height: var(--fr-control-height-wide);
	margin: 0;
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions > .text-link {
	flex-basis: 100%;
	align-self: flex-start;
	width: fit-content;
	font-size: var(--fr-text-small);
}

body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions > .text-link:first-of-type {
	margin-top: var(--fr-space-2);
}

/* -------------------------------- Progress: the steps, done or still to do */

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-list {
	margin: 0 0 var(--fr-space-5);
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item {
	gap: var(--fr-space-3);
	min-height: var(--fr-control-height-wide);
	padding: var(--fr-space-2) 0;
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item:last-child {
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-icon {
	width: 20px;
	height: 20px;
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item--complete .fr-profile-progress-icon {
	background-color: var(--fr-color-body);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item--incomplete .fr-profile-progress-icon {
	border: var(--fr-control-border) solid var(--fr-color-switch-off);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item--incomplete .fr-profile-progress-label {
	color: var(--fr-color-text-muted);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item--link .fr-profile-progress-label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-progress-item--link .fr-profile-progress-label:hover {
	color: var(--fr-color-text-muted);
	text-decoration: underline;
}

/* -------------------------------- Addresses: one confirmed, one found, and finding one */

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-verified-address, .fr-profile-selected-address) {
	gap: 2px;
	margin: 0 0 var(--fr-space-2);
	padding: var(--fr-space-4) 0;
	border: 0;
	border-top: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	background: none;
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-medium);
}

/* Suggestions under the field, as the search's are: hung from the field's line, square, an ink
   outline at the sides and foot, rows lit under the pointer. */
body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-address-finder-results, .fr-company-search-dropdown) {
	top: 100%;
	border: var(--fr-control-border) solid var(--fr-color-ink);
	border-top: 0;
	border-radius: 0;
	background: var(--fr-color-ground);
	box-shadow: none;
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-profile-address-finder-list > li, .fr-profile-address-finder-message, .fr-company-search-item) {
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	background: var(--fr-color-ground);
	color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-address-finder-list > li:not(.fr-profile-address-finder-message):is(:hover, [aria-selected="true"]),
body.woocommerce-account section#fr-my-account-profile .fr-company-search-item:is(:hover, .fr-focused) {
	background: var(--fr-color-row-hover);
	color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-company-search-addr {
	color: var(--fr-color-text-muted);
}

/* A director to choose: a row like the other answers. */
body.woocommerce-account section#fr-my-account-profile .fr-director-option {
	border-color: var(--fr-color-rule-soft);
	background: none;
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-director-option-info, .fr-director-option-dob) {
	color: var(--fr-color-text-muted);
}

/* -------------------------------- Insurance documents: dropping or choosing them */

body.woocommerce-account section#fr-my-account-profile .fr-profile-dropzone {
	align-items: center;
	border: var(--fr-control-hairline) solid var(--fr-color-ink);
	border-radius: 0;
	background: transparent;
}

@media (hover: hover) {
	body.woocommerce-account section#fr-my-account-profile .fr-profile-dropzone:hover {
		background-color: var(--fr-color-row-hover);
	}
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-dropzone.is-dragover {
	border: var(--fr-control-border) solid var(--fr-color-ink);
	background-color: var(--fr-color-row-hover);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-dropzone.is-success {
	border: var(--fr-control-border) solid var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-dropzone-fill {
	background: var(--fr-color-row-hover);
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-dropzone-text, .fr-dropzone-success, .fr-dropzone-spinner) {
	color: var(--fr-color-ink);
	font-weight: var(--fr-weight-semibold);
}

body.woocommerce-account section#fr-my-account-profile svg.fr-dropzone-icon {
	width: 40px;
	height: 40px;
	stroke: var(--fr-color-ink);
	stroke-width: 1.6;
}

body.woocommerce-account section#fr-my-account-profile .fr-dropzone-spinner::after {
	border-color: var(--fr-color-rule-soft);
	border-top-color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-dropzone-add-upload:hover, .fr-dropzone-add-upload:focus-visible, .fr-dropzone-uploaded.is-dragover .fr-dropzone-add-upload) {
	color: var(--fr-color-text-muted);
}

/* The bin: in ink, its box drawn under the pointer, as everywhere. */
body.woocommerce-account section#fr-my-account-profile button.fr-dropzone-remove-upload {
	width: var(--fr-control-height);
	height: var(--fr-control-height);
	border-radius: var(--fr-radius-control);
	color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile button.fr-dropzone-remove-upload:is(:hover, :focus) {
	color: var(--fr-color-ink);
}

@media (hover: hover) {
	body.woocommerce-account section#fr-my-account-profile button.fr-dropzone-remove-upload:hover {
		box-shadow: inset 0 0 0 var(--fr-control-hairline) currentColor;
	}
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-notice-panel {
	padding: var(--fr-space-4) 0;
	border-top: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	border-bottom: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	background: none;
	color: var(--fr-color-ink);
}

/* -------------------------------- Done: the bar that runs on to the account */

body.woocommerce-account section#fr-my-account-profile .fr-profile-complete-progress {
	background: var(--fr-color-rule-soft);
}

body.woocommerce-account section#fr-my-account-profile .fr-profile-complete-progress-bar {
	background: var(--fr-color-ink);
}

/* -------------------------------- Submitted: a section each, labels and values */

body.woocommerce-account section#fr-my-account-profile .fr-profile-review-content {
	margin-bottom: var(--fr-space-6);
	font-size: var(--fr-text-base-narrow);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-section,
body.woocommerce-account section#fr-my-account-profile .fr-review-section:last-child {
	padding: 18px 0 var(--fr-space-5);
	border: 0;
	border-top: var(--fr-control-border) solid var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-section-head {
	margin-bottom: var(--fr-space-3);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-section h3:not(.fr-dropzone-uploaded-info > h3) {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--fr-font-heading);
	font-size: 24px;
	font-weight: var(--fr-weight-semibold);
	letter-spacing: var(--fr-tracking-heading);
}

#fr-my-account-profile-screen-view-and-edit .fr-review-section-head :is(.fr-review-sec-icon, .spinner-loader, .success-tick) {
	top: 0;
}

body.woocommerce-account section#fr-my-account-profile :is(.fr-review-sec-icon-wrap, .fr-review-sec-icon-wrap--edit) {
	color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-sec-icon-wrap--edit:hover {
	color: var(--fr-color-text-muted);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-label {
	color: var(--fr-color-text-muted);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-value {
	color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-verified-disc {
	fill: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-verified-tick {
	stroke: var(--fr-color-ground);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-section--editing .fr-review-editable {
	border-bottom-color: var(--fr-color-ink);
}

body.woocommerce-account section#fr-my-account-profile .fr-review-section--editing .fr-review-editable.fr-is-invalid {
	border-bottom-color: var(--fr-color-error);
	box-shadow: inset 0 -1px 0 var(--fr-color-error);
}

@media (max-width: 639px) {
	body.woocommerce-account section#fr-my-account-profile .fr-review-label {
		color: var(--fr-color-text-muted);
		font-weight: var(--fr-weight-medium);
	}

	#fr-profile-review-content h3 {
		padding: 0;
		border: 0;
	}

	/* Sharing the width equally. Not from a basis of 0: a button can't shrink below its padding
	   and a spinner's wrapper can, so a button beside one would come out wider. */
	body.woocommerce-account section#fr-my-account-profile .fr-my-account-profile-actions > :is(.button, .fr-action-status) {
		flex: 1 1 40%;
	}
}

/* ---------------------------------------------------------------- The wall's passcode */

/*
 * html-coming-soon-form.php. One field holding six digits, each over a hairline of its own, like
 * the numbers on a lens barrel: the lines are its background, spaced a cell apart, and the
 * letter-spacing puts a digit on each. --fr-wall-cell and the digits' width are in ch, so the digits
 * must be figures of one width (tabular).
 */
.fr-wall-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--fr-space-4);
}

.fr-wall-form__field {
	display: flex;
	flex-direction: column;
	gap: var(--fr-space-2);
	max-width: 100%;
}

.fr-wall-form__label {
	font-size: var(--fr-text-small);
	font-weight: var(--fr-weight-semibold);
}

.fr-wall-form .fr-wall-form__code {
	--fr-wall-cell: 1.72ch;
	--fr-wall-gap: 0.3ch;
	--fr-wall-line: 1px;
	box-sizing: content-box;
	width: calc(6 * var(--fr-wall-cell) + 2px);
	height: 1.25em;
	margin: 0;
	/* The same at the right, so that the last digit and the caret after it don't scroll the field. */
	padding: 0 calc((var(--fr-wall-cell) - var(--fr-wall-gap) - 1ch) / 2) var(--fr-space-1);
	border: 0;
	border-radius: 0;
	outline: 0;
	background-color: transparent;
	background-image: repeating-linear-gradient(to right, var(--fr-color-ink) 0 calc(var(--fr-wall-cell) - var(--fr-wall-gap)), transparent 0 var(--fr-wall-cell));
	background-position: left bottom;
	background-repeat: no-repeat;
	background-size: calc(6 * var(--fr-wall-cell) - var(--fr-wall-gap)) var(--fr-wall-line);
	color: var(--fr-color-ink);
	font-family: var(--fr-font-heading);
	font-size: clamp(38px, 12.4vw, 60px);
	font-weight: var(--fr-weight-bold);
	font-variant-numeric: tabular-nums;
	letter-spacing: calc(var(--fr-wall-cell) - 1ch);
	line-height: 1.25;
	caret-color: var(--fr-color-record);
}

/* As any field's line does while in use. */
.fr-wall-form .fr-wall-form__code:focus {
	--fr-wall-line: 2px;
	border: 0;
	outline: 0;
	box-shadow: none;
}

.fr-wall-form .fr-action-status {
	display: block;
	flex: 1 0 100%;
}

.fr-wall-form .fr-action-status > .fr-button {
	width: 100%;
}

.fr-wall-form__messages {
	flex: 1 0 100%;
	min-height: 1.4em;
	margin-top: calc(-1 * var(--fr-space-2));
}

.fr-wall-form__messages .fr-action-status-note {
	margin: 0;
}

.fr-wall-form__messages .fr-action-status-note[hidden] {
	display: none;
}

@media (min-width: 640px) {
	.fr-wall-form .fr-action-status {
		flex: 0 0 auto;
	}

	.fr-wall-form .fr-action-status > .fr-button {
		width: auto;
		min-width: 132px;
	}
}

/* ---------------------------------------------------------------- Orders on a phone
 *
 * The filter, which is part of the page here (focus-b-front.css) and not the modal it is from a
 * tablet up: no height or scrolling of its own, so a swipe that starts on it moves the page.
 *
 * A transaction stacked: its date, then what it was, each on its own line, then its amount with its
 * invoice or card across from it. One rule between lines, the base's above each cell; the stacked
 * row's own would double it.
 */

@media (max-width: 549px) {
	#fr-orders-filter-modal .fr-order-modal-panel {
		bottom: auto;
		height: auto;
		overflow: visible;
		overscroll-behavior: auto;
		animation: none;
	}

	.fr-order-history .fr-order-history-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 0;
		border-bottom: 0;
	}

	.fr-order-history .fr-order-history-table td {
		padding: var(--fr-space-2) 0;
		border-top: var(--fr-control-hairline) solid var(--fr-color-rule-soft);
	}

	.fr-order-history .fr-order-history-table :is(.fr-order-history-date, .fr-order-history-event) {
		grid-column: 1 / -1;
	}

	.fr-order-history .fr-order-history-table .fr-order-history-doc {
		padding-left: var(--fr-space-4);
		text-align: right;
	}
}
