.cr-branch-selector {
	--cr-branch-surface: var(--cr-surface, Canvas);
	--cr-branch-soft: var(--cr-soft, Canvas);
	--cr-branch-text: var(--cr-text, CanvasText);
	--cr-branch-muted: var(--cr-muted, currentColor);
	--cr-branch-border: var(--cr-border, currentColor);
	--cr-branch-primary: var(--cr-primary, currentColor);
	--cr-branch-secondary: var(--cr-secondary, currentColor);
	--cr-branch-button: var(--cr-button, currentColor);
	--cr-branch-button-active: var(--cr-button-active, var(--cr-branch-primary));
	--cr-branch-inverse: var(--cr-inverse-text, Canvas);
	--cr-branch-shadow: var(--cr-shadow, none);
	--cr-branch-shadow-soft: var(--cr-shadow-soft, none);
	font-family: var(--cr-font, inherit);
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	margin: 0 auto;
	padding: var(--cr-spacing-sm, 10px) 0 32px;
	color: var(--cr-branch-text);
}

.cr-branch-selector *,
.cr-branch-selector *::before,
.cr-branch-selector *::after {
	box-sizing: border-box;
	min-width: 0;
}

.cr-branch-selector__hero {
	margin-bottom: 14px;
}

.cr-branch-selector__eyebrow {
	display: inline-flex;
	margin-bottom: 6px;
	color: var(--cr-branch-primary);
	font-size: 0.86rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cr-branch-selector__hero h2 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	line-height: 1.12;
}

.cr-branch-selector__hero p {
	max-width: 680px;
	margin: 8px 0 0;
	color: var(--cr-branch-muted);
	font-size: 1rem;
}

.cr-branch-selector__current {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 14px;
	border: 1px solid color-mix(in srgb, var(--cr-branch-button-active) 22%, transparent);
	border-radius: 14px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--cr-branch-button-active) 10%, transparent), color-mix(in srgb, var(--cr-branch-secondary) 12%, transparent));
	padding: 16px;
	box-shadow: var(--cr-branch-shadow-soft);
}

.cr-branch-selector__current span,
.cr-branch-selector__current strong {
	display: block;
}

.cr-branch-selector__current span {
	color: var(--cr-branch-muted);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cr-branch-selector__current strong {
	margin-top: 2px;
	font-size: 1.18rem;
	line-height: 1.2;
}

.cr-branch-selector__continue,
.cr-branch-selector__mobile-continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 999px;
	background: var(--cr-branch-button-active);
	color: var(--cr-branch-inverse);
	padding: 0 18px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.cr-branch-selector__continue:hover,
.cr-branch-selector__continue:focus,
.cr-branch-selector__mobile-continue:hover,
.cr-branch-selector__mobile-continue:focus {
	background: var(--cr-branch-button-active);
	color: var(--cr-branch-inverse);
	transform: translateY(-1px);
	box-shadow: var(--cr-branch-shadow-soft);
}

.cr-branch-selector__change-heading {
	margin: 0 0 12px;
}

.cr-branch-selector__change-heading h3,
.cr-branch-selector__change-heading p {
	margin: 0;
}

.cr-branch-selector__change-heading h3 {
	font-size: 1.25rem;
}

.cr-branch-selector__change-heading p {
	margin-top: 3px;
	color: var(--cr-branch-muted);
}

.cr-branch-selector__search {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin-bottom: 14px;
	border: 1px solid var(--cr-branch-border);
	border-radius: 999px;
	background: var(--cr-branch-surface);
	padding: 0 12px;
	box-shadow: var(--cr-branch-shadow-soft);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cr-branch-selector__search:focus-within {
	border-color: color-mix(in srgb, var(--cr-branch-primary) 50%, transparent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cr-branch-primary) 12%, transparent);
}

.cr-branch-selector__search-input {
	width: 100%;
	min-height: 46px;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

.cr-branch-selector__search-clear {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: var(--cr-branch-soft);
	color: var(--cr-branch-muted);
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
}

.cr-branch-selector__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.cr-branch-card {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	min-height: 520px;
	overflow: hidden;
	border: 1px solid var(--cr-branch-border);
	border-radius: 12px;
	background: var(--cr-branch-surface);
	box-shadow: var(--cr-branch-shadow-soft);
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
	animation: crBranchCardIn 220ms ease both;
}

.cr-branch-card:hover,
.cr-branch-card:focus-within {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--cr-branch-primary) 42%, transparent);
	box-shadow: var(--cr-branch-shadow);
}

.cr-branch-card.is-selected {
	border-color: var(--cr-branch-button-active);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--cr-branch-button-active) 14%, transparent), var(--cr-branch-shadow);
	animation: crBranchSelected 240ms ease both;
}

.cr-branch-card__action,
.cr-branch-card__action-form {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
}

.cr-branch-card__action:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--cr-branch-primary) 42%, transparent);
	outline-offset: -6px;
	border-radius: 12px;
}

.cr-branch-card__action-form .cr-branch-card__action {
	padding: 0;
}

.cr-branch-card.is-closed {
	opacity: 0.6;
	pointer-events: none;
}

.cr-branch-card__action--disabled {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: default;
}

