/**
 * Pre-header — 3-column layout: contact + online status + social/search.
 */

body.hcmc-dental {
	--hcmc-brand-orange: #f29221;
	--hcmc-brand-green: #2e7d32;
	--hcmc-brand-navy: #1e3a5f;
	/* Align ASL dropdown right edge with Astra content column */
	--hcmc-asl-align-max: min(var(--ast-normal-container-width, 1240px), calc(100vw - 40px));
}

.hcmc-preheader {
	--hcmc-marquee-duration: 26s;
	--hcmc-ph-sky: rgba(255, 255, 255, 0.95);
	--hcmc-ph-sky-hover: #fff;
	--hcmc-ph-border: rgba(255, 255, 255, 0.22);
	--hcmc-ph-green: var(--hcmc-brand-green, #2e7d32);
	position: relative;
	z-index: 100000;
	/* Same teal gradient as footer announcement strip (.hcmc-footer-announce) */
	background: linear-gradient(90deg, #064e3b 0%, #065f46 50%, #047857 100%);
	color: #ecfdf5;
	font-size: 13px;
	line-height: 1.15;
	border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.hcmc-preheader-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.28rem 0.45rem;
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
	min-height: 36px;
	max-width: 100%;
}

/* ── Left: marquee ticker (phone · hours · Saigon time); SR plain text above ── */
.hcmc-preheader-left.hcmc-preheader-marquee {
	min-width: 0;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	/* Feather edges like Limia-style ticker polish */
	mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.hcmc-preheader-marquee__viewport {
	overflow: hidden;
	min-width: 0;
	width: 100%;
}

.hcmc-preheader-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	align-items: center;
	animation: hcmc-preheader-marquee-scroll var(--hcmc-marquee-duration, 26s) linear infinite;
	will-change: transform;
}

.hcmc-preheader-marquee:hover .hcmc-preheader-marquee__track,
.hcmc-preheader-marquee:focus-within .hcmc-preheader-marquee__track {
	animation-play-state: paused;
}

@keyframes hcmc-preheader-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hcmc-preheader-marquee__track {
		animation: none !important;
		transform: none !important;
	}

	.hcmc-preheader-marquee__viewport {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: thin;
	}
}

.hcmc-preheader-marquee__segment {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.12rem 0.28rem;
	flex-shrink: 0;
	padding-inline-end: 2.75rem;
	box-sizing: border-box;
}

.hcmc-ph-item {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	flex-shrink: 0;
	min-width: 0;
}

.hcmc-ph-item > span:not(.hcmc-ph-flag-vn) {
	white-space: nowrap;
}

.hcmc-preheader-tel--ghost {
	color: #fff !important;
	font-weight: 600;
	cursor: default;
	pointer-events: none;
	text-decoration: none;
}

.hcmc-ph-sep {
	opacity: 0.45;
	flex-shrink: 0;
	user-select: none;
}

.hcmc-ph-icon {
	flex-shrink: 0;
	width: 13px;
	height: 13px;
	color: #cbd5e1;
}

.hcmc-ph-icon--phone {
	color: var(--hcmc-brand-orange, #f29221);
}

.hcmc-ph-flag-vn {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.hcmc-ph-item--local {
	gap: 0.22rem;
	flex-wrap: nowrap;
}

.hcmc-ph-now {
	opacity: 0.85;
	font-weight: 500;
}

.hcmc-ph-time {
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}

.hcmc-ph-city {
	font-weight: 600;
	color: #f1f5f9;
}

.hcmc-preheader-tel {
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.hcmc-preheader-tel:hover,
.hcmc-preheader-tel:focus {
	text-decoration: underline;
	color: #fff9c4 !important;
}

/* ── Center: online pulse ── */
.hcmc-preheader-center {
	justify-self: center;
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	max-width: 100%;
	min-width: 0;
	padding: 0 0.25rem;
	text-align: center;
}

.hcmc-ph-online-dot {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
	animation: hcmc-ph-pulse 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.hcmc-ph-online-dot {
		animation: none;
		box-shadow: none;
	}
}

@keyframes hcmc-ph-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
	}
}

.hcmc-ph-online-text {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(320px, 34vw);
}

/* ── Right: socials + search ── */
.hcmc-preheader-right {
	justify-self: end;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.38rem;
	min-width: 0;
}

.hcmc-ph-socials {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	flex-shrink: 0;
	padding-right: 0.35rem;
	margin-right: 0.15rem;
	border-right: 1px solid var(--hcmc-ph-border);
}

.hcmc-ph-soc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 5px;
	color: rgba(248, 250, 252, 0.88);
	background: transparent;
	text-decoration: none !important;
	transition: color 0.15s ease, background 0.15s ease;
}

.hcmc-ph-soc:hover,
.hcmc-ph-soc:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.hcmc-ph-soc:focus-visible {
	outline: 2px solid var(--hcmc-ph-sky);
	outline-offset: 2px;
}

/* Messenger — same treatment as other socials on teal bar (readable, on-brand) */
.hcmc-ph-soc--ms {
	color: rgba(248, 250, 252, 0.92) !important;
}

.hcmc-ph-soc--ms:hover,
.hcmc-ph-soc--ms:focus {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.14) !important;
}

