/*
 * Fearless Dancing booking portal
 * Brand source: fearlessdancing.co.za
 */

:root {
	--fd-navy: #1c2b3d;
	--fd-navy-soft: #304a69;
	--fd-gold: #e3ba64;
	--fd-gold-dark: #996e17;
	--fd-cream: #fffdf1;
	--fd-white: #ffffff;
	--fd-border: rgba(28, 43, 61, 0.18);
	--fd-shadow: 0 18px 50px rgba(28, 43, 61, 0.10);
}

html {
	scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
	font-family: "Raleway", Arial, Helvetica, sans-serif !important;
}

body {
	background: var(--fd-cream);
	color: var(--fd-navy);
	font-size: 16px;
	line-height: 1.72;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-site-title {
	color: var(--fd-navy);
	font-family: "Josefin Sans", Arial, Helvetica, sans-serif !important;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

a {
	color: var(--fd-gold-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--fd-navy);
}

::selection {
	background: var(--fd-gold);
	color: var(--fd-navy);
}

/* Twenty Twenty-Five site frame */
.wp-site-blocks {
	background:
		radial-gradient(circle at 100% 0%, rgba(227, 186, 100, 0.14), transparent 30rem),
		var(--fd-cream);
}

.wp-site-blocks > header,
header.wp-block-template-part {
	background: var(--fd-navy);
	border-bottom: 3px solid var(--fd-gold);
	color: var(--fd-cream);
}

.wp-site-blocks > header a,
header.wp-block-template-part a,
.wp-site-blocks > header .wp-block-site-title,
header.wp-block-template-part .wp-block-site-title {
	color: var(--fd-cream);
}

.wp-site-blocks > header a:hover,
header.wp-block-template-part a:hover {
	color: var(--fd-gold);
}

/* Replace the plain site title with the supplied Fearless Dancing logo. */
.wp-block-site-title {
	line-height: 1;
}

.wp-block-site-title > a {
	background: url("../images/fearless-dancing-logo.png") left center / contain no-repeat;
	display: block;
	font-size: 0 !important;
	height: 86px;
	max-width: 100%;
	overflow: hidden;
	text-indent: -9999px;
	width: 330px;
}

.wp-block-navigation a {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Compact the generous Twenty Twenty-Five page spacing on portal pages. */
.wp-site-blocks > main.wp-block-group {
	margin-block-start: 0 !important;
	padding-block: clamp(2.5rem, 5vw, 4rem) !important;
}

.wp-site-blocks > main.wp-block-group > .wp-block-group.alignfull {
	padding-block: 0 !important;
}

.wp-block-post-title,
.entry-title {
	font-size: clamp(2.6rem, 4vw, 3.75rem) !important;
	line-height: 1.08 !important;
	margin: 0 auto clamp(2rem, 4vw, 3rem) !important;
	max-width: 1180px !important;
	width: 100% !important;
}

/* Booking pages: keep the title and Amelia interface together. */
body:has(.entry-content .amelia-v2-booking) .wp-block-post-title,
body:has(.entry-content .amelia-v2-booking) .entry-title {
	margin-bottom: 1rem !important;
}

.entry-content:has(.amelia-v2-booking) {
	margin-block-start: 0 !important;
}

/* Pull the Amelia customer login closer to the Manage My Bookings heading. */
.page-id-22 .wp-block-post-title {
	margin-bottom: 1rem !important;
}

.page-id-22 .entry-content {
	margin-block-start: 0 !important;
}

.page-id-22 .amelia-v2-booking {
	margin-top: -4.5rem !important;
}

.wp-site-blocks > footer,
footer.wp-block-template-part {
	background: var(--fd-navy);
	border-top: 3px solid var(--fd-gold);
	color: var(--fd-cream);
}

.wp-site-blocks > footer a,
footer.wp-block-template-part a,
.wp-site-blocks > footer h1,
.wp-site-blocks > footer h2,
.wp-site-blocks > footer h3,
footer.wp-block-template-part h1,
footer.wp-block-template-part h2,
footer.wp-block-template-part h3 {
	color: var(--fd-cream);
}

/* WordPress and WooCommerce buttons */
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	background: var(--fd-navy) !important;
	border: 1px solid var(--fd-navy) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	color: var(--fd-white) !important;
	font-family: "Raleway", Arial, Helvetica, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	padding: 0.85rem 1.5rem !important;
	text-transform: uppercase;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--fd-gold) !important;
	border-color: var(--fd-gold) !important;
	color: var(--fd-navy) !important;
	transform: translateY(-1px);
}

/* Forms and checkout */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	background: var(--fd-white) !important;
	border: 1px solid var(--fd-border) !important;
	border-radius: 3px !important;
	color: var(--fd-navy) !important;
	min-height: 48px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--fd-gold) !important;
	box-shadow: 0 0 0 3px rgba(227, 186, 100, 0.22) !important;
	outline: none;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.wc-block-components-notice-banner {
	background: var(--fd-white) !important;
	border-color: var(--fd-gold) !important;
	color: var(--fd-navy) !important;
}