.cr-branch-card__action--disabled span {
	padding: 8px 16px;
	background: var(--cr-branch-surface, #f5f5f5);
	border-radius: 8px;
	font-weight: 800;
	color: var(--cr-branch-muted, #999);
	pointer-events: none;
}

.cr-branch-card__image {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--cr-branch-soft);
}

.cr-branch-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cr-branch-card__image-placeholder {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 6px;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--cr-branch-primary) 10%, transparent), color-mix(in srgb, var(--cr-branch-secondary) 14%, transparent)),
		var(--cr-branch-soft);
	color: var(--cr-branch-muted);
	text-align: center;
}

.cr-branch-card__image-placeholder span {
	font-size: 2rem;
	line-height: 1;
}

.cr-branch-card__image-placeholder strong {
	font-size: 0.86rem;
	font-weight: 900;
}

.cr-branch-card__selected-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: calc(100% - 20px);
	border-radius: 999px;
	background: var(--cr-branch-button-active);
	color: var(--cr-branch-inverse);
	padding: 6px 10px;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: var(--cr-branch-shadow-soft);
	animation: crBranchBadgeIn 240ms ease both;
}

.cr-branch-card__body {
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 14px;
	padding: 14px;
}

.cr-branch-card__main {
	display: grid;
	align-content: start;
	gap: 9px;
}

.cr-branch-card__current-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cr-branch-button-active) 10%, transparent);
	color: var(--cr-branch-button-active);
	padding: 5px 9px;
	font-size: 0.8rem;
	font-weight: 900;
}

.cr-branch-card h3 {
	margin: 0;
	font-size: clamp(1rem, 3vw, 1.25rem);
	line-height: 1.18;
}

.cr-branch-card__address {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: 2.65em;
	margin: 0;
	color: var(--cr-branch-muted);
	font-size: 0.92rem;
	line-height: 1.35;
}

.cr-branch-card__status {
	display: grid;
	gap: 2px;
	min-height: 42px;
	font-weight: 800;
}

.cr-branch-card__status small {
	color: var(--cr-branch-muted);
	font-weight: 600;
}

.cr-branch-card__status.is-open span {
	color: var(--cr-success, currentColor);
}

.cr-branch-card__status.is-closed span {
	color: var(--cr-error, currentColor);
}

.cr-branch-card__status.is-unknown span {
	color: var(--cr-branch-muted);
}

.cr-branch-card__services {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 7px;
	min-height: 74px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-branch-card__services li {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	border: 1px solid color-mix(in srgb, var(--cr-branch-button-active) 16%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--cr-branch-button-active) 8%, transparent);
	color: var(--cr-branch-button-active);
	padding: 5px 9px;
	font-size: 0.82rem;
	font-weight: 800;
}

.cr-branch-card__form {
	margin: 0;
}

.cr-branch-card__button {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--cr-branch-button);
	color: var(--cr-branch-inverse);
	font: inherit;
	font-weight: 900;
	transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.cr-branch-card:hover .cr-branch-card__button,
.cr-branch-card:focus-within .cr-branch-card__button {
	background: var(--cr-branch-button-active);
	transform: translateY(-1px);
}

.cr-branch-card.is-selected .cr-branch-card__button {
	background: var(--cr-branch-button-active);
	box-shadow: var(--cr-branch-shadow-soft);
	animation: crBranchButtonIn 240ms ease both;
}

.cr-branch-selector__empty,
.cr-branch-selector__no-results {
	border: 1px solid var(--cr-branch-border);
	border-radius: 12px;
	background: var(--cr-branch-surface);
	padding: 22px;
	text-align: center;
	color: var(--cr-branch-muted);
	box-shadow: var(--cr-branch-shadow-soft);
}

.cr-branch-selector__mobile-continue {
	position: fixed;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 80;
	display: none;
	min-height: 52px;
	box-shadow: var(--cr-branch-shadow);
}

body.cr-app-mode-active .cr-branch-selector__mobile-continue {
	bottom: var(--cr-app-floating-bottom, 14px);
}

.cr-branch-selector__mobile-continue.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
}

@keyframes crBranchCardIn {
	from {
		opacity: 0.88;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes crBranchSelected {
	from {
		box-shadow: var(--cr-branch-shadow-soft);
	}

	to {
		box-shadow: 0 0 0 2px color-mix(in srgb, var(--cr-branch-button-active) 14%, transparent), var(--cr-branch-shadow);
	}
}

@keyframes crBranchBadgeIn {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes crBranchButtonIn {
	from {
		transform: translateY(3px);
	}

	to {
		transform: translateY(0);
	}
}

@media (min-width: 1024px) {
	.cr-branch-selector__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 700px) and (max-width: 1023px) {
	.cr-branch-selector__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.cr-branch-selector {
		padding-right: 0;
		padding-left: 0;
	}

	.cr-branch-selector__grid {
		gap: 10px;
	}

	.cr-branch-card__body {
		padding: 10px;
	}

	.cr-branch-card__services li {
		font-size: 0.76rem;
	}
}

@media (max-width: 359px) {
	.cr-branch-selector__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.cr-branch-selector {
		padding-bottom: 86px;
	}

	.cr-branch-selector__current {
		align-items: stretch;
		flex-direction: column;
	}

	.cr-branch-selector__continue {
		width: 100%;
	}

	.cr-branch-selector__mobile-continue {
		display: inline-flex;
	}
}
