/*
	Theme Name: Hello Elementor Child — Associated Air Services
	Theme URI: http://associatedair.test
	Description: Child theme of Hello Elementor for the Associated Air Services site.
	Author: Vooba
	Author URI: https://vooba.co.uk
	Template: hello-elementor
	Version: 1.0.0
	Requires at least: 6.0
	Requires PHP: 7.4
	Text Domain: hello-elementor-child
*/

/* Font fallbacks (2026-11-16): the kit defines --font-sans: Geist and
   --font-mono: Geist Mono with no generic family, so a blocked web font fell
   back to the browser default (Times). html:root outranks the kit's :root
   (post-7.css loads later); the Elementor variables themselves are unchanged. */
html:root {
	--font-sans: Geist, sans-serif;
	--font-mono: "Geist Mono", monospace;
}

/* Online Portal (418): logged out, hide Courier Navigator's menu and show the login panel. */
.portal-logged-out #courier-navigator-body {
	display: none !important;
}

body:not(.portal-logged-out) .portal-login-prompt {
	display: none !important;
}

/* ==========================================================================
   Online Portal (418) — Courier Navigator in the AAS system.
   Navigator's markup (Coda) + Bootstrap 3; navigator.css loads after this
   file, so selectors are anchored on body + Navigator's ids.
   ========================================================================== */

/* --- Login pop-up --------------------------------------------------------- */

body .modal-backdrop.in {
	background-color: var(--midnight);
	opacity: 0.8;
}

body #loginDialog-modal {
	font-family: var(--font-sans);
	color: var(--ink);
}

body #loginDialog-modal .modal-dialog {
	width: auto;
	max-width: 480px;
	margin: 96px auto;
	padding: 0 24px;
}

body #loginDialog-modal .modal-content {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--paper);
	box-shadow: 0 24px 64px color-mix(in srgb, var(--midnight) 30%, transparent);
}

body #loginDialog-modal .modal-header,
body #loginDialog-modal .modal-footer {
	display: none;
}

body #loginDialog-modal .container-fluid,
body #loginDialog-modal .row {
	margin: 0;
	padding: 0;
}

body #loginDialog-modal #loginDialog {
	float: none;
	width: 100%;
	padding: 40px;
	border-radius: 0 !important;
	background: transparent;
}

/* Close button: Navigator puts it in an empty right-hand panel. */
body #loginDialog-modal .login-modal-right {
	display: block !important;
	position: absolute;
	top: 16px;
	right: 16px;
	float: none;
	width: auto;
	min-height: 0;
	padding: 0;
	background: none;
}

body #loginDialog-modal .btn-close,
body #loginDialog-modal .close {
	float: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 36px;
	text-shadow: none;
	opacity: 1;
	transition: all 150ms;
}

body #loginDialog-modal .btn-close:hover,
body #loginDialog-modal .btn-close:focus-visible,
body #loginDialog-modal .close:hover,
body #loginDialog-modal .close:focus-visible {
	background: var(--surface-strong);
	color: var(--ink);
	opacity: 1;
}

body #loginDialog-modal .loginWelcome {
	margin: 0 48px 24px 0;
	color: var(--ink);
	font-size: var(--text-lg);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

body #loginDialog-modal form {
	margin: 0;
}

body #loginDialog-modal .login-modal-user-label {
	display: block;
	margin: 16px 0 6px;
	color: var(--ink);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 16px;
	text-transform: uppercase;
}

body #loginDialog-modal .login-modal-user-label:first-of-type {
	margin-top: 0;
}

body #loginDialog-modal .form-control {
	width: 100%;
	height: auto;
	padding: 12px 16px;
	border: 1px solid var(--ink-muted);
	border-radius: var(--radius-input);
	background: var(--paper);
	box-shadow: none;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 20px;
}

body #loginDialog-modal .form-control::placeholder {
	color: var(--ink-muted);
}

body #loginDialog-modal .form-control:focus {
	border-color: transparent;
	outline: 2px solid var(--cta);
	outline-offset: 0;
	box-shadow: none;
}

body #loginDialog-modal .termsholder {
	margin: 20px 0 24px;
}

body #loginDialog-modal .termsholder .checkbox {
	margin: 0;
}

body #loginDialog-modal .termsholder label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	color: var(--ink-muted);
	font-size: var(--text-sm);
	font-weight: 400;
	line-height: 20px;
}

body #loginDialog-modal .termsholder input[type="checkbox"] {
	position: static;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--cta);
}

body #loginDialog-modal .btn-primary {
	width: 100%;
	padding: 14px 28px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--cta);
	color: var(--paper);
	font-family: var(--font-sans);
	font-size: var(--text-button);
	font-weight: 600;
	line-height: 1.5;
	transition: all 150ms;
}

body #loginDialog-modal .btn-primary:hover,
body #loginDialog-modal .btn-primary:focus-visible {
	background: var(--cta-hover);
	color: var(--paper);
}

body #loginDialog-modal .forgotten-button-link {
	display: inline-block;
	margin-top: 16px;
	color: var(--link);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
}

