/* Heaths Dynamic Phone - matches approved Figma nav/footer call CTA */

.heaths-dp-widget {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: "Open Sans", sans-serif;
	z-index: 5;
}

.heaths-dp-widget--scheduler {
	gap: 0;
}

.heaths-dp-call-label {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.15;
	min-width: 90px;
}

.heaths-dp-call-today {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.heaths-dp-location-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	font-family: inherit;
}

.heaths-dp-caret {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #f35f20;
	line-height: 0;
}

.heaths-dp-caret svg {
	display: block;
	width: 10px;
	height: 6px;
	transform: rotate(180deg);
	transition: transform 0.15s ease;
}

/* Open: chevron points up (Figma) */
.heaths-dp-location-toggle[aria-expanded="true"] .heaths-dp-caret svg {
	transform: rotate(0deg);
}

/* Header / footer: white label + location, orange chevron */
.heaths-dp-context-header .heaths-dp-call-today,
.heaths-dp-context-header .heaths-dp-location-toggle,
.heaths-dp-context-header .heaths-dp-location-name,
.heaths-dp-context-footer .heaths-dp-call-today,
.heaths-dp-context-footer .heaths-dp-location-toggle,
.heaths-dp-context-footer .heaths-dp-location-name {
	color: #fff;
}

.heaths-dp-context-header .heaths-dp-caret,
.heaths-dp-context-footer .heaths-dp-caret {
	color: #f35f20;
}

.heaths-dp-location-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 120px;
	background: #f7f5f2;
	border: 1px solid rgba(243, 95, 32, 0.35);
	border-radius: 4px;
	box-shadow: none;
	overflow: hidden;
	z-index: 1000;
}

.heaths-dp-location-menu li {
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	color: #1a1a1a;
	white-space: nowrap;
	border-bottom: 1px solid rgba(243, 95, 32, 0.2);
	background: transparent;
	transition: background 0.12s ease;
}

.heaths-dp-location-menu li:last-child {
	border-bottom: 0;
}

/* Figma hover: full-row orange fill, black text */
.heaths-dp-location-menu li:hover,
.heaths-dp-location-menu li:focus {
	background: #f35f20;
	color: #1a1a1a;
}

.heaths-dp-location-menu li[aria-selected="true"]:not(:hover) {
	background: transparent;
	color: #1a1a1a;
}

.heaths-dp-phone-btn,
a.closest-location-phone-number.heaths-dp-phone-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 134px;
	height: 41px;
	padding: 0 18px;
	border-radius: 4px;
	background: #f35f20;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	transition: background 0.2s ease;
}

.heaths-dp-phone-btn:hover,
a.closest-location-phone-number.heaths-dp-phone-btn:hover {
	background: #e0551c;
	color: #fff !important;
}

/* Footer (Figma): CALL TODAY + location on one row, phone button stacked below */
.heaths-dp-footer-call {
	margin-top: 16px;
}

.heaths-dp-context-footer.heaths-dp-widget {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.heaths-dp-context-footer .heaths-dp-call-label {
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

.heaths-dp-context-footer .heaths-dp-call-today {
	font-size: 14px;
	letter-spacing: 0.06em;
}

.heaths-dp-context-footer .heaths-dp-location-toggle {
	font-size: 14px;
}

.heaths-dp-context-footer .heaths-dp-phone-btn,
.heaths-dp-footer-call a.closest-location-phone-number.heaths-dp-phone-btn {
	min-width: 150px;
	height: 42px;
	border-radius: 12px;
	background-image: linear-gradient(135deg, #f35f20, #f83);
	font-family: Oswald, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.heaths-dp-context-footer .heaths-dp-phone-btn:hover,
.heaths-dp-footer-call a.closest-location-phone-number.heaths-dp-phone-btn:hover {
	background-image: linear-gradient(135deg, #ff6a2a, #ff9a4d);
}

.heaths-dp-context-card {
	flex-wrap: wrap;
	width: 100%;
	max-width: 266px;
}

.heaths-dp-context-card .heaths-dp-phone-btn {
	margin-top: 0;
}

.heaths-dp-service-btn {
	position: relative;
	z-index: 3;
}

.heaths-dp-service-btn .heaths-dp-book-now,
.heaths-dp-widget--scheduler .heaths-dp-book-now {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 6px;
	background-image: linear-gradient(135deg, #f35f20, #f83);
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none !important;
}

/* Astra header HTML slot alignment */
.ast-header-html-2 .heaths-dp-widget {
	margin-left: 8px;
	flex-shrink: 0;
}

.ast-header-html-2 .heaths-dp-location-name,
.ast-header-html-2 .heaths-dp-phone-btn {
	white-space: nowrap;
}

/*
 * Tablet / narrow desktop: Astra still shows the desktop header until 921px,
 * so compact the CTA so location + phone do not wrap onto multiple lines.
 */
@media (max-width: 1280px) and (min-width: 922px) {
	.ast-header-html-2 .heaths-dp-context-header {
		gap: 8px;
	}

	.ast-header-html-2 .heaths-dp-call-today {
		display: none;
	}

	.ast-header-html-2 .heaths-dp-call-label {
		min-width: 0;
	}

	.ast-header-html-2 .heaths-dp-location-toggle {
		font-size: 12px;
	}

	.ast-header-html-2 .heaths-dp-phone-btn,
	.ast-header-html-2 a.closest-location-phone-number.heaths-dp-phone-btn {
		min-width: 0;
		height: 34px;
		padding: 0 12px;
		font-size: 12px;
		border-radius: 8px;
	}
}

@media (max-width: 1100px) and (min-width: 922px) {
	.ast-header-html-2 .heaths-dp-context-header {
		gap: 6px;
	}

	.ast-header-html-2 .heaths-dp-phone-btn,
	.ast-header-html-2 a.closest-location-phone-number.heaths-dp-phone-btn {
		padding: 0 10px;
		font-size: 11px;
		height: 32px;
	}
}

@media (max-width: 921px) {
	.heaths-dp-widget {
		margin: 12px 0;
	}

	.ast-header-html-2 .heaths-dp-widget {
		margin-left: 0;
	}
}
