/**
 * Showrooms page structural and responsive styles.
 *
 * Editable colors, type, spacing, borders, and shadows are stored in block
 * attributes. This file owns only composition that Core controls cannot
 * express consistently across the public page and editor canvas.
 */

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-section {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-section *,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-section *::before,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-section *::after {
	box-sizing: border-box;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-container {
	max-width: 1200px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-section-heading {
	margin-inline: auto;
	max-width: 720px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-intro__heading {
	max-width: 700px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	scroll-margin-top: 120px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__banner {
	overflow: hidden;
	position: relative;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__banner::after {
	background: linear-gradient(90deg, rgb(23 67 104 / 93%), rgb(23 67 104 / 55%) 60%, rgb(23 67 104 / 15%));
	content: "";
	inset: 0;
	position: absolute;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__banner figure,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__banner img {
	display: block;
	margin: 0;
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__banner-copy {
	bottom: 15px;
	left: 22px;
	position: absolute;
	right: 18px;
	z-index: 1;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__label {
	display: inline-block;
	width: auto;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__map {
	background: var(--wp--preset--color--surface-soft);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	height: 172px;
	overflow: hidden;
	position: relative;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__map iframe {
	border: 0;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__address::first-letter,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-status::first-letter {
	color: var(--wp--preset--color--success);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-status {
	display: flex;
	gap: 8px;
	align-items: center;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-status::before {
	background: currentcolor;
	border-radius: 50%;
	content: "";
	flex: 0 0 9px;
	height: 9px;
}

.hsl-page-full-width-shell .badge-open:not(.is-active),
.hsl-page-full-width-shell .badge-closed:not(.is-active) {
	display: none !important;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-status.is-open {
	color: var(--wp--preset--color--success) !important;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-status.is-closed {
	color: var(--wp--preset--color--danger) !important;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours {
	margin: 0 0 18px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours table {
	border-collapse: collapse;
	border: 0;
	font-size: 0.9rem;
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours td {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	padding: 8px 2px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours td:first-child {
	color: var(--wp--preset--color--text-muted);
	font-weight: 600;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours td:last-child {
	font-weight: 700;
	text-align: right;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours tr.is-today {
	background: var(--wp--preset--color--surface-soft);
	box-shadow: inset 3px 0 0 var(--wp--preset--color--primary-alt);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-hours tr.is-today td:first-child {
	padding-left: 10px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card__actions {
	margin-top: auto;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-button .wp-block-button__link {
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-button .wp-block-button__link:hover {
	transform: translateY(-2px);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-button .wp-block-button__link:focus-visible,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showroom-location-card a:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary-alt);
	outline-offset: 3px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-feature__icon,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-contact-card__icon {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-feature__icon {
	height: 48px;
	width: 48px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-delivery__map img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-city-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-city-list li {
	color: var(--wp--preset--color--main);
	padding: 6px 0;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-city-list li::first-letter {
	color: var(--wp--preset--color--success);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq__inner {
	min-height: 505px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq .is-style-locksmith-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 17px 2rem 17px 0;
	position: relative;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq .is-style-locksmith-faq summary::-webkit-details-marker {
	display: none;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq .is-style-locksmith-faq summary::after {
	content: "+";
	font-size: 1.2rem;
	font-weight: 500;
	position: absolute;
	right: 0;
	top: 0.85rem;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq .is-style-locksmith-faq[open] summary {
	color: var(--wp--preset--color--primary);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq .is-style-locksmith-faq[open] summary::after {
	content: "−";
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-contact-card {
	height: 100%;
	text-align: center;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-contact-card__icon {
	height: 50px;
	margin-inline: auto;
	width: 50px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-cta {
	margin-inline: 24px;
}

@media (max-width: 900px) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-faq__inner,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-delivery__inner {
		display: flex !important;
		flex-direction: column;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-benefit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 760px) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-location-grid,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-contact-grid {
		display: flex !important;
		flex-direction: column;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-city-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-section {
		padding-bottom: 56px !important;
		padding-top: 56px !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-breadcrumb {
		padding-bottom: 0 !important;
		padding-top: 0 !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-intro {
		padding-bottom: 24px !important;
		padding-top: 36px !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-locations {
		padding-top: 0 !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-container {
		padding-inline: 18px !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-benefit-grid {
		grid-template-columns: 1fr !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-location-card__actions,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-location-card__actions .wp-block-button,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-location-card__actions .wp-block-button__link,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-cta .wp-block-buttons,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-cta .wp-block-button,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-cta .wp-block-button__link {
		width: 100%;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-offers {
		align-items: stretch;
		flex-direction: column;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-offer-chip {
		justify-content: flex-start;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-city-list {
		grid-template-columns: 1fr;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-cta-wrap {
		padding-top: 0 !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-cta {
		margin-inline: 18px;
		padding-inline: 22px !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-showrooms-button .wp-block-button__link {
		transition: none;
	}
}
