/**
 * Store locations block (footer widget + shortcode) + modal.
 * Font sizes in px — OceanWP rem shrink (see CONTEXT §5.6).
 */

.bess-store-locations {
	--bess-stores-text: inherit;
	--bess-stores-muted: inherit;
	--bess-stores-link: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: var(--bess-stores-text);
}

#footer-widgets .bess-store-locations {
	--bess-stores-text: var(--bess-footer-text, rgba(255, 255, 255, 0.82));
	--bess-stores-muted: var(--bess-footer-muted, rgba(255, 255, 255, 0.62));
	--bess-stores-link: var(--bess-footer-link, rgba(255, 255, 255, 0.88));
	color: var(--bess-stores-text);
}

.bess-store-locations__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.bess-store-locations__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bess-store-locations__lines {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bess-store-locations__line {
	margin: 0 0 4px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bess-stores-text, inherit);
}

.bess-store-locations__line:last-child {
	margin-bottom: 0;
}

.bess-store-locations__contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.bess-store-locations__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bess-stores-link, inherit);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

.bess-store-locations__contact-link:hover,
.bess-store-locations__contact-link:focus {
	opacity: 0.92;
	text-decoration: none;
}

.bess-store-locations__contact-link:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

.bess-store-locations__icon {
	display: block;
	flex: 0 0 auto;
	fill: currentColor;
}

.bess-store-locations__contact-text {
	word-break: break-word;
}

.bess-store-locations__more {
	display: inline-block;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--bess-stores-link, inherit);
	text-decoration: underline;
	cursor: pointer;
}

.bess-store-locations__more:hover,
.bess-store-locations__more:focus-visible {
	opacity: 0.92;
}

/* --- Modal --- */
.bess-store-locations-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.bess-store-locations-modal[hidden] {
	display: none !important;
}

.bess-store-locations-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.bess-store-locations-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	max-height: min(80vh, 640px);
	overflow: auto;
	padding: 24px 28px 28px;
	border-radius: 4px;
	background: #fff;
	color: #222;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.bess-store-locations-modal__dialog .bess-store-locations {
	--bess-stores-text: #222;
	--bess-stores-muted: #666;
	--bess-stores-link: #111;
	color: #222;
}

.bess-store-locations-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #444;
	cursor: pointer;
}

.bess-store-locations-modal__close:hover,
.bess-store-locations-modal__close:focus-visible {
	color: #111;
}

.bess-store-locations-modal__body {
	padding-right: 12px;
}

body.bess-stores-modal-open {
	overflow: hidden;
}