body #loginDialog-modal .forgotten-button-link:hover,
body #loginDialog-modal .forgotten-button-link:focus-visible {
	color: var(--cta-hover);
	text-decoration: underline;
}

@media (max-width: 767px) {
	body #loginDialog-modal .modal-dialog {
		margin: 64px auto;
		padding: 0 16px;
	}

	body #loginDialog-modal #loginDialog {
		padding: 32px 24px 24px;
	}
}

/* --- Portal body (tracking and other screens) ----------------------------- */

body #courier-navigator-body {
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
}

body #courier-navigator-body .row {
	margin: 0;
}

body #courier-navigator-body .btn-breadcrumb {
	display: inline-flex;
	float: none;
	margin: 0 0 24px;
	padding: 0;
}

body #courier-navigator-body .btn-breadcrumb .btn {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--paper);
	color: var(--ink-muted);
	font-family: var(--font-sans);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 16px;
	transition: all 150ms;
}

body #courier-navigator-body .btn-breadcrumb .btn + .btn {
	margin-left: -1px;
}

body #courier-navigator-body .btn-breadcrumb .btn:first-child {
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

body #courier-navigator-body .btn-breadcrumb .btn:last-child {
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
	background: var(--surface);
	color: var(--ink);
}

body #courier-navigator-body .btn-breadcrumb .btn:hover,
body #courier-navigator-body .btn-breadcrumb .btn:focus-visible {
	background: var(--surface);
	color: var(--cta);
}

body #courier-navigator-body .table-responsive {
	overflow: visible;
	border: 0;
}

body #courier-navigator-body form.form-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

body #courier-navigator-body #trackingContainer {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 6px;
	max-width: 480px;
	margin: 0;
}

body #courier-navigator-body #trackingContainer label {
	margin: 0;
	color: var(--ink);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 16px;
	text-transform: uppercase;
}

body #courier-navigator-body .form-control {
	width: 100%;
	height: auto;
	padding: 12px 16px;
	border: 1px solid var(--ink-muted);
	border-radius: var(--radius-input);
	background: var(--paper);
	box-shadow: none;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 20px;
}

body #courier-navigator-body .form-control:focus {
	border-color: transparent;
	outline: 2px solid var(--cta);
	outline-offset: 0;
	box-shadow: none;
}

body #courier-navigator-body form .btn-primary {
	margin: 0;
}

/* Job search (?method=search): Quick Search sits under the Consignment Number input. */
body #courier-navigator-body #navigator-search-form #qbutton {
	margin-top: 12px;
}

body #courier-navigator-body #trackingResults:not(:empty) {
	margin-top: 32px;
}

/* Login pop-up: centred in the viewport (auto margins keep a tall pop-up scrollable). */
body #loginDialog-modal.in {
	display: flex !important;
}

body #loginDialog-modal .modal-dialog {
	width: 100%;
	margin: auto;
	padding: 24px;
}

@media (max-width: 767px) {
	body #loginDialog-modal .modal-dialog {
		margin: auto;
		padding: 16px;
	}
}

/* --- Other Navigator dialogs (Forgotten Password and the rest) ------------ */
/* Same card, header and close button as the login pop-up; centred. */

body .navigator-modal.in {
	display: flex !important;
}

body .navigator-modal:not(#loginDialog-modal) {
	font-family: var(--font-sans);
	color: var(--ink);
}

body .navigator-modal:not(#loginDialog-modal) .modal-dialog {
	margin: auto;
	padding: 24px;
}

body .navigator-modal:not(#loginDialog-modal) .modal-content {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--paper);
	box-shadow: 0 24px 64px color-mix(in srgb, var(--midnight) 30%, transparent);
}

body .navigator-modal:not(#loginDialog-modal) .modal-header {
	padding: 40px 88px 0 40px;
	border: 0;
	background: var(--paper);
	color: var(--ink);
}