.hcmc-preheader-search {
	flex: 0 1 220px;
	min-width: 140px;
	max-width: 240px;
	position: relative;
	z-index: 2;
}

.hcmc-preheader-search .asl_w_container,
.hcmc-preheader-search div[id^='ajaxsearchliteres'],
.hcmc-preheader-search form {
	margin: 0 !important;
}

/* Strip plugin “simple-red” / gradient skins — removes orange corners & halo */
.hcmc-preheader-search .asl_w_container,
.hcmc-preheader-search div.asl_w {
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
	overflow: visible !important;
	filter: none !important;
}

.hcmc-preheader-search div.asl_w::before,
.hcmc-preheader-search div.asl_w::after,
.hcmc-preheader-search .asl_w_container::before,
.hcmc-preheader-search .asl_w_container::after {
	display: none !important;
	content: none !important;
}

/* Ajax Search Lite — integrated magnifier button at end of field */
.hcmc-preheader-search div.asl_w .probox {
	display: flex !important;
	flex-direction: row !important;
	background: rgba(0, 0, 0, 0.2) !important;
	background-image: none !important;
	border: 1px solid rgba(255, 255, 255, 0.38) !important;
	box-shadow: none !important;
	border-radius: 5px !important;
	box-sizing: border-box !important;
	/* Compact row; magnifier stays 28px wide */
	height: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	align-items: center !important;
	overflow: hidden;
	outline: none !important;
}

.hcmc-preheader-search div.asl_w .probox:focus-within {
	outline: none !important;
	box-shadow: none !important;
}

.hcmc-preheader-search div.asl_w .probox .proinput {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 0 0 6px !important;
	padding: 0 4px !important;
	flex: 1 1 auto !important;
}

.hcmc-preheader-search div.asl_w .probox .proinput input {
	height: 100% !important;
	min-height: 0 !important;
	line-height: 1 !important;
	color: #f1f5f9 !important;
	font-size: 11px !important;
	text-align: center !important;
	text-shadow: none !important;
	box-shadow: none !important;
	border: none !important;
	background-image: none !important;
	padding: 0 !important;
	margin: 0 !important;
	vertical-align: middle !important;
}

.hcmc-preheader-search div.asl_w .probox .proinput input::placeholder {
	color: rgba(226, 232, 240, 0.55) !important;
	opacity: 1 !important;
}

.hcmc-preheader-search div.asl_w .promagnifier {
	width: 28px !important;
	min-width: 28px !important;
	height: 100% !important;
	min-height: 0 !important;
	align-self: stretch !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	background: rgba(74, 222, 128, 0.28) !important;
	border: none !important;
	border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 0 !important;
	margin: 0 !important;
	transition: background 0.15s ease;
}

.hcmc-preheader-search div.asl_w .promagnifier:hover,
.hcmc-preheader-search div.asl_w .promagnifier:focus {
	background: rgba(74, 222, 128, 0.48) !important;
}

.hcmc-preheader-search div.asl_w .promagnifier:focus-visible {
	outline: 2px solid rgba(74, 222, 128, 0.95);
	outline-offset: -2px;
	z-index: 1;
}

.hcmc-preheader-search div.asl_w .promagnifier .innericon svg,
.hcmc-preheader-search div.asl_w .promagnifier .innericon svg path {
	fill: #fff !important;
	stroke: #fff !important;
}

