/*
Theme Name: Create More Time
Theme URI: https://createmoretime.co.uk/
Author: Adam Preston
Description: Block theme for Create More Time, practical AI for your business.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: create-more-time
*/

/*
 * Only the rules theme.json cannot express live here.
 * Every colour, size and space comes from a theme.json token.
 */

:root {
	--cmt-rule: 2px solid var(--wp--preset--color--ink);
	--cmt-gutter: var(--wp--style--root--padding-right, clamp(16px, 4vw, 48px));
}

/* Sections sit flush against the header and footer rules, with no block gap */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Hover and focus */

a:hover,
.wp-block-button__link:hover,
.wp-block-navigation-item__content:hover {
	opacity: 0.8;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.is-style-dark :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.cmt-on-dark :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	outline: 3px solid var(--wp--preset--color--ink);
}

/* Buttons: at least 56px tall on desktop and 48px on mobile */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
}

@media (min-width: 782px) {
	.wp-block-button__link {
		min-height: 56px;
	}
}

/* The header "Book a call" button is smaller, but still a 44px target */
.cmt-header .wp-block-button__link {
	min-height: 44px;
}

/* Secondary button: a text link with a 2px underline */

/* Inline-block so wrapped text stays left-aligned with its arrow; 44px tall */
.wp-block-button.is-style-link .wp-block-button__link {
	display: inline-block;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 0;
	text-align: left;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Brand lockup (placeholder wordmark with the clock mark) */

.cmt-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.cmt-brand__mark {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
}

.cmt-brand__mark .cmt-clock__face {
	fill: var(--wp--preset--color--accent);
	stroke: none;
}

.cmt-brand__mark .cmt-clock__hands {
	stroke: var(--wp--preset--color--ink);
}

.cmt-brand__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cmt-brand__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.cmt-brand__descriptor {
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

@media (max-width: 380px) {
	.cmt-brand__name {
		font-size: 20px;
	}

	.cmt-brand__descriptor {
		font-size: 12px;
	}
}

/* Header and navigation */

.cmt-header .wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Core hides the open button on wide screens, so never set its display here */
.cmt-header .wp-block-navigation__responsive-container-open,
.cmt-header .wp-block-navigation__responsive-container-close {
	min-height: 44px;
	min-width: 44px;
	align-items: center;
	justify-content: center;
}

.cmt-header .wp-block-navigation__responsive-container-open svg,
.cmt-header .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

.cmt-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40) var(--cmt-gutter);
}

.cmt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.cmt-header .wp-block-button__link {
	white-space: nowrap;
}

/*
 * Small screens have no room for the logo, menu button and "Book a call"
 * together, so below the 600px menu breakpoint the call to action moves into
 * the menu overlay as a full primary button.
 */
.cmt-header .cmt-nav-cta {
	display: none;
}

/* Left-align the overlay menu (core reuses the desktop right alignment) */
.cmt-header .wp-block-navigation__responsive-container.is-menu-open,
.cmt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
}

.cmt-header .is-menu-open .cmt-nav-cta {
	display: flex;
	margin-top: var(--wp--preset--spacing--30);
}

.cmt-header .wp-block-navigation__responsive-container.is-menu-open .cmt-nav-cta .wp-block-navigation-item__content {
	min-height: 56px;
	padding: 0 28px;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	letter-spacing: 0;
}

@media (max-width: 599px) {
	.cmt-header .wp-block-buttons {
		display: none;
	}
}

/*
 * Core switches to the menu overlay at a fixed 600px, but the logo, five links
 * and the button only fit on one line from 1024px. Between the two, keep the
 * menu button and the "Book a call" button, and hide the inline links.
 */
@media (min-width: 600px) and (max-width: 1023px) {
	.cmt-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.cmt-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Ruled lists, used by archives and the footer */

.cmt-ruled > * {
	border-top: var(--cmt-rule);
}

.cmt-ruled {
	border-bottom: var(--cmt-rule);
}

.cmt-ruled .wp-block-post {
	margin: 0;
}

/* Footer */

.cmt-footer a {
	text-decoration: none;
}

.cmt-footer .wp-block-navigation-item__content,
.cmt-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.cmt-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Labels */

.cmt-label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Long words in very large headings must never overflow at 320px */

:where(h1, h2, .has-display-font-size, .has-xx-large-font-size) {
	overflow-wrap: break-word;
	hyphens: manual;
}

/* 404 page links */

.cmt-404-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cmt-404-links a {
	display: flex;
	align-items: center;
	min-height: 64px;
	text-decoration: none;
}

/* Search form: 48px targets to match the buttons */

.wp-block-search__input,
.wp-block-search__button {
	min-height: 48px;
}

.wp-block-search__input {
	padding: 0 12px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--base);
}