body .navigator-modal:not(#loginDialog-modal) .modal-title {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-lg);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

body .navigator-modal:not(#loginDialog-modal) .modal-header .close,
body .navigator-modal:not(#loginDialog-modal) .modal-header .btn-close {
	position: absolute;
	top: 16px;
	right: 16px;
	float: none;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 36px;
	text-shadow: none;
	opacity: 1;
	transition: all 150ms;
}

body .navigator-modal:not(#loginDialog-modal) .modal-header .close:hover,
body .navigator-modal:not(#loginDialog-modal) .modal-header .close:focus-visible {
	background: var(--surface-strong);
	color: var(--ink);
	opacity: 1;
}

body .navigator-modal:not(#loginDialog-modal) .modal-body {
	padding: 16px 40px 40px;
	color: var(--ink-muted);
	font-size: var(--text-sm);
	line-height: 20px;
}

body .navigator-modal:not(#loginDialog-modal) .modal-footer:empty {
	display: none;
}

body .navigator-modal:not(#loginDialog-modal) .form-control {
	width: 100%;
	height: auto;
	padding: 12px 16px;
	border: 1px solid var(--ink-muted);
	border-radius: var(--radius-input);
	background: var(--paper);
	box-shadow: none;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 20px;
}

body .navigator-modal:not(#loginDialog-modal) .form-control::placeholder {
	color: var(--ink-muted);
}

body .navigator-modal:not(#loginDialog-modal) .form-control:focus {
	border-color: transparent;
	outline: 2px solid var(--cta);
	outline-offset: 0;
	box-shadow: none;
}

body .navigator-modal:not(#loginDialog-modal) .btn-primary {
	padding: 14px 28px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--cta);
	color: var(--paper);
	font-family: var(--font-sans);
	font-size: var(--text-button);
	font-weight: 600;
	line-height: 1.5;
	transition: all 150ms;
}

body .navigator-modal:not(#loginDialog-modal) .btn-primary:hover,
body .navigator-modal:not(#loginDialog-modal) .btn-primary:focus-visible {
	background: var(--cta-hover);
	color: var(--paper);
}

/* Forgotten Password: same width and form rhythm as the login pop-up. */
body #passwordDialog-modal .modal-dialog {
	width: 100%;
	max-width: 480px;
}

body #passwordDialog-modal #passwordForm {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}

body #passwordDialog-modal #passwordForm input {
	position: static;
	margin: 0;
}

body #passwordDialog-modal #passwordForm .btn-primary {
	width: 100%;
}

@media (max-width: 767px) {
	body .navigator-modal:not(#loginDialog-modal) .modal-dialog {
		padding: 16px;
	}

	body .navigator-modal:not(#loginDialog-modal) .modal-header {
		padding: 32px 72px 0 24px;
	}

	body .navigator-modal:not(#loginDialog-modal) .modal-body {
		padding: 16px 24px 24px;
	}
}

/* --- Navigator messages: errors and success (v1.0.5) ---------------------- */
/* Form errors: Navigator prepends div.input-invalid-text.bg-danger to the form.
   Field errors: span.input-invalid-text after the field. Info / success: the
   #messageDialog pop-up. Tokens danger-700 6.05:1 on danger-50; green-700
   4.98:1 on green-50. */

body .navigator-modal div.input-invalid-text,
body #courier-navigator-body div.input-invalid-text {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	float: none;
	width: auto;
	min-height: 0;
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid color-mix(in srgb, var(--danger-700) 24%, transparent);
	border-radius: var(--radius-input);
	background: var(--danger-50) !important;
	color: var(--danger-700) !important;
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 20px;
}

body .navigator-modal div.input-invalid-text::before,
body #courier-navigator-body div.input-invalid-text::before {
	content: "!";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-pill);
	background: var(--danger-700);
	color: var(--paper);
	font-size: var(--text-xs);
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

body #passwordDialog-modal #passwordForm div.input-invalid-text {
	margin: 0;
}

body .navigator-modal span.input-invalid-text,
body .navigator-modal .invalid-text,
body #courier-navigator-body span.input-invalid-text,
body #courier-navigator-body .invalid-text {
	display: block;
	margin: 6px 0 0;
	color: var(--danger-700) !important;
	font-family: var(--font-sans);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 16px;
}

body .navigator-modal .form-control:has(+ span.input-invalid-text),
body #courier-navigator-body .form-control:has(+ span.input-invalid-text),
body #courier-navigator-body .input-invalid .form-control {
	border-color: var(--danger-700);
}

/* Info / success pop-up. */
body #messageDialog-modal .modal-dialog {
	width: 100%;
	max-width: 480px;
}

body #messageDialog-modal.navigator-modal .modal-body {
	color: var(--ink);
}

/* Bootstrap state colours inside the portal screens. */
/* body #courier-navigator-body .bg-success {
	border-radius: var(--radius-input);
	background: var(--green-50) !important;
} */

body #courier-navigator-body .text-success {
	color: var(--green-700) !important;
}

body #courier-navigator-body .bg-danger {
	border-radius: var(--radius-input);
	background: var(--danger-50) !important;
}

body #courier-navigator-body .text-danger {
	color: var(--danger-700) !important;
}

/* Tracking timeline (?method=tracking): event time circles and date header
   bars solid Green 700 with white text (client request 2026-11-16; Green 700
   rather than AAS Green so white text passes AA). */
body #courier-navigator-body .timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-success {
	background-color: var(--green-700);
	color: #fff;
}

body #courier-navigator-body .timeline-centered .timeline-entry .timeline-entry-inner > div.timeline-date-label {
	background: var(--green-700);
}

body #courier-navigator-body .timeline-centered .timeline-entry .timeline-entry-inner > div.timeline-date-label:after {
	border-color: transparent var(--green-700) transparent transparent;
}

/* Online help pop-up (span#help_prompt): Navigator appends it to <body> on
   field focus with inline styles (yellow, 1px black, 150px wide), so each
   property needs !important. left/top stay Navigator's. Matches the portal
   inputs: paper, --line border, --radius-input, Geist (client request 2026-11-16). */