.hcmc-preheader-search input.orig,
.hcmc-preheader-search input.proinput {
	font-size: 11px !important;
	padding: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
	text-align: center !important;
	border-radius: 0 !important;
	background: transparent !important;
	border: none !important;
	color: #f8fafc !important;
	box-shadow: none !important;
}

.hcmc-preheader-search input.orig:focus,
.hcmc-preheader-search input.proinput:focus {
	outline: none !important;
	box-shadow: none !important;
}

/*
 * Ajax Search Lite — live results (often moved to body / fixed).
 * z-index above sticky masthead + Astra overlays; Limia-like clean card (no theme red).
 */
body.hcmc-dental div[id^='ajaxsearchliteres'].wpdreams_asl_results,
body.hcmc-dental div[id^='ajaxsearchliteres'].asl_r {
	z-index: 500000 !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	left: auto !important;
	/* Right-align panel with main content gutter (Limia-style), stop overflow past column */
	right: max(12px, calc((100vw - var(--hcmc-asl-align-max)) / 2)) !important;
	width: min(440px, calc(100vw - 24px)) !important;
	min-width: 0 !important;
	max-width: min(440px, calc(100vw - 24px)) !important;
	max-height: min(62vh, 380px) !important;
	overflow: hidden !important;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(46, 125, 50, 0.14) !important;
	border-radius: 14px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow:
		0 4px 6px rgba(15, 23, 42, 0.04),
		0 18px 42px rgba(15, 23, 42, 0.14) !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results {
	background: transparent !important;
	flex: 1 1 auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 4px 0 0 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .resdrg .item {
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 12px !important;
	padding: 10px 14px !important;
	border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
	margin: 0 !important;
	transition: background 0.12s ease;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_image {
	flex-shrink: 0 !important;
	width: 52px !important;
	min-width: 52px !important;
	height: 52px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	align-self: flex-start !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_image img {
	border-radius: 8px !important;
	object-fit: cover !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_content {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	padding: 2px 0 4px !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .resdrg .item:hover {
	background: rgba(46, 125, 50, 0.04) !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .resdrg .item:last-child {
	border-bottom: none !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_content h3,
body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_content h3 a {
	color: var(--hcmc-brand-green, #2e7d32) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	text-shadow: none !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_content h3 a:hover,
body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_content h3 a:focus {
	color: var(--hcmc-brand-orange, #f29221) !important;
	text-decoration: underline !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .results .item .asl_content .asl_desc {
	color: #64748b !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	margin-top: 4px !important;
	text-shadow: none !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] p.showmore {
	flex-shrink: 0 !important;
	background: #f8fafc !important;
	border-top: 1px solid rgba(226, 232, 240, 1) !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] p.showmore span {
	color: var(--hcmc-brand-orange, #f29221) !important;
	font-weight: 600 !important;
	font-size: 12px !important;
}

/* Footer CTA — full WordPress search (added via inc/asl-live-search.php) */
body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all-wrap {
	flex-shrink: 0 !important;
	margin: 0;
	padding: 11px 14px 13px;
	border-top: 1px solid rgba(226, 232, 240, 0.95);
	background: linear-gradient(180deg, rgba(236, 253, 245, 0.65) 0%, #fff 50%);
	text-align: center;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--hcmc-brand-green, #2e7d32) !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all:hover,
body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all:focus {
	color: var(--hcmc-brand-orange, #f29221) !important;
	outline: none;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all:focus-visible {
	outline: 2px solid var(--hcmc-brand-orange, #f29221);
	outline-offset: 3px;
	border-radius: 4px;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all__arrow {
	font-weight: 700;
	transition: transform 0.15s ease;
}

body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all:hover .hcmc-asl-view-all__arrow,
body.hcmc-dental div[id^='ajaxsearchliteres'] .hcmc-asl-view-all:focus .hcmc-asl-view-all__arrow {
	transform: translateX(3px);
}

body.hcmc-dental #hcmc-preheader .hcmc-preheader-search div.asl_m {
	position: relative !important;
	z-index: 3 !important;
}

/* ── Align top bar + primary header with site content width (Astra container) ── */
body.hcmc-dental #hcmc-preheader .hcmc-preheader-inner.ast-container,
body.hcmc-dental #masthead .ast-container {
	max-width: var(--ast-normal-container-width, 1240px) !important;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

/* ── Sticky main header ── */
#masthead.site-header {
	position: sticky;
	top: 0;
	z-index: 99990;
	background-color: #ffffff;
	transition: box-shadow 0.2s ease;
}

body.admin-bar #masthead.site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #masthead.site-header {
		top: 46px;
	}
}

body.hcmc-scrolled #masthead.site-header {
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

body.hcmc-scrolled #hcmc-preheader {
	display: none !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
	.hcmc-preheader-inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		justify-items: stretch;
		gap: 0.4rem;
	}

	.hcmc-preheader-left {
		justify-content: flex-start;
	}

	.hcmc-preheader-center {
		justify-self: center;
		order: 2;
	}

	.hcmc-preheader-right {
		justify-self: stretch;
		order: 3;
		flex-wrap: wrap;
		justify-content: space-between;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		padding-top: 0.45rem;
		margin-top: 0.15rem;
	}

	.hcmc-ph-socials {
		border-right: none;
		padding-right: 0;
		margin-right: 0;
		flex: 1 1 auto;
		justify-content: flex-start;
	}

	.hcmc-preheader-search {
		flex: 1 1 200px;
		max-width: none;
		min-width: 160px;
	}

	.hcmc-ph-online-text {
		max-width: none;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 520px) {
	.hcmc-preheader {
		font-size: 12px;
	}

	.hcmc-ph-online-text {
		font-size: 11px;
		max-width: none;
	}

	.hcmc-preheader-marquee__segment {
		gap: 0.1rem 0.22rem;
		padding-inline-end: 2rem;
	}

	.hcmc-ph-soc {
		width: 26px;
		height: 26px;
	}

	.hcmc-preheader-search {
		flex: 1 1 100%;
		min-width: 0;
	}

	.hcmc-preheader-right {
		flex-direction: column;
		align-items: stretch;
	}

	.hcmc-ph-socials {
		justify-content: center;
		width: 100%;
		padding-bottom: 0.15rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}
}

/* ================================================================
   MOBILE ONLY: ẩn top bar xanh — tích hợp thông tin vào drawer
   ================================================================ */
@media (max-width: 921px) {
	#hcmc-preheader {
		display: none !important;
	}

	/*
	 * Astra DROPDOWN mode — menu mở thẳng trong #ast-mobile-header (data-type="dropdown"),
	 * không có #ast-mobile-popup. Menu expand xuống dưới header dưới dạng danh sách.
	 * Container cuộn là .ast-mobile-header-content.
	 */
	body.hcmc-dental #ast-mobile-header .ast-mobile-header-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	body.hcmc-dental #ast-mobile-header.toggled .ast-mobile-header-content,
	body.hcmc-dental.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content {
		max-height: calc(100dvh - 60px);
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-y: contain;
		/* padding dưới tránh bị floating CTA bị che (khi có) */
		padding-bottom: calc(42px + env(safe-area-inset-bottom, 0px));
	}

	/* Cho phép menu items và submenus hiển thị đầy đủ bên trong dropdown */
	body.hcmc-dental #ast-mobile-header .main-header-menu,
	body.hcmc-dental #ast-mobile-header #ast-hf-mobile-menu {
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	body.hcmc-dental #ast-mobile-header .ast-builder-menu-mobile {
		min-height: 0 !important;
		overflow: visible !important;
	}

	/* Ajax Search Lite: full-width khi menu mở trên mobile */
	body.hcmc-dental.ast-main-header-nav-open div[id^='ajaxsearchliteres'].wpdreams_asl_results,
	body.hcmc-dental.ast-main-header-nav-open div[id^='ajaxsearchliteres'].asl_r {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-width: none !important;
		max-height: min(52vh, 320px) !important;
	}
}

/* ================================================================
   MOBILE DRAWER — Premium components
   Scoped: .hcmc-drawer-* — chỉ xuất hiện trong mobile menu drawer
   ================================================================ */

/* ── Drawer Header — compact, gọn, thoáng ── */
.hcmc-drawer-header {
	padding: 10px 14px 8px;
	background: #fff;
	border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

/* Trust Badges */
.hcmc-drawer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 8px;
}
.hcmc-drawer-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	background: #f8fafc;
	white-space: nowrap;
	line-height: 1;
}
.hcmc-drawer-badge--star {
	color: #d97706;
	border-color: rgba(217, 119, 6, 0.25);
	background: #fffbeb;
}

/* Preheader strip — compact single row */
.hcmc-drawer-preinfo {
	margin-bottom: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 11.5px;
	line-height: 1.4;
	color: #334155;
}

.hcmc-drawer-preinfo__online {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #166534;
	margin-bottom: 4px;
}

.hcmc-drawer-preinfo__dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
	animation: hcmc-drawer-pulse 2s ease-out infinite;
}

.hcmc-drawer-preinfo__hours {
	font-size: 11px;
	font-weight: 500;
	color: #475569;
	margin-bottom: 4px;
}

.hcmc-drawer-preinfo__clock {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	font-size: 11.5px;
	color: #64748b;
}

.hcmc-drawer-preinfo__flag {
	display: inline-flex;
	line-height: 0;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.hcmc-drawer-preinfo__now {
	font-weight: 600;
	color: #475569;
}

.hcmc-drawer-preinfo__time {
	font-weight: 600;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.hcmc-drawer-preinfo__city {
	font-weight: 600;
	color: #047857;
}

@media (prefers-reduced-motion: reduce) {
	.hcmc-drawer-preinfo__dot {
		animation: none;
	}
}

/* Contact chips — icon + label một hàng, gọn hơn */
.hcmc-drawer-contacts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	margin-bottom: 8px;
}

.hcmc-drawer-contact {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 7px 6px;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #334155;
	background: #fff;
	transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
	min-height: 38px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hcmc-drawer-contact:hover,
.hcmc-drawer-contact:focus {
	background: #f0fdf4;
	border-color: rgba(46, 125, 50, 0.35);
	color: var(--hcmc-brand-green, #2e7d32);
	box-shadow: none;
	outline: none;
}

.hcmc-drawer-contact--wa {
	border-color: rgba(46, 125, 50, 0.35);
	color: var(--hcmc-brand-green, #1b5e20);
	background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.hcmc-drawer-contact svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.hcmc-drawer-contact span {
	line-height: 1;
	white-space: nowrap;
}

/* Search Bar in Drawer */
.hcmc-drawer-search {
	margin-bottom: 0;
}

.hcmc-drawer-search-asl {
	margin: 0;
}

/* Override ASL plugin styles inside drawer */
.hcmc-drawer-search .asl_w_container,
.hcmc-drawer-search div.asl_w {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
}

.hcmc-drawer-search div.asl_w .probox {
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	border-radius: 12px !important;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.hcmc-drawer-search div.asl_w .probox .proinput input {
	color: #1e293b !important;
	font-size: 16px !important;
	text-align: left !important;
}

.hcmc-drawer-search div.asl_w .probox .proinput input::placeholder {
	color: #94a3b8 !important;
	opacity: 1 !important;
}

.hcmc-drawer-search div.asl_w .promagnifier {
	background: rgba(46, 125, 50, 0.08) !important;
	border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
	border-radius: 0 12px 12px 0 !important;
}

.hcmc-drawer-search div.asl_w .promagnifier .innericon svg,
.hcmc-drawer-search div.asl_w .promagnifier .innericon svg path {
	fill: #2e7d32 !important;
	stroke: #2e7d32 !important;
}

/* Fallback plain search if ASL not active */
.hcmc-drawer-search-plain {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 2px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hcmc-drawer-search-plain__input {
	flex: 1 1 auto;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
	color: #1e293b !important;
	padding: 11px 12px !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.hcmc-drawer-search-plain__input::placeholder {
	color: #94a3b8;
}

.hcmc-drawer-search-plain__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	min-height: 44px;
	border: none;
	border-left: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(46, 125, 50, 0.08);
	color: #2e7d32;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.hcmc-drawer-search-plain__submit:hover,
.hcmc-drawer-search-plain__submit:focus {
	background: rgba(46, 125, 50, 0.14);
	color: #1b5e20;
	outline: none;
}

.hcmc-drawer-search-plain__submit:focus-visible {
	outline: 2px solid rgba(46, 125, 50, 0.45);
	outline-offset: -2px;
}

/* ── Drawer Footer — unified premium card ── */
.hcmc-drawer-footer {
	padding: 12px 14px 14px;
	border-top: 1px solid rgba(15, 23, 42, 0.07);
	background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

/* Dr. Cuong Card — compact, linked to WhatsApp */
.hcmc-drawer-doctor-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid rgba(46, 125, 50, 0.18);
	border-radius: 12px;
	background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
	margin-bottom: 8px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
/* Gradient ring wrapper around avatar */
.hcmc-drawer-doctor-card__avatar-ring {
	display: inline-flex;
	flex-shrink: 0;
	padding: 2.5px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2e7d32 0%, #f59e0b 100%);
	box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}
.hcmc-drawer-doctor-card img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid #fff;
	display: block;
}
.hcmc-drawer-doctor-card__info {
	min-width: 0;
	overflow: hidden;
}
.hcmc-drawer-doctor-card__title {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
	margin-bottom: 1px;
}
/* New: credential line */
.hcmc-drawer-doctor-card__cred {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--hcmc-brand-green, #2e7d32);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 3px;
	opacity: 0.85;
}
.hcmc-drawer-doctor-card__sub {
	display: block;
	font-size: 11px;
	color: #64748b;
	line-height: 1.4;
}

/* Primary CTA — WhatsApp (gọn, sang hơn — vẫn đủ vùng chạm) */
.hcmc-drawer-cta-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	padding: 10px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 10px rgba(22, 101, 52, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	margin-bottom: 6px;
	min-height: 44px;
	box-sizing: border-box;
}

.hcmc-drawer-cta-primary svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.hcmc-drawer-cta-primary:hover,
.hcmc-drawer-cta-primary:focus {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(22, 101, 52, 0.28);
	filter: brightness(1.02);
	color: #fff !important;
}

/* Secondary CTA — Pricing (dạng ghost pill, nhẹ hơn khối full) */
.hcmc-drawer-cta-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.85);
	color: #334155 !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	margin-bottom: 12px;
	min-height: 44px;
	box-sizing: border-box;
}

.hcmc-drawer-cta-secondary:hover,
.hcmc-drawer-cta-secondary:focus {
	border-color: rgba(46, 125, 50, 0.35);
	background: rgba(240, 253, 244, 0.65);
	color: var(--hcmc-brand-green, #1b5e20) !important;
}

/* Social Icons Row */
.hcmc-drawer-socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}
.hcmc-drawer-soc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.hcmc-drawer-soc:hover,
.hcmc-drawer-soc:focus {
	background: var(--hcmc-brand-green, #2e7d32);
	color: #fff;
	transform: translateY(-1px);
}

/* Status Row (hours + online dot) */
.hcmc-drawer-status {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	font-size: 11px;
	line-height: 1.45;
	color: #64748b;
	text-align: left;
	max-width: 100%;
	padding: 0 2px;
}
.hcmc-drawer-status__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
	animation: hcmc-drawer-pulse 2s ease-out infinite;
}
@keyframes hcmc-drawer-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
	70%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.hcmc-drawer-status__dot { animation: none; }
}

/* ================================================================
   MOBILE TOGGLE & CLOSE BUTTON — polish Astra's default styles
   ================================================================ */
@media (max-width: 921px) {

	/* Hamburger toggle button — pill style, subtle shadow */
	.hcmc-dental #ast-mobile-header .menu-toggle.main-header-menu-toggle {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 44px !important;
		height: 44px !important;
		border-radius: 12px !important;
		background: #f1f5f9 !important;
		border: 1px solid rgba(15, 23, 42, 0.1) !important;
		box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
		transition: background 0.15s, box-shadow 0.15s !important;
		color: #0f172a !important;
	}

	.hcmc-dental #ast-mobile-header .menu-toggle.main-header-menu-toggle:hover,
	.hcmc-dental #ast-mobile-header .menu-toggle.main-header-menu-toggle:focus {
		background: #e2e8f0 !important;
		box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
		outline: none !important;
	}

	/* When toggled (open state) — green tint to show active */
	.hcmc-dental #ast-mobile-header .menu-toggle.main-header-menu-toggle.toggled {
		background: rgba(46, 125, 50, 0.08) !important;
		border-color: rgba(46, 125, 50, 0.25) !important;
		color: var(--hcmc-brand-green, #2e7d32) !important;
	}

	/* SVG icon inside toggle */
	.hcmc-dental #ast-mobile-header .menu-toggle .ast-mobile-svg {
		width: 20px !important;
		height: 20px !important;
	}

	/* Drawer socials row — tighter spacing */
	.hcmc-drawer-socials {
		gap: 6px !important;
		margin-bottom: 10px !important;
	}
	.hcmc-drawer-soc {
		width: 34px !important;
		height: 34px !important;
	}

	/* Drawer status row — smaller text */
	.hcmc-drawer-status {
		font-size: 10.5px !important;
	}

	/* CTA Row (WhatsApp + Pricing) side by side */
	.hcmc-drawer-cta-row {
		display: flex;
		gap: 8px;
		margin-bottom: 8px !important;
	}
	.hcmc-drawer-cta-primary {
		flex: 1;
		padding: 10px 4px !important;
		font-size: 13px !important;
		letter-spacing: 0 !important;
		box-shadow: 0 2px 8px rgba(22, 101, 52, 0.22) !important;
		margin-bottom: 0 !important;
		justify-content: center;
		white-space: nowrap;
	}
	.hcmc-drawer-cta-primary svg {
		margin-right: 4px !important;
		width: 15px !important;
		height: 15px !important;
	}
	.hcmc-drawer-cta-secondary {
		flex: 1;
		padding: 10px 4px !important;
		font-size: 13px !important;
		margin-bottom: 0 !important;
		justify-content: center;
		white-space: nowrap;
	}
}

/* ================================================================
   SUBMENU DROPDOWN TOGGLE BUTTON — fix ugly box border
   Astra renders .dropdown-menu-toggle inside each menu row
   ================================================================ */
@media (max-width: 921px) {

	/* Remove default Astra box border on the ˅ toggle */
	.hcmc-dental #ast-mobile-header .dropdown-menu-toggle.ast-header-navigation-arrow {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		border-radius: 50% !important;
		border: none !important;
		background: transparent !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		transition: background 0.15s !important;
		box-shadow: none !important;
		outline: none !important;
		margin-right: 0 !important;
	}

	.hcmc-dental #ast-mobile-header .dropdown-menu-toggle.ast-header-navigation-arrow:hover,
	.hcmc-dental #ast-mobile-header .dropdown-menu-toggle.ast-header-navigation-arrow:focus {
		background: rgba(15, 23, 42, 0.04) !important;
		outline: none !important;
	}

	/* Completely hide the ugly Astra SVG icon */
	.hcmc-dental #ast-mobile-header .dropdown-menu-toggle .ast-icon {
		display: none !important;
	}

	/* Use a crisp, modern CSS chevron instead */
	.hcmc-dental #ast-mobile-header .dropdown-menu-toggle.ast-header-navigation-arrow::after {
		content: '';
		display: block;
		width: 7px;
		height: 7px;
		border-right: 2px solid #64748b;
		border-bottom: 2px solid #64748b;
		transform: rotate(45deg);
		margin-top: -3px;
		transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s;
	}

	/* Chevron rotates when expanded */
	.hcmc-dental #ast-mobile-header .ast-submenu-expanded .dropdown-menu-toggle.ast-header-navigation-arrow::after,
	.hcmc-dental #ast-mobile-header .toggled-on > .menu-link > .dropdown-menu-toggle.ast-header-navigation-arrow::after,
	.hcmc-dental #ast-mobile-header [aria-expanded="true"].dropdown-menu-toggle.ast-header-navigation-arrow::after {
		transform: rotate(-135deg);
		border-color: var(--hcmc-brand-green, #2e7d32);
		margin-top: 3px;
	}

	/* WhatsApp contact chip — more prominent than Call/Email */
	.hcmc-drawer-contact--wa {
		background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
		border-color: rgba(46, 125, 50, 0.4) !important;
		color: #15803d !important;
		font-weight: 700 !important;
		font-size: 11.5px !important;
		box-shadow: 0 1px 4px rgba(46, 125, 50, 0.15) !important;
	}
	.hcmc-drawer-contact--wa svg {
		color: #16a34a !important;
	}

	/* Call & Email chips — slightly muted so WhatsApp stands out */
	.hcmc-drawer-contact--call,
	.hcmc-drawer-contact--email {
		opacity: 0.82;
	}
	.hcmc-drawer-contact--call:hover,
	.hcmc-drawer-contact--email:hover {
		opacity: 1;
	}
}