.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
	color: var(--fd-navy);
}

/* Amelia brand variables. Important is required because Amelia injects inline variables. */
.amelia-v2-booking,
.amelia-v2-booking #amelia-container,
.amelia-v2-booking.am-dialog-popup {
	--am-mw-main: 1320px !important;
	--am-mw-fsm: 1080px !important;
	--am-c-primary: #e3ba64 !important;
	--am-c-main-bgr: #fffdf1 !important;
	--am-c-main-heading-text: #1c2b3d !important;
	--am-c-main-text: #1c2b3d !important;
	--am-c-sb-bgr: #1c2b3d !important;
	--am-c-sb-text: #fffdf1 !important;
	--am-c-inp-bgr: #ffffff !important;
	--am-c-inp-border: rgba(28, 43, 61, 0.22) !important;
	--am-c-inp-text: #1c2b3d !important;
	--am-c-inp-placeholder: #66717e !important;
	--am-c-drop-bgr: #ffffff !important;
	--am-c-drop-text: #1c2b3d !important;
	--am-c-card-bgr: #ffffff !important;
	--am-c-card-text: #1c2b3d !important;
	--am-c-card-border: rgba(28, 43, 61, 0.18) !important;
	--am-c-btn-prim: #1c2b3d !important;
	--am-c-btn-prim-text: #ffffff !important;
	--am-c-btn-sec: #e3ba64 !important;
	--am-c-btn-sec-text: #1c2b3d !important;
	--am-font-family: "Raleway", Arial, Helvetica, sans-serif !important;
}

/* Amelia's step-by-step form ships with a 100px outer margin and a narrow
 * desktop width. Use the available portal space while keeping a readable
 * maximum and a small, deliberate gap below the page heading. */
.entry-content .amelia-v2-booking {
	max-width: 1320px !important;
	width: calc(100% - 2rem) !important;
	margin-inline: auto !important;
}

.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper {
	max-width: 1320px !important;
	margin: 0.75rem auto 2.5rem !important;
}

.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper .am-fs__main {
	flex: 1 1 auto !important;
	max-width: none !important;
}

/* Let the booking journey form part of the page instead of behaving like a
 * fixed-height app embedded inside it. Amelia's default 560px wrapper and
 * 444px content area create an unnecessary second scrollbar. */
.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper,
.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper .am-fs__main,
.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper .am-fs__main-inner {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.entry-content .amelia-v2-booking #amelia-container .am-fs__main-content,
.entry-content .amelia-v2-booking #amelia-container .am-fs__main-content.am-cap,
.entry-content .amelia-v2-booking #amelia-container .am-fs__main-content.am-capi,
.entry-content .amelia-v2-booking #amelia-container .am-fs__main-content.am-caep {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.entry-content .amelia-v2-booking #amelia-container .am-fs__main-footer {
	position: static !important;
}