body > #help_prompt {
	width: auto !important;
	max-width: 320px;
	padding: 12px 16px !important;
	border: 1px solid var(--line) !important;
	border-left: 3px solid var(--aas-blue) !important;
	border-radius: var(--radius-input);
	background: var(--paper) !important;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--midnight) 12%, transparent);
	color: var(--ink-muted) !important;
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 20px;
	opacity: 1 !important;
}

@media (max-width: 767px) {
	body > #help_prompt {
		max-width: 240px;
	}
}

/* Password set-up / change form (#passwordsetupdiv, built by Navigator's
   user.jquery.js): drop the label column's left padding so New / Verify
   Password line up with the intro sentence and Save Password (2026-11-16). */
body #passwordsetupdiv > .row > [class*="col-"]:first-child {
	padding-left: 0;
}

/* ==========================================================================
   Contact Form 7 — AAS forms: New Customer Enquiry (435, Become a Customer
   53), General Enquiry (436) and Request a Quote (437) on Contact 52.
   Shortcodes carry html_class="aas-cf7". Mirrors the V4 form classes
   form-field / form-label / form-input; tokens only. Selectors start with
   .elementor-kit-7 so they outrank the kit's Form Fields rules (post-7.css,
   which loads after this file).
   ========================================================================== */

.elementor-kit-7 .wpcf7 form.aas-cf7 {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-sans);
}

.elementor-kit-7 .aas-cf7 .aas-cf7-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-full {
	grid-column: 1 / -1;
}

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

.elementor-kit-7 .aas-cf7 .aas-cf7-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-field > label {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 16px;
	text-transform: uppercase;
}

.elementor-kit-7 .aas-cf7 .wpcf7-form-control-wrap {
	display: block;
}

.elementor-kit-7 .aas-cf7 input.wpcf7-text,
.elementor-kit-7 .aas-cf7 select.wpcf7-select,
.elementor-kit-7 .aas-cf7 textarea.wpcf7-textarea {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--ink-muted);
	border-radius: var(--radius-input);
	background-color: var(--paper);
	box-shadow: none;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 400;
	line-height: 20px;
	transition: all 150ms;
}

.elementor-kit-7 .aas-cf7 select.wpcf7-select {
	appearance: auto;
	cursor: pointer;
}

.elementor-kit-7 .aas-cf7 textarea.wpcf7-textarea {
	resize: none;
}

.elementor-kit-7 .aas-cf7 input.wpcf7-text::placeholder,
.elementor-kit-7 .aas-cf7 textarea.wpcf7-textarea::placeholder {
	color: var(--ink-muted);
	opacity: 1;
}

.elementor-kit-7 .aas-cf7 .wpcf7-form-control-wrap input.wpcf7-text:focus,
.elementor-kit-7 .aas-cf7 .wpcf7-form-control-wrap select.wpcf7-select:focus,
.elementor-kit-7 .aas-cf7 .wpcf7-form-control-wrap textarea.wpcf7-textarea:focus {
	border-color: transparent;
	outline: 2px solid var(--cta);
	outline-offset: 0;
	box-shadow: none;
}

/* --- Validation ----------------------------------------------------------- */

.elementor-kit-7 .wpcf7 .aas-cf7 .wpcf7-form-control-wrap input.wpcf7-not-valid,
.elementor-kit-7 .wpcf7 .aas-cf7 .wpcf7-form-control-wrap select.wpcf7-not-valid,
.elementor-kit-7 .wpcf7 .aas-cf7 .wpcf7-form-control-wrap textarea.wpcf7-not-valid {
	border-color: var(--danger-700);
}

.elementor-kit-7 .aas-cf7 .wpcf7-not-valid-tip {
	display: block;
	margin: 6px 0 0;
	color: var(--danger-700);
	font-family: var(--font-sans);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 16px;
}

/* --- Consent checkbox ----------------------------------------------------- */