.wp-block-search__button {
	padding: 0 24px;
}

.wp-block-search__label {
	font-weight: 600;
}

/* =========================================================
   Patterns
   ========================================================= */

/*
 * Pattern containers lay out their children with CSS (flex or grid), so the
 * flow layout's automatic margins between children are switched off here.
 */
.wp-block-group.cmt-hero__body > *,
.wp-block-group.cmt-points > *,
.wp-block-group.cmt-row > *,
.wp-block-group.cmt-steps > *,
.wp-block-group.cmt-panels > *,
.wp-block-group.cmt-faq__item > *,
.wp-block-group.cmt-cta > * {
	margin-block: 0;
}

/* Accent rule, enforced: green text only ever appears on the dark band */

body .has-accent-color {
	color: var(--wp--preset--color--ink) !important;
}

body .is-style-dark .has-accent-color {
	color: var(--wp--preset--color--accent) !important;
}

/* Secondary text swaps to its dark-band version on the dark band */
body .is-style-dark .has-muted-color {
	color: var(--wp--preset--color--muted-on-dark) !important;
}

/* Shared pieces */

.cmt-number {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.cmt-lead {
	max-width: 560px;
	line-height: 1.5;
}

.cmt-pill {
	display: inline-block;
	padding: 2px 12px;
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.wp-block-buttons.cmt-buttons {
	column-gap: 28px;
	row-gap: 12px;
}

.cmt-arrow-link .wp-block-button__link::after {
	content: "\2192" / "";
	display: inline-block;
	margin-left: 0.4em;
}

/* Hero */

.wp-block-heading.cmt-hero__title {
	margin-block-end: var(--wp--preset--spacing--50);
	line-height: 1.05;
	letter-spacing: var(--wp--custom--tracking--display);
}

.cmt-hero__title mark {
	display: inline-block;
	margin: 0.04em 0;
	padding: 0 0.1em;
	color: var(--wp--preset--color--ink);
}

.cmt-hero__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.cmt-hero__text {
	flex: 1 1 420px;
	min-width: 0;
}

.cmt-hero__clock {
	flex: 0 1 320px;
	min-width: 200px;
}

.cmt-hero__clock .cmt-clock {
	display: block;
	width: 100%;
	height: auto;
}

.cmt-hero__clock .cmt-clock__face {
	fill: var(--wp--preset--color--accent);
	stroke: var(--wp--preset--color--ink);
}

.cmt-clock__ticks,
.cmt-clock__hand {
	stroke: var(--wp--preset--color--ink);
}

.cmt-clock__pin {
	fill: var(--wp--preset--color--ink);
}

/* Problem: three numbered points with a rule and an accent bar */

.cmt-points {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 0;
}

.cmt-point {
	flex: 1 1 280px;
	min-width: 0;
	padding: 0 28px;
	border-left: var(--cmt-rule);
}

.cmt-point::before {
	content: "";
	display: block;
	width: 40px;
	height: 8px;
	margin-bottom: 20px;
	background: var(--wp--preset--color--accent);
}

.cmt-point .wp-block-heading {
	margin-block-end: 4px;
}

/* Ruled rows: services list and FAQ */

.cmt-rows {
	border-bottom: var(--cmt-rule);
}

.cmt-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	padding: 32px 0;
	border-top: var(--cmt-rule);
}

.cmt-row__number {
	flex: 0 0 48px;
}

.cmt-row__title {
	flex: 1 1 260px;
	min-width: 0;
}

.cmt-row__title .wp-block-heading {
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.cmt-row__title a {
	text-decoration: none;
}

/* The whole row is the link's click area */
.cmt-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cmt-row__title a:focus-visible {
	outline: none;
}

.cmt-row__title a:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.cmt-row:has(a:hover) {
	opacity: 0.8;
}

.cmt-row__text {
	flex: 1 1 320px;
	min-width: 0;
}

.cmt-row::after {
	content: "\2192" / "";
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	border: var(--cmt-rule);
	border-radius: 50%;
	font-size: 24px;
}

.cmt-faq__item {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	padding: 28px 0;
	border-top: var(--cmt-rule);
}

.cmt-faq__item .wp-block-heading {
	flex: 1 1 320px;
	min-width: 0;
	font-size: 26px;
	line-height: 1.2;
}

.cmt-faq__item p {
	flex: 1 1 360px;
	min-width: 0;
}

/* Steps on the dark band */

.cmt-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 40px;
}

.cmt-step {
	flex: 1 1 260px;
	min-width: 0;
}

.cmt-numeral {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.02em;
}

/* Panels */

.cmt-panels {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.cmt-panels > * {
	flex: 1 1 420px;
	min-width: 0;
}

.cmt-panel {
	box-sizing: border-box;
	padding: clamp(24px, 3vw, 36px);
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--panel);
}

.cmt-panel--dashed {
	border-style: dashed;
}

.cmt-panel--accent {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

/* Text on green is always ink, whatever colour an editor picks */
body .cmt-panel--accent .has-text-color,
body .cmt-package--custom .has-text-color {
	color: var(--wp--preset--color--ink) !important;
}

.cmt-panel--large {
	padding: clamp(32px, 6vw, 72px);
	border-radius: var(--wp--custom--radius--panel-large);
}

.cmt-panel__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

/* Calculator teaser */

/* Capped so labels stay near their inputs when the panel fills the row */
.cmt-calc-teaser {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 520px;
}

.cmt-field--inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 16px;
	font-weight: 500;
}

.cmt-field input,
.cmt-form :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), select, textarea) {
	box-sizing: border-box;
	min-height: 44px;
	padding: 0 12px;
	border: var(--cmt-rule);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px;
}