.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper {
	box-shadow: none !important;
}

/* Jana is currently the only instructor. Keep her assigned to each booking,
 * but remove redundant employee presentation from the customer journey. */
.entry-content .amelia-v2-booking #amelia-container .am-fs-iipu__employee,
.entry-content .amelia-v2-booking #amelia-container .am-fcip__include-service__employee,
.entry-content .amelia-v2-booking #amelia-container .am-fcip__info-employee,
.entry-content .amelia-v2-booking #amelia-container .am-fcis__info-employee,
.entry-content .amelia-v2-booking #amelia-container .am-fs__pas-filter-employees {
	display: none !important;
}

/* Amelia's catalogue is a different interface from its step form. Allow the
 * service/package grid to expand with the page instead of creating its own
 * scrollable viewport. */
.entry-content .amelia-v2-booking #amelia-container .am-cat__content {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.entry-content .amelia-v2-booking #amelia-container .am-cat__wrapper {
	background: transparent !important;
}

.entry-content .amelia-v2-booking #amelia-container .am-fcil__main {
	max-width: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

/* When a catalogue card has both View Employees and Continue, remove only
 * the redundant employee button. A single Continue button is never hidden. */
.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__item-footer:has(> .am-button + .am-button)
	> .am-button:first-child {
	display: none !important;
}

.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__item-footer:has(> .am-button + .am-button) {
	justify-content: flex-end !important;
}

/* Make catalogue pricing immediately legible against the cream cards. */
.entry-content .amelia-v2-booking #amelia-container .am-fcil__item-price {
	background-color: var(--fd-navy) !important;
	color: var(--fd-white) !important;
}

/* Amelia uses separate price-pill classes in service cards, package cards and
 * package detail screens. Keep all customer-facing prices consistent. */
.entry-content .amelia-v2-booking #amelia-container span[class*="price"],
.entry-content .amelia-v2-booking #amelia-container .am-fcip__price,
.entry-content .amelia-v2-booking #amelia-container .am-fcip__package-price,
.entry-content .amelia-v2-booking #amelia-container .am-fs__package-price {
	background: var(--fd-navy) !important;
	border-color: var(--fd-navy) !important;
	border-radius: 3px !important;
	color: var(--fd-white) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 40px !important;
	padding: 0 1rem !important;
}

/* Give package prices breathing room between the package title and details. */
.entry-content .amelia-v2-booking #amelia-container .am-fcip__price,
.entry-content .amelia-v2-booking #amelia-container .am-fcip__package-price,
.entry-content .amelia-v2-booking #amelia-container .am-fs__package-price {
	margin: 0.65rem 0 0.9rem !important;
}

/* Give the longer, customer-friendly catalogue labels enough room. */
.entry-content .amelia-v2-booking #amelia-container .am-fcil__filter {
	align-items: center !important;
	box-sizing: border-box !important;
	display: grid !important;
	gap: 1rem !important;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important;
	max-width: none !important;
	width: 100% !important;
}

.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__filter-item:has(.am-input-wrapper) {
	box-sizing: border-box !important;
	max-width: none !important;
	min-width: 0 !important;
	width: 100% !important;
}

.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__filter-item:has(.am-fcil__filter-item__btn-wrapper) {
	box-sizing: border-box !important;
	max-width: none !important;
	min-width: 0 !important;
	width: 100% !important;
	}

.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__filter-item__btn-wrapper {
	display: grid !important;
	gap: 0.75rem !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	max-width: none !important;
	width: 100% !important;
}

.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__filter-item__btn.am-button {
	max-width: none !important;
	min-height: 40px !important;
	min-width: 0 !important;
	width: 100% !important;
}

.entry-content .amelia-v2-booking #amelia-container
	.am-fcil__filter-item__btn span {
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
}

.amelia-v2-booking [class*="heading"],
.amelia-v2-booking [class*="title"] {
	font-family: "Josefin Sans", Arial, Helvetica, sans-serif !important;
}

