/* HM Store Locator — frontend styling.
 * RTL Hebrew first. Uses CSS variables so hm-design-system tokens flow through.
 */

.hm-sl-wrap {
	margin: 0 0 16px;
	direction: rtl;
}

.hm-sl-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hm-sl-input-row {
	display: flex;
	gap: 8px;
	flex: 1;
	min-width: 280px;
}

.hm-sl-input {
	flex: 1;
	min-height: 44px;
	padding: 8px 14px;
	font-size: 16px;
	border: 1px solid var(--hm-border, #d0d4d9);
	border-radius: var(--hm-radius-md, 8px);
	background: var(--hm-surface, #fff);
	color: var(--hm-text, #1c2128);
	font-family: inherit;
}

.hm-sl-input:focus {
	outline: 2px solid var(--hm-focus, #5a6cf3);
	outline-offset: 2px;
	border-color: var(--hm-focus, #5a6cf3);
}

.hm-sl-search-btn {
	min-height: 44px;
	padding: 8px 22px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--hm-primary, #5a6cf3);
	border: 1px solid var(--hm-primary, #5a6cf3);
	border-radius: var(--hm-radius-md, 8px);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.hm-sl-search-btn:hover,
.hm-sl-search-btn:focus {
	background: var(--hm-primary-hover, #4a5be0);
}

.hm-sl-map,
.hm-sl-single-map {
	width: 100%;
	height: 420px;
	border-radius: var(--hm-radius-lg, 12px);
	overflow: hidden;
	box-shadow: var(--hm-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.hm-sl-single-map {
	height: 320px;
	margin: 16px 0;
}

.hm-sl-results {
	margin-top: 16px;
}

.hm-sl-results ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.hm-sl-result {
	padding: 14px 16px;
	background: var(--hm-surface, #fff);
	border: 1px solid var(--hm-border, #e5e7eb);
	border-radius: var(--hm-radius-md, 8px);
	transition: box-shadow 0.15s ease;
}

.hm-sl-result:hover {
	box-shadow: var(--hm-shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

.hm-sl-result-name {
	display: block;
	font-weight: 700;
	font-size: 17px;
	color: var(--hm-text, #1c2128);
	text-decoration: none;
	margin-bottom: 4px;
}

.hm-sl-result-name:hover {
	color: var(--hm-primary, #5a6cf3);
}

.hm-sl-result-addr {
	color: var(--hm-text-muted, #6b7280);
	font-size: 14px;
	margin-bottom: 6px;
}

.hm-sl-result-phone {
	color: var(--hm-primary, #5a6cf3);
	font-size: 14px;
	text-decoration: none;
}

.hm-sl-result-phone:hover {
	text-decoration: underline;
}

.hm-sl-result-dist {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	background: var(--hm-surface-alt, #f4f5f7);
	color: var(--hm-text-muted, #6b7280);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
}

.hm-sl-no-results {
	padding: 24px;
	text-align: center;
	color: var(--hm-text-muted, #6b7280);
	background: var(--hm-surface-alt, #f4f5f7);
	border-radius: var(--hm-radius-md, 8px);
}

.hm-sl-infowindow {
	min-width: 200px;
	font-family: inherit;
	line-height: 1.4;
}

.hm-sl-infowindow strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.hm-sl-infowindow a {
	color: var(--hm-primary, #5a6cf3);
	text-decoration: none;
}

.hm-sl-infowindow a:hover {
	text-decoration: underline;
}

/* Address block */
.hm-sl-address-block {
	display: grid;
	gap: 6px;
	padding: 16px;
	background: var(--hm-surface-alt, #f4f5f7);
	border-radius: var(--hm-radius-md, 8px);
}

.hm-sl-name {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.hm-sl-addr,
.hm-sl-city {
	color: var(--hm-text, #1c2128);
}

.hm-sl-phone,
.hm-sl-email {
	color: var(--hm-primary, #5a6cf3);
	text-decoration: none;
}

.hm-sl-phone:hover,
.hm-sl-email:hover {
	text-decoration: underline;
}

/* Hours table */
.hm-sl-hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hm-sl-hours td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--hm-border, #e5e7eb);
}

.hm-sl-hours tr:last-child td {
	border-bottom: none;
}

.hm-sl-day {
	font-weight: 600;
	width: 30%;
	color: var(--hm-text, #1c2128);
}

.hm-sl-time {
	color: var(--hm-text-muted, #6b7280);
}

.hm-sl-closed {
	color: var(--hm-danger, #ce4646);
	font-style: italic;
}

@media (max-width: 640px) {
	.hm-sl-map,
	.hm-sl-single-map {
		height: 320px;
	}

	.hm-sl-input-row {
		flex-direction: column;
	}

	.hm-sl-search-btn {
		width: 100%;
	}
}

/* ClockID connection badge */
.hm-sl-clockid-row {
	margin-top: 10px;
}

.hm-sl-clockid-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: var(--hm-clockid-bg, #eaf3ff);
	color: var(--hm-clockid-fg, #1e4fa3);
	border: 1px solid var(--hm-clockid-border, #c5dcfa);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	direction: rtl;
	white-space: nowrap;
}

.hm-sl-clockid-icon {
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: middle;
	color: var(--hm-clockid-icon, #2e7d32);
}

.hm-sl-clockid-label {
	font-weight: 700;
}

/* "full" variant used by the block — pill + description below */
.hm-sl-clockid-full {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--hm-clockid-bg, #eaf3ff);
	border: 1px solid var(--hm-clockid-border, #c5dcfa);
	border-radius: var(--hm-radius-md, 8px);
	font-size: 14px;
	color: var(--hm-clockid-fg, #1e4fa3);
	direction: rtl;
}

.hm-sl-clockid-full .hm-sl-clockid-label {
	font-size: 15px;
}

.hm-sl-clockid-full .hm-sl-clockid-desc {
	flex-basis: 100%;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: var(--hm-text-muted, #51606b);
	line-height: 1.5;
}

/* --- Gallery + Videos --- */
.hm-sl-gallery {
	display: grid;
	gap: 10px;
	margin: 16px 0;
	direction: rtl;
}
.hm-sl-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hm-sl-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hm-sl-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hm-sl-gallery-cols-5 { grid-template-columns: repeat(5, 1fr); }
.hm-sl-gallery-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) {
	.hm-sl-gallery-cols-4,
	.hm-sl-gallery-cols-5,
	.hm-sl-gallery-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.hm-sl-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}
.hm-sl-gallery-item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hm-radius-md, 8px);
	background: #f4f6f9;
	aspect-ratio: 1 / 1;
}
.hm-sl-gallery-link {
	display: block;
	height: 100%;
	width: 100%;
	line-height: 0;
	outline: 0;
}
.hm-sl-gallery-link:focus-visible {
	outline: 3px solid #1e4fa3;
	outline-offset: 2px;
}
.hm-sl-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	display: block;
}
.hm-sl-gallery-link:hover .hm-sl-gallery-img,
.hm-sl-gallery-link:focus-visible .hm-sl-gallery-img {
	transform: scale(1.06);
}

/* Lightbox overlay */
.hm-sl-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	cursor: zoom-out;
	direction: rtl;
}
.hm-sl-lightbox-overlay img {
	max-width: 95vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 6px;
	cursor: default;
}
.hm-sl-lightbox-close {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 40px;
	cursor: pointer;
}
.hm-sl-lightbox-close:focus-visible {
	outline: 3px solid #1e4fa3;
	outline-offset: 2px;
}
.hm-sl-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 26px;
	cursor: pointer;
}
.hm-sl-lightbox-prev { right: 16px; }
.hm-sl-lightbox-next { left: 16px; }

/* Videos */
.hm-sl-videos {
	display: grid;
	gap: 16px;
	margin: 16px 0;
	direction: rtl;
}
.hm-sl-videos-cols-1 { grid-template-columns: 1fr; }
.hm-sl-videos-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hm-sl-videos-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hm-sl-videos-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
	.hm-sl-videos { grid-template-columns: 1fr !important; }
}
.hm-sl-video-item iframe,
.hm-sl-video-item video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--hm-radius-md, 8px);
	border: 0;
}

/* --- Empty state shared --- */
.hm-sl-empty {
	padding: 24px;
	text-align: center;
	color: var(--hm-text-muted, #6b7280);
	background: var(--hm-surface-alt, #f4f6f9);
	border: 1px dashed var(--hm-border, #d0d4d9);
	border-radius: var(--hm-radius-md, 8px);
	margin: 12px 0;
	direction: rtl;
}

/* --- Virtual tour --- */
.hm-sl-virtual-tour {
	margin: 16px 0;
}

.hm-sl-virtual-tour iframe {
	width: 100%;
	border: 0;
	border-radius: var(--hm-radius-md, 8px);
	box-shadow: var(--hm-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.hm-sl-virtual-tour-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: var(--hm-primary, #5a6cf3);
	color: #fff;
	text-decoration: none;
	border-radius: var(--hm-radius-md, 8px);
	font-weight: 600;
	font-size: 16px;
	min-height: 44px;
}

.hm-sl-virtual-tour-link:hover,
.hm-sl-virtual-tour-link:focus-visible {
	background: var(--hm-primary-hover, #4a5be0);
	color: #fff;
	text-decoration: none;
}

.hm-sl-virtual-tour-link:focus-visible {
	outline: 3px solid #1e4fa3;
	outline-offset: 2px;
}

/* --- Certifications grid --- */
.hm-sl-certs {
	display: grid;
	gap: 14px;
	margin: 16px 0;
}

.hm-sl-certs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hm-sl-certs-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hm-sl-certs-cols-5 { grid-template-columns: repeat(5, 1fr); }
.hm-sl-certs-cols-6 { grid-template-columns: repeat(6, 1fr); }
.hm-sl-certs-cols-7 { grid-template-columns: repeat(7, 1fr); }
.hm-sl-certs-cols-8 { grid-template-columns: repeat(8, 1fr); }

@media (max-width: 1024px) {
	.hm-sl-certs-cols-5,
	.hm-sl-certs-cols-6,
	.hm-sl-certs-cols-7,
	.hm-sl-certs-cols-8 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
	.hm-sl-certs { grid-template-columns: repeat(3, 1fr) !important; }
}

.hm-sl-cert-item {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 10px;
	background: var(--hm-surface, #fff);
	border: 1px solid var(--hm-border, #e5e7eb);
	border-radius: var(--hm-radius-md, 8px);
}

.hm-sl-cert-img {
	width: 100%;
	height: auto;
	max-height: 110px;
	object-fit: contain;
}

.hm-sl-cert-title {
	font-size: 12px;
	line-height: 1.3;
	color: var(--hm-text-muted, #51606b);
}

/* --- Permissions table --- */
.hm-sl-permits-wrap {
	overflow-x: auto;
	margin: 16px 0;
}

.hm-sl-permits {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: var(--hm-surface, #fff);
}

.hm-sl-permits th,
.hm-sl-permits td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--hm-border, #e5e7eb);
	text-align: start;
}

.hm-sl-permits thead th {
	background: var(--hm-surface-alt, #f4f6f9);
	font-weight: 700;
	color: var(--hm-text, #1c2128);
}

.hm-sl-permit-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.hm-sl-permit-valid {
	background: #e0f5e7;
	color: #1f6d3a;
}

.hm-sl-permit-expired {
	background: #fde2e2;
	color: #9a2424;
}

.hm-sl-permit-unknown {
	background: #f0f1f4;
	color: #51606b;
}

.hm-sl-permit-link {
	color: var(--hm-primary, #5a6cf3);
	text-decoration: none;
	font-weight: 600;
}

.hm-sl-permit-link:hover,
.hm-sl-permit-link:focus-visible {
	text-decoration: underline;
}

/* --- About blocks --- */
.hm-sl-about {
	display: grid;
	gap: 18px;
	margin: 16px 0;
}

.hm-sl-about-block {
	padding: 16px 18px;
	background: var(--hm-surface, #fff);
	border: 1px solid var(--hm-border, #e5e7eb);
	border-radius: var(--hm-radius-md, 8px);
}

.hm-sl-about-label {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--hm-text, #1c2128);
}

.hm-sl-about-value {
	color: var(--hm-text, #1c2128);
	line-height: 1.6;
}

.hm-sl-about-value p:first-child { margin-top: 0; }
.hm-sl-about-value p:last-child { margin-bottom: 0; }

.hm-sl-about-list {
	margin: 0;
	padding-inline-start: 1.25em;
}

.hm-sl-about-phone {
	color: var(--hm-primary, #5a6cf3);
	text-decoration: none;
	font-weight: 600;
}

.hm-sl-about-phone:hover { text-decoration: underline; }

/* --- 7-tab wrapper --- */
.hm-sl-store-tabs {
	margin: 24px 0;
	direction: rtl;
}

.hm-sl-tabs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid var(--hm-border, #e5e7eb);
	margin-bottom: 16px;
	padding-inline: 0;
	list-style: none;
}

.hm-sl-tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--hm-text-muted, #51606b);
	cursor: pointer;
	font-family: inherit;
	min-height: 44px;
	border-radius: var(--hm-radius-md, 8px) var(--hm-radius-md, 8px) 0 0;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	position: relative;
	bottom: -2px;
}

.hm-sl-tab:hover {
	color: var(--hm-text, #1c2128);
	background: var(--hm-surface-alt, #f4f6f9);
}

.hm-sl-tab:focus-visible {
	outline: 3px solid var(--hm-focus, #5a6cf3);
	outline-offset: 2px;
	z-index: 1;
}

.hm-sl-tab.is-active,
.hm-sl-tab[aria-selected="true"] {
	color: var(--hm-primary, #5a6cf3);
	border-bottom-color: var(--hm-primary, #5a6cf3);
	background: var(--hm-surface, #fff);
}

.hm-sl-tabs-panels {
	padding-top: 6px;
}

.hm-sl-tab-panel {
	padding: 4px 0;
	outline: none;
}

.hm-sl-tab-panel:focus-visible {
	outline: 2px dashed var(--hm-focus, #5a6cf3);
	outline-offset: 4px;
	border-radius: var(--hm-radius-md, 8px);
}

.hm-sl-tab-panel[hidden] { display: none; }

@media (max-width: 640px) {
	.hm-sl-tabs-list {
		overflow-x: auto;
		flex-wrap: nowrap;
		scrollbar-width: thin;
	}

	.hm-sl-tab {
		flex: 0 0 auto;
		padding: 10px 14px;
		font-size: 14px;
	}
}

/* Ratings / Edit panel polish */
.hm-sl-ratings,
.hm-sl-edit {
	padding: 16px 18px;
	background: var(--hm-surface, #fff);
	border: 1px solid var(--hm-border, #e5e7eb);
	border-radius: var(--hm-radius-md, 8px);
	line-height: 1.6;
}

.hm-sl-ratings-link {
	color: var(--hm-primary, #5a6cf3);
	font-weight: 600;
	text-decoration: none;
}

.hm-sl-ratings-link:hover,
.hm-sl-ratings-link:focus-visible { text-decoration: underline; }

.hm-sl-edit-fab-trigger {
	appearance: none;
	background: var(--hm-primary, #5a6cf3);
	color: #fff;
	border: 0;
	padding: 10px 20px;
	border-radius: var(--hm-radius-md, 8px);
	font-weight: 600;
	font-size: 15px;
	min-height: 44px;
	cursor: pointer;
	font-family: inherit;
}

.hm-sl-edit-fab-trigger:hover,
.hm-sl-edit-fab-trigger:focus-visible {
	background: var(--hm-primary-hover, #4a5be0);
}

.hm-sl-edit-fab-trigger:focus-visible {
	outline: 3px solid #1e4fa3;
	outline-offset: 2px;
}

/* §E3 2026-05-28 — Logo proportion normalisation. */
.hm-sl-store-logo,
.single-wpsl_stores .gb-image-47c08e5d {
    aspect-ratio: 1 / 1;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    display: block;
    margin-inline: auto;
}

.hm-sl-store-logo img,
.single-wpsl_stores .gb-image-47c08e5d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .hm-sl-store-logo,
    .single-wpsl_stores .gb-image-47c08e5d {
        max-width: 140px;
        max-height: 140px;
        padding: 8px;
    }
}

/* §E3 — Default logo (128601) — show subtly so it's not overwhelming. */
.hm-sl-default-logo {
    opacity: 0.6;
}

/* §N7 — ClockID manager widget (managers/admins only).
 * Aggregate counts only — never PII. Lives inside the edit tab panel. */
.hm-sl-clockid-manager-widget {
    background: #f4f7fc;
    border: 2px solid var(--hm-clockid-border, #c5dcfa);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 24px;
}
.hm-sl-clockid-manager-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-clockid-fg, #1e4fa3);
}
.hm-sl-clockid-manager-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: #555;
}
.hm-sl-clockid-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
}
.hm-sl-clockid-stat {
    flex: 1 1 130px;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e3eaf5;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
}
.hm-sl-clockid-stat.is-alert {
    border-color: #d63638;
    background: #fff4f4;
}
.hm-sl-clockid-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--hm-clockid-fg, #1e4fa3);
}
.hm-sl-clockid-stat.is-alert .hm-sl-clockid-num {
    color: #d63638;
}
.hm-sl-clockid-lbl {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #555;
}
.hm-sl-clockid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hm-sl-clockid-btn {
    flex: 1 1 180px;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: opacity 0.15s ease;
}
.hm-sl-clockid-btn:hover,
.hm-sl-clockid-btn:focus { opacity: 0.9; }
.hm-sl-clockid-btn-primary {
    background: var(--hm-clockid-fg, #1e4fa3);
    color: #fff;
}
.hm-sl-clockid-btn-ghost {
    background: #fff;
    color: var(--hm-clockid-fg, #1e4fa3);
    border-color: var(--hm-clockid-border, #c5dcfa);
}
@media (max-width: 600px) {
    .hm-sl-clockid-stat { flex-basis: 100%; }
    .hm-sl-clockid-btn  { flex-basis: 100%; }
}

/* ===========================================================================
 * §N5 (2026-05-28) — Contact-owner CTA + modal
 * ===========================================================================
 * Short, clear "שליחת הודעה למנהל המעון" button + accessible modal that
 * hosts the hm-form 9 contact form. Auto-injected at the top of single
 * wpsl_stores pages so visitors find the contact path immediately, before
 * scrolling past the long-titled legacy orange button (which we de-emphasise
 * + relabel below).
 * ========================================================================= */
.hm-sl-contact-owner {
    margin: 0 0 18px;
    text-align: center;
    direction: rtl;
}
.hm-sl-contact-owner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #5a6cf3, #4a5be0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(74, 91, 224, 0.25);
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    min-height: 44px; /* WCAG 2.1 target-size AA */
}
.hm-sl-contact-owner-btn:hover,
.hm-sl-contact-owner-btn:focus-visible {
    background: linear-gradient(135deg, #4a5be0, #3b4dd3);
    box-shadow: 0 4px 12px rgba(74, 91, 224, 0.35);
}
.hm-sl-contact-owner-btn:focus-visible {
    outline: 2px solid #f9a825;
    outline-offset: 2px;
}
.hm-sl-contact-owner-btn:active {
    transform: translateY(1px);
}
.hm-sl-contact-icon {
    flex: 0 0 auto;
    display: inline-block;
}

/* Modal — overlay + dialog, fully RTL and a11y-compatible. */
.hm-sl-contact-modal[hidden] {
    display: none;
}
.hm-sl-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    direction: rtl;
}
.hm-sl-contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.hm-sl-contact-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 24px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.hm-sl-contact-title {
    margin: 0 36px 16px 0; /* leave room for the × close button (top-left in RTL) */
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}
.hm-sl-contact-close {
    position: absolute;
    top: 8px;
    left: 12px; /* RTL: close button sits in the top-left corner */
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    border-radius: 6px;
    padding: 0;
}
.hm-sl-contact-close:hover,
.hm-sl-contact-close:focus-visible {
    background: #f0f0f0;
    color: #000;
}
.hm-sl-contact-close:focus-visible {
    outline: 2px solid #f9a825;
    outline-offset: 2px;
}
.hm-sl-contact-body {
    margin-top: 8px;
}
.hm-sl-contact-body .hm-form {
    margin: 0;
}

@media (max-width: 480px) {
    .hm-sl-contact-modal-content {
        padding: 18px 16px 14px;
        max-height: 95vh;
    }
    .hm-sl-contact-owner-btn {
        width: 100%;
        max-width: 360px;
    }
}

/* ---------------------------------------------------------------------------
 * §N5 — De-duplicate the legacy orange button.
 *
 * GP Element 128872 renders [hmeonot_forms forms="6"] which outputs:
 *   <div class="store-form">
 *     <button class="btn btn-primary w-100 my-1" data-target="#modal-form-…">
 *       …long Form-9 title…
 *     </button>
 *   </div>
 *
 * We can't edit the GP Element (template is read-only per spec), so we:
 *   1. Hide the long, confusing original label text via font-size:0.
 *   2. Inject a short, clear label via ::after.
 *   3. Soften the button visual weight so the new top CTA leads.
 *
 * Scoped to single wpsl_stores only — never touches forms elsewhere.
 * ------------------------------------------------------------------------- */
.single-wpsl_stores .store-form .btn.btn-primary[data-target^="#modal-form-"] {
    font-size: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 44px; /* preserve target-size */
    line-height: 1;
    text-align: center;
}
.single-wpsl_stores .store-form .btn.btn-primary[data-target^="#modal-form-"]::after {
    content: "פתיחת טופס יצירת קשר";
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: inline-block;
}