.cmt-field input {
	flex: 0 0 88px;
	width: 88px;
}

.cmt-form :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), select, textarea) {
	width: 100%;
	min-height: 48px;
}

.cmt-form textarea {
	padding: 12px;
}

.cmt-form label {
	font-weight: 600;
}

.cmt-button,
.cmt-form :where(button, [type="submit"]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 24px;
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	cursor: pointer;
}

.cmt-button:hover,
.cmt-form :where(button, [type="submit"]):hover {
	opacity: 0.8;
}

.cmt-button--ink {
	align-self: flex-start;
	margin-top: 10px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* Call to action */

.cmt-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.cmt-cta__text {
	flex: 1 1 420px;
	min-width: 0;
}

/* Packages (rendered by the cmt/packages block) */

.cmt-packages {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	border-top: var(--cmt-rule);
}

.cmt-packages__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.cmt-packages__inner > .wp-block-heading {
	margin: 0 0 var(--wp--preset--spacing--55);
}

.cmt-packages__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 900px) {
	.cmt-packages__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cmt-package {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: clamp(24px, 3vw, 32px);
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--panel);
	overflow-wrap: break-word;
}

.cmt-package > * {
	margin: 0;
}

.cmt-package__name {
	font-size: var(--wp--preset--font-size--panel);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.cmt-package__outcome {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

.cmt-package__for,
.cmt-package__facts {
	font-size: var(--wp--preset--font-size--small);
}

.cmt-package__list {
	padding-left: 1.2em;
}

.cmt-package__facts {
	display: grid;
	gap: 8px;
}

.cmt-package__facts dt {
	font-weight: 600;
}

.cmt-package__facts dd {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.cmt-package__price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
	padding-top: 16px;
	border-top: var(--cmt-rule);
}

.cmt-package__amount {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--panel);
	font-weight: 800;
	line-height: 1.1;
}

.cmt-package__vat {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.cmt-package--custom {
	background: var(--wp--preset--color--accent);
}

.cmt-package--custom .cmt-package__button {
	margin-top: auto;
}

.cmt-packages__link {
	margin: var(--wp--preset--spacing--40) 0 0;
	font-weight: 600;
}

/* Administrator-only preview label for hidden packages */

.cmt-admin-preview__message {
	max-width: var(--wp--style--global--wide-size);
	margin: var(--wp--preset--spacing--30) auto;
	padding: 12px 16px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
}

.cmt-admin-preview__message a,
.cmt-admin-preview__message code {
	color: inherit;
}

/* Hours-saved calculator */

.cmt-calc {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.cmt-calc__fields {
	display: grid;
	gap: 14px;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
	border: 0;
}

.cmt-calc__fields legend {
	margin-bottom: 14px;
	padding: 0;
}

.cmt-calc .cmt-field {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
}

.cmt-calc .cmt-field label {
	flex: 1 1 240px;
	min-width: 0;
	font-size: 16px;
	font-weight: 600;
}

.cmt-calc .cmt-field input {
	flex: 0 0 96px;
	width: 96px;
}

.cmt-field__hint {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.cmt-calc .cmt-field--rate {
	padding-top: var(--wp--preset--spacing--30);
	border-top: var(--cmt-rule);
}

.cmt-calc__noscript {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.cmt-calc__result {
	display: block;
	padding: var(--wp--preset--spacing--30);
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--base);
}

.cmt-calc__result > * {
	margin: 0 0 8px;
}

.cmt-calc__result > :last-child {
	margin-bottom: 0;
}

.cmt-calc__headline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--panel);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.cmt-calc__caveat {
	font-size: var(--wp--preset--font-size--small);
}

.cmt-calc__assumptions {
	font-size: var(--wp--preset--font-size--small);
}

.cmt-calc__assumptions-title {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--base);
}

.cmt-calc__assumptions ul {
	margin: 0 0 8px;
	padding-left: 1.2em;
}

.cmt-calc__assumptions p {
	margin: 0 0 8px;
}

/* Fluent Forms, dressed in the site's own design */

.cmt-form .ff-el-group {
	margin-bottom: var(--wp--preset--spacing--30);
}

.cmt-form .ff-el-input--label label {
	font-size: 16px;
	font-weight: 600;
}

.cmt-form .ff-el-input--label.ff-el-is-required label::after {
	color: var(--wp--preset--color--ink);
}

.cmt-form .ff-el-help-message {
	margin-top: 4px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.cmt-form .ff-el-form-control {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: var(--cmt-rule);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
}

.cmt-form textarea.ff-el-form-control {
	min-height: 120px;
}

.cmt-form .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--ink);
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
	box-shadow: none;
}

/* Radio and checkbox options */

.cmt-form .ff-el-form-check {
	margin-bottom: 8px;
}

.cmt-form .ff-el-form-check-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	font-size: 16px;
	line-height: 1.5;
}