/* Amelia uses its own icon font. Never let the portal font override it. */
.amelia-v2-booking [class^="am-icon-"],
.amelia-v2-booking [class*=" am-icon-"] {
	font-family: "amelia-icons" !important;
	font-style: normal !important;
	font-weight: normal !important;
	text-transform: none !important;
}

.amelia-v2-booking .am-button {
	border-radius: 3px !important;
	font-weight: 600 !important;
	min-height: 40px !important;
	padding: 0 1rem !important;
	letter-spacing: 0.035em;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

/* Main booking choice cards. */
.fd-dance-choices {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1320px;
	width: 100%;
}

.fd-dance-choice {
	background: var(--fd-white);
	border: 1px solid rgba(28, 43, 61, 0.14);
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(28, 43, 61, 0.07);
	display: flex;
	flex-direction: column;
	padding: 2rem;
}

.fd-dance-choice h2 {
	color: var(--fd-navy);
	font-size: clamp(1.5rem, 2vw, 2rem);
	margin: 0 0 1rem;
}

.fd-dance-choice p {
	flex: 1;
	margin: 0 0 1.5rem;
}

.fd-choice-button {
	align-items: center;
	align-self: flex-start;
	background: var(--fd-navy);
	border: 1px solid var(--fd-navy);
	border-radius: 3px;
	color: var(--fd-white) !important;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	min-height: 40px;
	padding: 0 1.15rem;
	text-decoration: none;
}

.fd-choice-button:hover,
.fd-choice-button:focus {
	background: #263b53;
	border-color: #263b53;
	color: var(--fd-white) !important;
}

.fd-style-section {
	margin: 4rem auto 0;
	max-width: 1320px;
	width: 100%;
}

.fd-style-heading {
	margin-bottom: 1.5rem;
	max-width: 760px;
}

.fd-style-kicker {
	color: var(--fd-gold);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.fd-style-heading h2 {
	color: var(--fd-navy);
	font-size: clamp(2rem, 4vw, 3.2rem);
	margin: 0 0 0.75rem;
}

.fd-style-heading > p:last-child {
	margin: 0;
}

.fd-style-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fd-style-card {
	background: var(--fd-white);
	border: 1px solid rgba(28, 43, 61, 0.14);
	border-radius: 4px;
	border-top: 4px solid var(--fd-gold);
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}

.fd-style-card h3,
.fd-style-unsure h3 {
	color: var(--fd-navy);
	font-size: 1.35rem;
	margin: 0 0 0.75rem;
}

.fd-style-card p {
	flex: 1;
	margin: 0 0 1.5rem;
}

.fd-style-unsure {
	align-items: center;
	background: rgba(227, 186, 100, 0.13);
	border-left: 4px solid var(--fd-gold);
	border-radius: 4px;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-top: 1rem;
	padding: 1.5rem;
}

.fd-style-unsure h3,
.fd-style-unsure p {
	margin-bottom: 0.35rem;
}

.fd-style-unsure p {
	margin-top: 0;
}

/* Dedicated booking pages for each group dance style. */
.fd-group-class-page {
	margin: 0 auto;
	max-width: 1320px;
	width: 100%;
}

.fd-group-class-intro {
	background: rgba(227, 186, 100, 0.13);
	border-left: 4px solid var(--fd-gold);
	border-radius: 4px;
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
}

.fd-group-class-intro p:last-child {
	margin: 0;
}

.fd-style-event-list:not(.is-style-filtered) .am-els__wrapper > .am-ec {
	visibility: hidden;
}

.fd-style-event-list.is-style-filtered
	.am-els__wrapper > .am-ec[data-fd-style-match="false"] {
	display: none !important;
}

.fd-style-events-empty {
	background: var(--fd-white);
	border: 1px solid rgba(28, 43, 61, 0.15);
	border-left: 4px solid var(--fd-gold);
	border-radius: 4px;
	color: var(--fd-navy);
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
}

.fd-private-style-cta {
	align-items: center;
	background: rgba(227, 186, 100, 0.13);
	border-left: 4px solid var(--fd-gold);
	border-radius: 4px;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-top: 2rem;
	padding: 1.5rem;
}

.fd-private-style-cta h2,
.fd-private-style-cta p {
	margin-top: 0;
}

.fd-private-style-cta p:last-child {
	margin-bottom: 0;
}

.fd-private-style-selector {
	background: var(--fd-white);
	border: 1px solid rgba(28, 43, 61, 0.15);
	border-top: 4px solid var(--fd-gold);
	border-radius: 4px;
	margin: 0 auto 1.5rem;
	max-width: 1320px;
	padding: 1.5rem;
}

.fd-private-style-selector h2 {
	color: var(--fd-navy);
	margin: 0 0 0.75rem;
}

.fd-private-style-options {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 1.25rem;
}

.fd-private-style-option {
	background: var(--fd-navy) !important;
	border: 2px solid var(--fd-navy) !important;
	border-radius: 3px !important;
	color: var(--fd-white) !important;
	cursor: pointer;
	font-weight: 600;
	min-height: 48px;
	padding: 0.75rem 1rem;
}

.fd-private-style-option:hover,
.fd-private-style-option:focus,
.fd-private-style-option.is-selected {
	background: var(--fd-gold) !important;
	border-color: var(--fd-gold) !important;
	color: var(--fd-navy) !important;
}

.fd-private-style-status {
	color: var(--fd-navy);
	font-weight: 600;
	margin: 1rem 0 0;
}

.fd-private-style-selector:not(.is-style-selected) + .fd-private-booking-content {
	display: none;
}

.fd-private-style-selector.is-style-selected + .fd-private-booking-content {
	display: block;
}

@media (max-width: 980px) {
	.fd-private-style-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.fd-private-style-options {
		grid-template-columns: 1fr;
	}

	.fd-private-style-cta {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 1000px) {
	.fd-style-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Present every available customer action as part of one clear button system.
 * Disabled controls retain reduced opacity but never change to a new colour. */
.entry-content .amelia-v2-booking #amelia-container button.am-button,
.entry-content .amelia-v2-booking #amelia-container a.am-button,
.entry-content .amelia-v2-booking #amelia-container .am-fcil__filter-item__btn.am-button,
.entry-content .amelia-v2-booking #amelia-container .am-fcil__item-footer .am-button {
	background: var(--fd-navy) !important;
	border-color: var(--fd-navy) !important;
	color: var(--fd-white) !important;
}

.entry-content .amelia-v2-booking #amelia-container button.am-button:hover,
.entry-content .amelia-v2-booking #amelia-container a.am-button:hover,
.entry-content .amelia-v2-booking #amelia-container .am-fcil__filter-item__btn.am-button:hover,
.entry-content .amelia-v2-booking #amelia-container .am-fcil__item-footer .am-button:hover {
	background: #263b53 !important;
	border-color: #263b53 !important;
	color: var(--fd-white) !important;
}

.entry-content .amelia-v2-booking #amelia-container button.am-button:disabled,
.entry-content .amelia-v2-booking #amelia-container .am-button[disabled] {
	opacity: 0.5 !important;
}

/* Keep the couple and age rules clear without adding another customer choice. */
.entry-content .amelia-v2-booking .fd-couple-age-notice,
.entry-content .amelia-v2-booking .fd-couple-age-error {
	box-sizing: border-box;
	grid-column: 1 / -1;
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	width: 100%;
}

.entry-content .amelia-v2-booking .fd-couple-age-notice {
	background: rgba(231, 190, 99, 0.13);
	border-left: 4px solid var(--fd-gold);
	color: var(--fd-navy);
}

.entry-content .amelia-v2-booking .fd-couple-age-error {
	background: #fff1ef;
	border: 1px solid #c83f36;
	color: #8b211a;
	font-weight: 600;
}

.entry-content .amelia-v2-booking .fd-couple-age-error[hidden] {
	display: none !important;
}

.fd-age-date-disabled {
	cursor: not-allowed !important;
	opacity: 0.28 !important;
	pointer-events: auto !important;
}

[data-fd-age-nav-disabled="true"] {
	cursor: not-allowed !important;
	opacity: 0.28 !important;
}

/* Keep Amelia's retired age dropdown mounted long enough to select its safe
 * legacy value, without showing the obsolete question to customers. */
.fd-legacy-age-autofill {
	height: 1px !important;
	left: -10000px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	position: fixed !important;
	top: 0 !important;
	width: 1px !important;
}

/* Keep the back control visible even when Amelia changes its internal icon. */
.amelia-v2-booking .am-heading-prev {
	color: var(--fd-navy) !important;
	position: relative !important;
}

.amelia-v2-booking .am-heading-prev > *:not(.fd-back-arrow) {
	visibility: hidden !important;
}

.amelia-v2-booking .am-heading-prev .fd-back-arrow {
	align-items: center !important;
	color: var(--fd-navy) !important;
	display: flex !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 1.6rem !important;
	font-style: normal !important;
	font-weight: 600 !important;
	inset: 0 !important;
	justify-content: center !important;
	line-height: 1 !important;
	position: absolute !important;
	text-align: center !important;
	visibility: visible !important;
}

/* The theme and Amelia were both drawing the search field. Let Amelia's outer
 * wrapper own the border and leave the input itself visually clean. */
.entry-content .amelia-v2-booking #amelia-container .am-input-wrapper {
	background: var(--fd-white) !important;
	border: 1px solid rgba(28, 43, 61, 0.28) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
}