.elementor-kit-7 .aas-cf7 .aas-cf7-consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	color: var(--ink-muted);
	font-size: var(--text-sm);
	font-weight: 400;
	line-height: 20px;
	cursor: pointer;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent input[type="checkbox"] {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	padding: 0;
	border: 1px solid var(--ink-muted);
	border-radius: 4px;
	background-color: var(--paper);
	appearance: none;
	cursor: pointer;
	transition: all 150ms;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent input[type="checkbox"]::before {
	content: "";
	width: 65%;
	height: 65%;
	background-color: var(--paper);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	opacity: 0;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent input[type="checkbox"]:checked {
	border-color: var(--cta);
	background-color: var(--cta);
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent input[type="checkbox"]:checked::before {
	opacity: 1;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--cta);
	outline-offset: 2px;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-consent .wpcf7-not-valid-tip {
	margin-left: 28px;
}

/* --- Footer + submit ------------------------------------------------------ */

.elementor-kit-7 .aas-cf7 .aas-cf7-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-footer--end {
	justify-content: flex-end;
	margin-top: 4px;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-note {
	margin: 0;
	color: var(--ink-muted);
	font-size: var(--text-xs);
	line-height: 1.33;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-submit {
	position: relative;
	display: inline-flex;
}

.elementor-kit-7 .aas-cf7 .wpcf7-submit {
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	width: auto;
	margin: 0;
	padding: 14px 28px;
	border: 0;
	border-radius: var(--radius-pill);
	background-color: var(--cta);
	color: var(--paper);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	font-weight: 600;
	line-height: 1.5;
	text-transform: none;
	cursor: pointer;
	transition: all 150ms;
}

.elementor-kit-7 .aas-cf7 .wpcf7-submit:hover,
.elementor-kit-7 .aas-cf7 .wpcf7-submit:focus-visible {
	background-color: var(--cta-hover);
	color: var(--paper);
}

.elementor-kit-7 .aas-cf7 .wpcf7-submit:disabled {
	cursor: wait;
}

.elementor-kit-7 .aas-cf7 button.wpcf7-submit::after {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url(/wp-content/uploads/2026/10/icon-send.svg) center / contain no-repeat;
	mask: url(/wp-content/uploads/2026/10/icon-send.svg) center / contain no-repeat;
}

/* Become a Customer: wider button, 15px icon (as the V4 form). */
.elementor-kit-7 .aas-cf7 .aas-cf7-footer:not(.aas-cf7-footer--end) .wpcf7-submit {
	padding-inline: 32px;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-footer:not(.aas-cf7-footer--end) button.wpcf7-submit::after {
	width: 15px;
	height: 15px;
}

/* Spinner sits to the left of the button so the layout doesn't shift. */
.elementor-kit-7 .aas-cf7 .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 100%;
	margin: -12px 12px 0 0;
	background-color: var(--ink-muted);
}

/* --- Response message ----------------------------------------------------- */

.elementor-kit-7 .wpcf7 form.aas-cf7 .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border: 0;
	border-radius: var(--radius-input);
	background-color: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 20px;
}

.elementor-kit-7 .wpcf7 form.aas-cf7.failed .wpcf7-response-output,
.elementor-kit-7 .wpcf7 form.aas-cf7.aborted .wpcf7-response-output {
	background-color: var(--surface-strong);
}

.elementor-kit-7 .wpcf7 form.aas-cf7.invalid .wpcf7-response-output,
.elementor-kit-7 .wpcf7 form.aas-cf7.unaccepted .wpcf7-response-output,
.elementor-kit-7 .wpcf7 form.aas-cf7.spam .wpcf7-response-output {
	border: 1px solid color-mix(in srgb, var(--danger-700) 24%, transparent);
	background-color: var(--danger-50);
	color: var(--danger-700);
	font-weight: 500;
}

/* --- Become a Customer (435): groups, 3-up rows, radios, add-contact panels --- */

.elementor-kit-7 .aas-cf7 .aas-cf7-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.elementor-kit-7 .aas-cf7 fieldset.aas-cf7-group,
.elementor-kit-7 .aas-cf7 fieldset.aas-cf7-radios {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.elementor-kit-7 .aas-cf7 fieldset.aas-cf7-group {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more fieldset.aas-cf7-group {
	padding-top: 16px;
	border-top: 0;
}

.elementor-kit-7 .aas-cf7 fieldset.aas-cf7-group > legend,
.elementor-kit-7 .aas-cf7 .aas-cf7-section {
	float: left;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	font-weight: 600;
	line-height: 1.5;
}

.elementor-kit-7 .aas-cf7 fieldset.aas-cf7-group > legend + * {
	clear: both;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-intro {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.elementor-kit-7 .aas-cf7 .aas-cf7-intro .aas-cf7-section {
	float: none;
	margin-bottom: 4px;
}

/* Radios */
.elementor-kit-7 .aas-cf7 .aas-cf7-radios > legend {
	margin: 0 0 8px;
	padding: 0;
	color: var(--ink);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 16px;
	text-transform: uppercase;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio .wpcf7-list-item {
	margin: 0;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio label {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	color: var(--ink);
	font-size: var(--text-sm);
	line-height: 20px;
	cursor: pointer;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio input[type="radio"] {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ink-muted);
	border-radius: 50%;
	background-color: var(--paper);
	appearance: none;
	cursor: pointer;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio input[type="radio"]::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--cta);
	opacity: 0;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio input[type="radio"]:checked {
	border-color: var(--cta);
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio input[type="radio"]:checked::before {
	opacity: 1;
}

.elementor-kit-7 .aas-cf7 .wpcf7-radio input[type="radio"]:focus-visible {
	outline: 2px solid var(--cta);
	outline-offset: 2px;
}

/* Add-contact panels (native <details>, no JS) */
.elementor-kit-7 .aas-cf7 .aas-cf7-more {
	border: 1px solid var(--line);
	border-radius: var(--radius-input);
	background-color: var(--paper);
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	color: var(--ink);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 20px;
	list-style: none;
	cursor: pointer;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more > summary::-webkit-details-marker {
	display: none;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more > summary::after {
	content: "+";
	color: var(--cta);
	font-size: var(--text-lg);
	font-weight: 400;
	line-height: 1;
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more[open] > summary::after {
	content: "\2212";
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more > summary:focus-visible {
	outline: 2px solid var(--cta);
	outline-offset: 2px;
	border-radius: var(--radius-input);
}

.elementor-kit-7 .aas-cf7 .aas-cf7-more[open] > fieldset {
	padding: 0 16px 16px;
}

/* Labels in 3-up rows reserve two lines so the inputs line up when one wraps. */
@media (min-width: 1025px) {
	.elementor-kit-7 .aas-cf7 .aas-cf7-grid--3 > .aas-cf7-field > label {
		display: flex;
		align-items: flex-end;
		min-height: 32px;
	}
}

@media (max-width: 1024px) {
	.elementor-kit-7 .aas-cf7 .aas-cf7-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.elementor-kit-7 .aas-cf7 .aas-cf7-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.elementor-kit-7 .aas-cf7 .aas-cf7-footer:not(.aas-cf7-footer--end) {
		flex-direction: column;
		align-items: stretch;
	}

	.elementor-kit-7 .aas-cf7 .aas-cf7-footer:not(.aas-cf7-footer--end) .aas-cf7-submit,
	.elementor-kit-7 .aas-cf7 .aas-cf7-footer:not(.aas-cf7-footer--end) .wpcf7-submit {
		width: 100%;
	}
}


/* ==========================================================================
   Online Portal (418) — booking form spacing (v1.0.11, 2026-11-13)
   ========================================================================== */

/* --- Booking screen (?method=booking): spacing between blocks and buttons --- */
/* Navigator renders Bootstrap 3 buttons and panels with no margins, and its
   scripts add more (Channels, Customs Information, Saved Box, Create a New Box
   Type) floated or stacked against fields. Give them room and line them up. */

/* Channels button: floated right beside the breadcrumb, with a gap below. */
body #courier-navigator-body #channel-button {
	float: right;
	margin: 0 0 24px 16px;
	padding: 0;
}

body #courier-navigator-body #channel-button .btn {
	margin: 0;
}

/* Account selector panel: clear the Channels float, gap below. */
body #courier-navigator-body #accountselector {
	clear: both;
}

body #courier-navigator-body #accountselector .panel {
	margin: 0 0 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius-input);
	box-shadow: none;
	overflow: hidden;
}

body #courier-navigator-body #accountselector .panel-heading {
	padding: 12px 16px;
	border-color: var(--line);
	background: var(--surface);
	color: var(--ink);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 16px;
	text-transform: uppercase;
}

body #courier-navigator-body #accountselector .panel-body {
	padding: 16px;
}

/* Fields: steady rhythm. */
body #courier-navigator-body #NavForm .form-group {
	margin-bottom: 20px;
}

/* Section headings: room above, and a heading that carries a button
   (Delivery Address + Address Book) lays out as a row instead of floating
   the button down over the first field. */
body #courier-navigator-body #NavForm .h3 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	margin: 40px 0 16px;
}

body #courier-navigator-body #NavForm .h3 > .btn,
body #courier-navigator-body #NavForm .h3 > .pull-right {
	float: none !important;
	flex: 0 0 auto;
	margin: 0;
}

/* Buttons inside the form: never touching each other or a field. */
body #courier-navigator-body #NavForm .btn {
	margin: 0 12px 12px 0;
	white-space: normal;
}

body #courier-navigator-body #NavForm .form-group + .btn,
body #courier-navigator-body #NavForm .form-group + p > .btn,
body #courier-navigator-body #NavForm .form-group + div > .btn:first-child {
	margin-top: 4px;
}

/* Saved Box / Create a New Box Type / dimensions toggle. */
body #courier-navigator-body #NavForm .createsaveboxes {
	margin: 4px 0 12px 12px;
}

body #courier-navigator-body #NavForm #dimensions {
	clear: both;
	padding-top: 4px;
}

body #courier-navigator-body #NavForm #dimensions > p {
	margin: 0 0 16px;
}