.cmt-form .ff-el-form-check input[type="radio"],
.cmt-form .ff-el-form-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	accent-color: var(--wp--preset--color--ink);
}

/* Submit button: the site's primary button, not the plugin's blue one */

.cmt-form .ff-btn,
.cmt-form .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	background-image: none;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	box-shadow: none;
}

.cmt-form .ff-btn:hover,
.cmt-form .ff-btn-submit:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	opacity: 0.8;
}

.cmt-form .ff-btn:focus-visible,
.cmt-form .ff-btn-submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* Messages */

.cmt-form .ff-el-is-error .ff-el-form-control {
	border-color: var(--wp--preset--color--ink);
}

.cmt-form .error,
.cmt-form .text-danger,
.cmt-form .ff-el-is-error .error-text {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.cmt-form .ff-message-success {
	padding: var(--wp--preset--spacing--30);
	border: var(--cmt-rule);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* Cookie consent banner */

.cmt-consent {
	position: fixed;
	z-index: 1000;
	right: 0;
	bottom: 0;
	left: 0;
	border-top: var(--cmt-rule);
	background: var(--wp--preset--color--base);
}

.cmt-consent[hidden] {
	display: none;
}

.cmt-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--gutter);
}

.cmt-consent__text {
	flex: 1 1 420px;
	min-width: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

/* Accepting and refusing are the same size and weight, side by side, which
   is what the PECR rules on equal prominence require. */
.cmt-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cmt-consent .cmt-button {
	flex: 0 0 auto;
	min-width: 150px;
}

.cmt-button--plain {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

@media (max-width: 480px) {
	.cmt-consent__actions {
		width: 100%;
	}

	.cmt-consent .cmt-button {
		flex: 1 1 140px;
	}
}

/* Contact details */

.cmt-contact-details > * {
	margin: 0 0 var(--wp--preset--spacing--20);
}

.cmt-contact-details > :last-child {
	margin-bottom: 0;
}

.cmt-contact-details__lines {
	font-style: normal;
	line-height: 1.5;
}

.cmt-contact-details__booking {
	font-weight: 600;
}

/* Tables, used by the cookie policy */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table th,
.wp-block-table td {
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--ink);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	border-bottom-width: 2px;
	font-weight: 600;
}

.wp-block-table code {
	font-size: 0.95em;
	overflow-wrap: anywhere;
}

/*
 * A wide table on a narrow screen.
 *
 * The table scrolls sideways inside its own box rather than pushing the page
 * sideways, which would break every other section. The scrolling box is
 * focusable and labelled so it can be reached and read with a keyboard or a
 * screen reader, which a plain overflow container cannot.
 */
.wp-block-table.cmt-table-scroll {
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table.cmt-table-scroll:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.wp-block-table.cmt-table-scroll table {
	min-width: 680px;
}

@media (max-width: 782px) {
	.wp-block-table.cmt-table-scroll th,
	.wp-block-table.cmt-table-scroll td {
		padding: 8px 10px;
	}
}