.entry-content .amelia-v2-booking #amelia-container .am-input-wrapper input,
.entry-content .amelia-v2-booking #amelia-container .am-input-wrapper input:focus {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}

.amelia-v2-booking .am-button.am-button--primary,
.amelia-v2-booking .am-button--filled.am-button--primary {
	background: var(--fd-navy) !important;
	border-color: var(--fd-navy) !important;
	color: var(--fd-white) !important;
}

.amelia-v2-booking .am-button--primary:hover {
	background: var(--fd-gold) !important;
	border-color: var(--fd-gold) !important;
	color: var(--fd-navy) !important;
	transform: translateY(-1px);
}

.amelia-v2-booking [class*="card"],
.amelia-v2-booking .am-collapse-item__heading {
	box-shadow: 0 10px 30px rgba(28, 43, 61, 0.07);
}

.amelia-v2-booking #amelia-container {
	border-radius: 4px;
}

/* Customer account guidance on Manage My Bookings. */
.fd-account-help-launcher {
	display: flex;
	justify-content: center;
	margin: 0 auto 1rem;
	max-width: 760px;
}

.fd-account-help-trigger {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--fd-gold-dark);
	cursor: pointer;
	font: 600 0.95rem/1.4 "Raleway", Arial, sans-serif;
	padding: 0.4rem 0.75rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.fd-account-help-trigger:hover,