body #courier-navigator-body #NavForm #dimensions > .row {
	margin-bottom: 8px;
}

/* Checkboxes (Ready Now, Fragile, Insurance): line up with the fields. */
body #courier-navigator-body #NavForm .checkbox {
	margin: 0 0 20px;
}

/* Quote prompt and quote panel: separated from Commodity above. */
body #courier-navigator-body #NavForm #QuoteDiv:not(.hidden) {
	margin: 24px 0 8px;
}

body #courier-navigator-body #NavForm .quoteprompt {
	padding: 12px 16px;
	border-radius: var(--radius-input);
	background: var(--surface);
	color: var(--ink);
}

/* Commodity lines added under the button. */
body #courier-navigator-body #NavForm [id^="Com_Row_"]:not(.hidden) {
	margin: 0 0 12px;
	border-color: var(--line);
	border-radius: var(--radius-input);
	box-shadow: none;
}

/* Calculate Quote / Continue: a clear break from References, aligned with the
   fields' 15px column gutter. */
body #courier-navigator-body #NavForm .container-fluid > .row:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
	padding: 32px 15px 0;
	border-top: 1px solid var(--line);
}

body #courier-navigator-body #NavForm .container-fluid > .row:last-child::before,
body #courier-navigator-body #NavForm .container-fluid > .row:last-child::after {
	display: none;
}

