/* Store Locations block */

.wdm-store-locations {
	width: 100%;
}

.wdm-store-locations__title {
	margin: 0 0 20px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	color: #323232;
}

.wdm-store-locations__grid {
	column-count: 2;
	column-gap: 16px;
}

.wdm-store-locations__grid > * {
	display: inline-block;
	width: 100%;
	margin: 0 0 16px;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

.wdm-store-card {
	position: relative;
	padding: 16px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e5e8ed;
}

.wdm-store-card__body {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
}

.wdm-store-card__image {
	height: 92px;
	border-radius: 8px;
	overflow: hidden;
	background: #edf0f4;
}

.wdm-store-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wdm-store-card__content {
	min-width: 0;
}

.wdm-store-card__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase !important;
	color: #20201f;
}

.wdm-store-card__line {
	margin: 0 0 6px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 16px;
	line-height: 1.45;
	color: #4a4a4a;
	word-break: break-word;
}

.wdm-store-card__line-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	object-fit: contain;
}

.wdm-store-card__line-text {
	display: inline-block;
	line-height: 1.45;
}

.wdm-store-card__line-prefix,
.wdm-store-card__line-value {
	display: inline-block;
	line-height: 1.45;
	color: #4a4a4a;
}

.wdm-store-card__line a {
	display: inline-flex;
	align-items: flex-start;
	color: #1667b3;
	text-decoration: underline;
}

.wdm-store-card__line a[href^='mailto:'] {
	color: #005ca9;
}

/* Emails: one row when "E-pasts: address" fits; otherwise the address drops to
   the next line as a whole, and the "E-pasts:" label never breaks into
   "E-" / "pasts:". Only an address wider than the card breaks mid-word. */
.wdm-store-card__line:has(a[href^='mailto:']) {
	flex-wrap: wrap;
}

.wdm-store-card__line:has(a[href^='mailto:']) .wdm-store-card__line-prefix {
	white-space: nowrap;
}

.wdm-store-card__line:has(a[href^='mailto:']) a[href^='mailto:'] {
	word-break: normal;
	overflow-wrap: anywhere;
}

.wdm-store-card__hours {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #edf0f4;
}

.wdm-store-card__hours-toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	padding: 0 18px 0 0;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #323232;
	text-align: left;
	cursor: pointer;
}

.wdm-store-card__hours-toggle::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 2px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid #767676;
	border-bottom: 1.5px solid #767676;
	transform: translateY(-60%) rotate(45deg);
	transition: transform 0.2s ease;
}

.wdm-store-card__hours.is-open .wdm-store-card__hours-toggle::after {
	transform: translateY(-20%) rotate(-135deg);
}

.wdm-store-card__hours-panel {
	margin-top: 10px;
}

.wdm-store-card__hours-row {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 6px;
	padding: 2px 0;
	font-size: 15px;
	line-height: 1.5;
	color: #3f3f3f;
}

.wdm-store-card__hours-value.is-closed {
	font-size: 14px;
	font-weight: 600;
	color: #da2f34;
}

.wdm-store-card__map-link {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	cursor: pointer;
	font: inherit;
	appearance: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wdm-store-card__map-link.is-active {
	background-color: #0067b0;
	border-color: #0067b0;
}

.wdm-store-card__map-link.is-active .wdm-store-card__map-pin {
	background-color: #fff;
}

.wdm-store-card__map-pin {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	background-color: #0067b0;
	-webkit-mask-image: url('../images/icons/location_iron.svg');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-image: url('../images/icons/location_iron.svg');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	transition: background-color 0.2s ease;
}

.wdm-store-card__map-link:hover,
.wdm-store-card__map-link:focus-visible {
	background-color: #0067b0;
	border-color: #0067b0;
}

.wdm-store-card__map-link:hover .wdm-store-card__map-pin,
.wdm-store-card__map-link:focus-visible .wdm-store-card__map-pin {
	background-color: #fff;
}

.wdm-store-promo {
	border-radius: 10px;
	overflow: hidden;
	background: #eaeef3;
	min-height: 240px;
}

.wdm-store-promo__image-wrap {
	position: relative;
	height: 100%;
	min-height: 240px;
}

.wdm-store-promo__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wdm-store-promo__button {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	height: 42px;
	padding: 0 18px;
	border-radius: 8px;
	border: 0;
	background: #fff;
	color: #005ca9;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}

@media (max-width: 991px) {
	.wdm-store-locations__grid {
		column-count: 1;
	}
}

@media (max-width: 640px) {
	.wdm-store-card {
		padding: 20px 12px;
	}

	.wdm-store-card__body {
		grid-template-columns: 1fr;
	}

	.wdm-store-card__image {
		height: 160px;
	}

	.wdm-store-card__map-link {
		top: 10px;
		right: 10px;
	}
}

@media (max-width: 781px) {
	.wdm-store-card__content {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.wdm-store-card__title,
	.wdm-store-card__line {
		margin: 0;
	}

	.wdm-store-card__image {
		display: none;
	}

	.wdm-store-card__title {
		padding-right: 60px;
	}

	.wdm-store-promo {
		display: none;
	}
}