.fd-account-help-trigger:focus-visible {
	color: var(--fd-navy);
}

.fd-account-help-overlay[hidden] {
	display: none !important;
}

.fd-account-help-overlay {
	align-items: center;
	background: rgba(13, 25, 39, 0.72);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1.5rem;
	position: fixed;
	z-index: 1000000;
}

.fd-account-help-dialog {
	background: var(--fd-cream);
	border-top: 4px solid var(--fd-gold);
	box-shadow: 0 28px 80px rgba(13, 25, 39, 0.28);
	color: var(--fd-navy);
	max-height: calc(100vh - 3rem);
	max-width: 620px;
	overflow-y: auto;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	position: relative;
	width: 100%;
}

.fd-account-help-dialog h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 2.5rem 0.75rem 0;
}

.fd-account-help-dialog p {
	margin: 0 0 1rem;
}

.fd-account-help-steps {
	margin: 1.25rem 0;
	padding-left: 1.35rem;
}

.fd-account-help-steps li {
	margin-bottom: 0.65rem;
	padding-left: 0.25rem;
}

.fd-account-help-note {
	background: rgba(227, 186, 100, 0.17);
	border-left: 3px solid var(--fd-gold);
	padding: 0.8rem 1rem;
}

.fd-account-help-close {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--fd-navy);
	cursor: pointer;
	font-size: 1.8rem;
	line-height: 1;
	padding: 0.5rem;
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
}