body #courier-navigator-body #NavForm .container-fluid > .row:last-child .btn {
	margin: 0;
}

/* Collection Details: Ready Now and Date / Time sit in nested Bootstrap rows;
   with the rows' negative margins removed their columns' 15px padding pushed
   them off the field edge. Line them up, put Date and Time side by side at the
   field width, and space them from Collection Vehicle. Same for Insurance. */
body #courier-navigator-body #NavForm .row > .checkbox,
body #courier-navigator-body #NavForm .row > #secondary_field_insurance {
	padding-right: 0;
	padding-left: 0;
}

body #courier-navigator-body #NavForm #field_pickupdate {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
	max-width: 300px;
	margin: 0 0 20px;
}

body #courier-navigator-body #NavForm #field_pickupdate::before,
body #courier-navigator-body #NavForm #field_pickupdate::after {
	display: none;
}

body #courier-navigator-body #NavForm #field_pickupdate > div {
	flex: 1 1 0;
	float: none;
	width: auto;
	min-width: 0;
	padding: 0;
}

body #courier-navigator-body #NavForm #field_pickupdate > div:first-child,
body #courier-navigator-body #NavForm #field_pickupdate > #time_feedback {
	flex-basis: 100%;
}

body #courier-navigator-body #NavForm #field_pickupdate > #time_feedback:not(.hidden) {
	margin: 8px 0 0;
}

/* Booking checkboxes (Ready Now, Fragile, Insurance and any Navigator adds):
   the same 18px box, tick and states as the Contact page consent checkbox. */
body #courier-navigator-body #NavForm .checkbox label {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: 0;
	color: var(--ink);
	font-size: var(--text-sm);
	font-weight: 400;
	line-height: 20px;
	cursor: pointer;
}

body #courier-navigator-body #NavForm input[type="checkbox"] {
	position: static;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ink-muted);
	border-radius: 4px;
	background-color: var(--paper);
	box-shadow: none;
	appearance: none;
	cursor: pointer;
	transition: all 150ms;
}

body #courier-navigator-body #NavForm input[type="checkbox"]::before {
	content: "";
	width: 65%;
	height: 65%;
	background-color: var(--paper);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	opacity: 0;
}

body #courier-navigator-body #NavForm input[type="checkbox"]:checked {
	border-color: var(--cta);
	background-color: var(--cta);
}

body #courier-navigator-body #NavForm input[type="checkbox"]:checked::before {
	opacity: 1;
}

body #courier-navigator-body #NavForm input[type="checkbox"]:focus,
body #courier-navigator-body #NavForm input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--cta);
	outline-offset: 2px;
}

body #courier-navigator-body #NavForm input[type="checkbox"]:focus:not(:focus-visible) {
	outline: 0;
}

/* Add Boxes For Shipping (#newbox, drawbox.js): the saved-box picker sat in a
   half-width column with the select at 8/12 of that, cropping box names. Give
   the picker the dialog's full width; select fills, button keeps its size.
   The box preview (#canvasa) drops below. Same for the Set Weight row. */
body #newbox .form > .row > .form-group,
body #newbox .form > .row > #canvasa {
	float: none;
	width: 100%;
	padding: 0;
}

body #newbox .form > .row > .form-group {
	margin-bottom: 16px;
}

body #newbox .form > .row,
body #newbox .boxrow,
body #newbox .newweightrow {
	margin: 0;
}

body #newbox .boxrow:not(.hidden),
body #newbox .newweightrow:not(.hidden) {
	display: flex;
	gap: 12px;
	align-items: center;
}

body #newbox .boxrow::before,
body #newbox .boxrow::after,
body #newbox .newweightrow::before,
body #newbox .newweightrow::after {
	display: none;
}

body #newbox .boxrow > div,
body #newbox .newweightrow > div {
	float: none;
	width: auto;
	padding: 0;
}

body #newbox .boxrow > div:first-child,
body #newbox .newweightrow > div:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

body #newbox .boxrow > div:not(:first-child),
body #newbox .newweightrow > div:not(:first-child) {
	flex: 0 0 auto;
}

body #newbox .boxrow .btn,
body #newbox .newweightrow .btn {
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 479px) {
	body #newbox .boxrow:not(.hidden),
	body #newbox .newweightrow:not(.hidden) {
		flex-wrap: wrap;
	}

	body #newbox .boxrow > div,
	body #newbox .newweightrow > div {
		flex-basis: 100% !important;
	}
}

/* Collection date: Navigator's datepicker setup gives #pickupdate an inline
   position: relative; z-index: 100, which lifted it above the dark backdrop
   of open dialogs. Keep it in the normal stack; the calendar pop-up keeps its
   own z-index above the form. */
body #courier-navigator-body #NavForm #pickupdate,
body #courier-navigator-body #NavForm input.hasDatepicker {
	z-index: auto !important;
}

