/**
 * UCKG HelpCentre Locator: additions only. The widgets' own CSS is untouched.
 * Brand: navy #203760, red #f3141a, blue #1d77f1.
 */

/* ---------- Branch Finder: results panel ---------- */

/* The list scrolls on its own; heading and messages stay above it. */
.uckg-branch-finder.uckg-branch-finder--has-results .uckg-branch-finder__locations,
.uckg-branch-finder.uckg-branch-finder--has-start .uckg-branch-finder__locations {
	max-height: none;
	overflow: visible;
	padding-right: 0;
}

.uckg-branch-finder .uckg-bf-heading {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.uckg-branch-finder.uckg-bf-on-light .uckg-bf-heading {
	color: #0d1a2d;
}

.uckg-bf-heading[hidden],
.uckg-bf-notice[hidden],
.uckg-bf-results[hidden] {
	display: none !important;
}

.uckg-branch-finder .uckg-bf-results {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 300px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 2px;
	/* Scrolls by wheel, trackpad or touch; the scrollbar itself is hidden. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.uckg-branch-finder .uckg-bf-results::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* "View all locations" while the full list is open. */
.uckg-branch-finder .uckg-branch-finder__link.uckg-bf-all-active,
.uckg-branch-finder .uckg-branch-finder__link.uckg-bf-all-active .uckg-branch-finder__link-icon {
	color: #1d77f1 !important;
}

.uckg-branch-finder.uckg-bf-on-dark .uckg-branch-finder__link.uckg-bf-all-active,
.uckg-branch-finder.uckg-bf-on-dark .uckg-branch-finder__link.uckg-bf-all-active .uckg-branch-finder__link-icon {
	color: #ffffff !important;
}

.uckg-branch-finder.uckg-bf-on-dark .uckg-branch-finder__link.uckg-bf-all-active > span {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Result cards: always a white card with dark text, readable on any section. */
.uckg-branch-finder .uckg-bf-result,
.uckg-branch-finder--light .uckg-bf-result {
	position: relative;
	flex: 0 0 auto;
	gap: 3px;
	max-width: none;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e6ebf2;
	border-left: 3px solid transparent;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(10, 17, 40, 0.06);
	color: #0d1a2d;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.uckg-branch-finder .uckg-bf-result:hover {
	background: #f8fafc;
}

.uckg-branch-finder .uckg-bf-result .uckg-branch-finder__loc-title {
	color: #0d1a2d;
}

.uckg-branch-finder .uckg-bf-result .uckg-branch-finder__loc-meta {
	color: #5a6578;
}

.uckg-branch-finder .uckg-bf-result:focus {
	outline: none;
}

.uckg-branch-finder .uckg-bf-result:focus-visible {
	outline: 3px solid #f3141a;
	outline-offset: 2px;
}

.uckg-branch-finder .uckg-bf-result.is-loc-active,
.uckg-branch-finder--light .uckg-bf-result.is-loc-active {
	border-color: #c9dcfb;
	border-left-color: #f3141a;
	background: #eef5ff;
}

.uckg-branch-finder .uckg-bf-result .uckg-bf-distance {
	color: #f3141a;
	font-weight: 700;
}

.uckg-branch-finder .uckg-bf-result .uckg-bf-link {
	align-self: flex-start;
	margin-top: 4px;
	color: #1d77f1;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.uckg-branch-finder .uckg-bf-result .uckg-bf-link:hover {
	color: #1565d8;
}

/* Messages: white box with dark text, readable on any section. */
.uckg-branch-finder .uckg-bf-notice {
	padding: 12px 14px;
	border: 1px solid #e6ebf2;
	border-left: 3px solid #f3141a;
	border-radius: 10px;
	background: #ffffff;
	color: #0d1a2d;
	font-size: 0.9rem;
	line-height: 1.45;
}

.uckg-bf-notice p {
	margin: 0 0 8px;
}

.uckg-bf-notice__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	border-radius: 999px;
	background: #1d77f1;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.uckg-bf-notice__link:hover {
	background: #1565d8;
}

/* Status line ("Searching…", "We couldn't find that place") */
.uckg-branch-finder.uckg-bf-on-light .uckg-branch-finder__none {
	color: #0d1a2d;
}

/* ---------- Branch Finder: result pins and pop-up ---------- */

.uckg-bf-pin {
	background: none;
	border: 0;
}

.uckg-bf-pin svg {
	display: block;
	filter: drop-shadow(0 2px 3px rgba(2, 13, 32, 0.35));
}

.uckg-bf-you {
	background: none;
	border: 0;
}

.uckg-bf-you span {
	display: block;
	width: 22px;
	height: 22px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #f3141a;
	box-shadow: 0 0 0 6px rgba(243, 20, 26, 0.25), 0 2px 6px rgba(2, 13, 32, 0.4);
}

.uckg-bf-popup-wrap .leaflet-popup-content {
	margin: 12px 14px;
}

.uckg-bf-popup {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 180px;
	font-family: var(--uckg-font-family, "JUST Sans", Montserrat, Arial, Helvetica, sans-serif);
	font-size: 13px;
	line-height: 1.4;
	color: #0d1a2d;
}

.uckg-bf-popup strong {
	color: #203760;
	font-size: 14px;
}

.uckg-bf-popup__dist {
	color: #f3141a;
	font-weight: 700;
}

.uckg-bf-popup a {
	margin-top: 4px;
	color: #1d77f1;
	font-weight: 700;
}

/* ---------- Branch Finder: mobile — map always visible, no List/Map tabs ---------- */

.uckg-bf-toggle {
	display: none !important;
}

@media (max-width: 767px) {
	.uckg-branch-finder__media,
	.uckg-branch-finder__map {
		display: block !important;
		visibility: visible !important;
	}

	.uckg-branch-finder .uckg-bf-results {
		max-height: 300px;
	}
}

/* ---------- Location Directory: "Nearest to" section ---------- */

.uckg-location-directory.uckg-ld--nearest .uckg-location-directory__sections,
.uckg-location-directory.uckg-ld--nearest .uckg-location-directory__tabs,
.uckg-location-directory.uckg-ld--nearest [data-filter-empty] {
	display: none !important;
}

.uckg-ld-nearest .uckg-location-directory__section-head {
	justify-content: space-between;
}

.uckg-ld-reset {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #d2d7df;
	border-radius: 999px;
	background: #fff;
	color: #0d1a2d;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.uckg-ld-reset:hover,
.uckg-ld-reset:focus-visible {
	border-color: #1d77f1;
	color: #1d77f1;
}

.uckg-location-directory .uckg-ld-distance {
	margin-top: -8px;
	color: #f3141a;
	font-weight: 700;
}

.uckg-location-directory .uckg-ld-clone {
	cursor: pointer;
}

.uckg-location-directory .uckg-ld-clone.is-loc-active {
	border-color: #f3141a;
}

.uckg-location-directory .uckg-ld-clone:focus-visible {
	outline: 3px solid #f3141a;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.uckg-branch-finder .uckg-bf-result {
		transition: none;
	}
}

/* "Services in" language filter (2.8.0). */
.uckg-branch-finder .uckg-bf-langs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
}

.uckg-branch-finder .uckg-bf-langs__label {
	margin-right: 2px;
	color: #0d1a2d;
	font-size: 0.9rem;
	font-weight: 600;
}

.uckg-branch-finder .uckg-bf-langs__btn {
	appearance: none;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid #c9d2df;
	border-radius: 999px;
	background: #ffffff;
	color: #0d1a2d;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.uckg-branch-finder .uckg-bf-langs__btn:hover {
	border-color: #1d77f1;
}

.uckg-branch-finder .uckg-bf-langs__btn[aria-pressed="true"] {
	border-color: #1d77f1;
	background: #1d77f1;
	color: #ffffff;
}

.uckg-branch-finder .uckg-bf-langs__btn:focus-visible {
	outline: 3px solid #f3141a;
	outline-offset: 2px;
}

.uckg-branch-finder.uckg-bf-on-dark .uckg-bf-langs__label {
	color: #ffffff;
}

.uckg-branch-finder.uckg-bf-on-dark .uckg-bf-langs__btn {
	border-color: rgba(255, 255, 255, 0.55);
	background: transparent;
	color: #ffffff;
}

.uckg-branch-finder.uckg-bf-on-dark .uckg-bf-langs__btn[aria-pressed="true"] {
	border-color: #ffffff;
	background: #ffffff;
	color: #0d1a2d;
}

/* Language label on result cards and map pop-ups. */
.uckg-bf-lang-tag {
	display: inline-block;
	align-self: flex-start;
	margin: 2px 0;
	padding: 2px 9px;
	border-radius: 999px;
	background: #e8f1fe;
	color: #0b4fae;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.5;
}

.uckg-bf-popup .uckg-bf-lang-tag {
	display: block;
	width: max-content;
	margin: 4px 0;
}

/* Location Directory cards and sections outside the chosen language. */
.uckg-ld-lang-hidden {
	display: none !important;
}