.fd-account-help-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.fd-account-help-action {
	align-items: center;
	border: 1px solid var(--fd-navy);
	border-radius: 3px;
	cursor: pointer;
	display: inline-flex;
	font: 600 0.88rem/1.3 "Raleway", Arial, sans-serif;
	justify-content: center;
	letter-spacing: 0.04em;
	min-height: 46px;
	padding: 0.75rem 1.15rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.fd-account-help-action--primary {
	background: var(--fd-navy);
	color: var(--fd-white);
}

.fd-account-help-action--secondary {
	background: transparent;
	color: var(--fd-navy);
}

.fd-account-help-action:hover,
.fd-account-help-action:focus-visible {
	background: var(--fd-gold);
	border-color: var(--fd-gold);
	color: var(--fd-navy);
}

body.fd-account-help-open {
	overflow: hidden;
}

/* Keep the portal comfortable on mobile. */
@media (max-width: 782px) {
	body {
		font-size: 15px;
	}

	.wp-site-blocks > header,
	header.wp-block-template-part {
		padding-inline: 1rem;
	}

	.wp-block-site-title > a {
		height: 64px;
		width: 245px;
	}

	.wp-site-blocks > main.wp-block-group {
		padding-block: 2rem 3rem !important;
	}

	.wp-block-post-title,
	.entry-title {
		font-size: clamp(2.25rem, 11vw, 3.1rem) !important;
		margin-bottom: 2rem !important;
	}

	.page-id-22 .amelia-v2-booking {
		margin-top: -1rem !important;
	}

	.entry-content .amelia-v2-booking {
		width: 100% !important;
	}

	.entry-content .amelia-v2-booking #amelia-container.am-fs__wrapper {
		margin-top: 0.5rem !important;
	}

	.entry-content .amelia-v2-booking #amelia-container .am-fcil__filter {
		align-items: stretch !important;
		gap: 0.75rem !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.entry-content .amelia-v2-booking #amelia-container
		.am-fcil__filter-item:has(.am-input-wrapper),
	.entry-content .amelia-v2-booking #amelia-container
		.am-fcil__filter-item:has(.am-fcil__filter-item__btn-wrapper) {
		width: 100% !important;
	}

	.entry-content .amelia-v2-booking #amelia-container
		.am-fcil__filter-item__btn-wrapper {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.fd-dance-choices {
		grid-template-columns: minmax(0, 1fr);
	}

	.fd-dance-choice {
		padding: 1.5rem;
	}

	.fd-style-section {
		margin-top: 2.5rem;
	}

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

	.fd-style-unsure {
		align-items: stretch;
		flex-direction: column;
		gap: 1rem;
	}

	.fd-style-unsure .fd-choice-button {
		align-self: stretch;
	}

	/* Amelia adds a funnel control for complex mobile filters. The simplified
	 * Fearless catalogue has no employee or location choice, so it is redundant. */
	.entry-content .amelia-v2-booking #amelia-container [class*="filter-mobile"],
	.entry-content .amelia-v2-booking #amelia-container button[class*="filter"][class*="mobile"] {
		display: none !important;
	}

	.fd-account-help-overlay {
		padding: 0.75rem;
	}

	.fd-account-help-dialog {
		max-height: calc(100vh - 1.5rem);
		padding: 1.5rem;
	}

	.fd-account-help-actions {
		flex-direction: column;
	}

	.fd-account-help-action {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