body #ui-datepicker-div {
	z-index: 1030 !important;
}

/* Manage Existing Saved Boxes (also #newbox, but .row > .form > .form-group):
   same full-width picker as Add Boxes For Shipping. */
body #newbox .row,
body #newbox .form {
	margin: 0;
}

body #newbox .form-group.col-sm-6,
body #newbox #canvasa {
	float: none;
	width: 100%;
	padding: 0;
}

/* Dropdowns: never crop the chosen option. Navigator caps booking selects at
   300px (!important, inline <style>); let them grow to their longest option,
   keeping 300px as the minimum so the fields still line up, up to the column
   width. In dialogs and the account selector they fill their container. */
body #courier-navigator-body #NavForm select,
body #courier-navigator-body #accountselector select {
	width: auto !important;
	min-width: min(300px, 100%);
	max-width: 100% !important;
	text-overflow: ellipsis;
}

body #courier-navigator-body #accountselector select {
	height: auto;
	padding: 12px 16px;
	border: 1px solid var(--ink-muted);
	border-radius: var(--radius-input);
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: 20px;
}

body .navigator-modal select.form-control,
body .navigator-modal select {
	width: 100%;
	max-width: 100%;
	text-overflow: ellipsis;
}

/* --- Booking layout from the old site (v1.0.16) -------------------------- */
/* Fields fill their column (two-column sections) or half the row (full-width
   sections, so both line up); dropdowns match the fields; 48px between
   section blocks. Overrides Navigator's 300px caps and the earlier
   grow-to-fit dropdown rule. */
body #courier-navigator-body #NavForm .form-group .form-control,
body #courier-navigator-body #NavForm .form-group select,
body #courier-navigator-body #NavForm .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body #courier-navigator-body #NavForm #field_pickupdate .form-control,
body #courier-navigator-body #NavForm #secondary_field_insurance .form-control,
body #courier-navigator-body #NavForm [id^="Dim_Row_"] .form-control {
	width: 100% !important;
	min-width: 0;
	max-width: 100% !important;
}

body #courier-navigator-body #NavForm #field_pickupdate {
	max-width: none;
}

body #courier-navigator-body #NavForm #secondary_field_insurance {
	float: none;
	width: 100%;
}

body #courier-navigator-body #accountselector select {
	width: 100% !important;
	min-width: 0;
	max-width: 480px !important;
}

@media (min-width: 768px) {
	body #courier-navigator-body #NavForm .col-md-12 > .form-group .form-control,
	body #courier-navigator-body #NavForm .col-md-12 > .form-group select,
	body #courier-navigator-body #NavForm .col-md-12 > .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
		max-width: calc(50% - 15px) !important;
	}
}

/* Section rhythm: 48px under each block, headings sit on their fields. */
body #courier-navigator-body #NavForm > .container-fluid > .row > div {
	margin-bottom: 48px;
}

body #courier-navigator-body #NavForm .h3 {
	margin: 0 0 16px;
}

body #courier-navigator-body #accountselector .panel {
	margin-bottom: 48px;
}

body #courier-navigator-body #NavForm .container-fluid > .row:last-child {
	margin-top: 0;
}

/* Pickup Address: no collapse. Hide Navigator's up-arrow toggle and stop the
   heading's onclick="hideCollection()" from firing. */
body #courier-navigator-body #NavForm #pickupaddress .h3 > .glyphicon {
	display: none;
}

body #courier-navigator-body #NavForm #pickupaddress .h3 {
	pointer-events: none;
}

/* Address Book button: let it overhang the heading by a few px so the
   Delivery heading stays the same height as Pickup and the two columns'
   fields line up. */
body #courier-navigator-body #NavForm .h3 > .btn {
	margin-block: -5px;
}

/* --- Portal menu tiles (v1.0.18) ------------------------------------------ */
/* Replaces https://wd.vooba.co.uk/portal-demo/portal.css, which Navigator's
   menu template linked and functions.php now drops (its Gilroy fonts failed
   CORS). Same layout; Geist + tokens instead of Gilroy + hex. */
body #courier-navigator-body .wrapper-box {
	padding-top: 100px;
	padding-bottom: 100px;
}

body #courier-navigator-body .icon-holder {
	display: block;
	max-width: 96px;
	margin: 0 auto 10px;
}

body #courier-navigator-body .icon-holder img {
	transition: transform 300ms ease-out;
}

body #courier-navigator-body .portal-option:hover .icon-holder img,
body #courier-navigator-body .portal-option:focus-within .icon-holder img {
	transform: scale(1.1);
}

body #courier-navigator-body .portal-title {
	margin-bottom: 20px;
	line-height: 20px;
	text-align: center;
}

body #courier-navigator-body .portal-title a {
	color: var(--cta);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: color 300ms ease-out;
}

body #courier-navigator-body .portal-title a:hover,
body #courier-navigator-body .portal-title a:focus-visible {
	color: var(--midnight);
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	body #courier-navigator-body .icon-holder img,
	body #courier-navigator-body .portal-title a {
		transition: none;
	}
}
