/*
 * Wellbrook accessibility layer (WCAG 2.2 AA). Child theme konsulix-child.
 * Loaded after the parent theme so it can restore what the parent removes.
 */

/* Ready-to-enable accessible teal. NOT applied anywhere yet (client approval pending).
   To enable, see functions.php: filter cws_a11y_enable_darker_teal, which loads a11y-teal.css. */
:root {
	--cws-teal-accessible: #087F85;
}

/* 2.4.7 Focus Visible: the parent theme sets :focus { outline: none }. */
:focus-visible {
	outline: 3px solid #0B3945 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 7px #fff;
}
#content:focus,
#content:focus-visible,
main:focus,
main:focus-visible,
[tabindex="-1"]:focus:not(input):not(button):not(a) {
	outline: none !important;
	box-shadow: none;
}

/* 2.4.1 Bypass Blocks: skip link */
.cws-skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 2147483000;
	padding: 12px 18px;
	background: #0B3945;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
	transition: none !important;
}
.cws-skip-link:focus {
	left: 8px;
	color: #fff;
}

/* 2.1.1 Keyboard: desktop dropdown and mega menus opened with Enter, Space or Arrow Down */
.main-navigation li.menu-item-has-children.cws-open > .sub-menu {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}
.main-navigation li.menu-item-has-children > a[role="button"] {
	cursor: pointer;
}

/* 2.5.8 Target Size (Minimum). Keep a 24px link target without making the utility bar taller than Live. */
.top-bar > .e-con-inner {
	padding-block: 13.5px;
}
.top-bar .elementor-icon-list-items {
	position: relative;
	top: auto;
}
.top-bar .elementor-icon-list-item > a,
.elementor-element.top-bar .elementor-icon-list-items a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-block: 0;
}
.site-footer .elementor-icon-list-item > a,
footer .elementor-icon-list-item > a,
footer .elementor-icon-list-items a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-block: 3px;
}
.swiper-pagination-bullet {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	height: 24px !important;
	margin: 0 2px !important;
	background: transparent !important;
	opacity: 1 !important;
	border-radius: 0 !important;
}
.swiper-pagination-bullet::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #5c6a70;
}
.swiper-pagination-bullet-active::before {
	background: #0B3945;
}
button.gform-datepicker-toggle,
.gform-datepicker-toggle,
.ui-datepicker-trigger {
	min-width: 24px !important;
	min-height: 24px !important;
	width: 24px !important;
	height: 24px !important;
}
.menu-mobile-nav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
.elementor-widget-button a.elementor-button,
.elementor-button.elementor-size-xl,
.elementor-button.elementor-size-lg,
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-sm {
	min-height: 24px;
}
.wpsr-fb-feed-platform {
	display: inline-flex;
	min-width: 24px;
	min-height: 24px;
	align-items: center;
	justify-content: center;
}

/* Pause / play control for auto-moving content (2.2.2) */
.cws-pause-btn {
	position: absolute;
	left: 24px;
	bottom: 8px;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto !important;
	max-width: max-content;
	flex: 0 0 auto !important;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #0B3945;
	color: #fff;
	font: 700 14px/1 sans-serif;
	cursor: pointer;
}
.cws-pause-btn:hover {
	background: #000;
	color: #fff;
}
.cws-pause-btn .cws-pause-icon {
	display: inline-block;
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	box-sizing: border-box;
}
.cws-pause-btn[data-state="paused"] .cws-pause-icon {
	width: 0;
	height: 0;
	border-left: 12px solid currentColor;
	border-right: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}
.cws-pause-host {
	position: relative;
}
.cws-pause-btn--top {
	top: 8px;
	right: 8px;
	left: auto;
	bottom: auto;
}
.cws-pause-host > .cws-pause-btn {
	z-index: 40;
}
.elementor-background-video-container ~ .cws-pause-btn,
.cws-pause-btn--corner {
	right: auto;
	left: 16px;
	top: 16px;
	bottom: auto;
}

/* Mobile menu: keep the closed panel out of reach */
.konsulix-mobile-nav[inert] {
	visibility: hidden;
}

/* WP Social Ninja feed text: contrast of counts (4.5:1 on white) */
.wpsr-fb-feed-statistics,
.wpsr-fb-feed-statistics * {
	color: #4d5256;
}

/* Gravity Forms: visible labels */
.gform_wrapper .gfield_label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}
.gform_wrapper .gfield_label.cws-visible-label {
	position: static !important;
	width: auto !important;
	height: auto !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	margin: 0 0 6px !important;
}
