/* =============================================================================
   Monrei Saigon (monreisaigonmitsubishi.com) — UI refinements 2026
   Ported from the green-skyline.com.vn old-theme UI kit, retinted to this site's own
   palette: wine-red #950028 (header/menu/bottom bar in hwp.com.vn.css), gold #b97e3f
   (Customizer primary) / #e5c079 (light gold accent), dark maroon #3c0202 (footer).
   Loaded last via functions.php (handle: gsky-ui-2026).
   Safe to remove: delete this file + its wp_enqueue_style line in functions.php.

   Sections:
     1. POPUP  — #popup "Nhận báo giá"
                 markup: flatsome-child/hwp-footer.php   (bg image = ACF option gsky_popup_bg)
                 form:   Contact Form 7 #5367 "[Nhận bảng giá]" (hoten, dienthoai, checkbox quantam, submit)
     2. FLOATING CONTACT BUTTONS — .footer-cta-box.gsky-fab (markup in hwp-footer.php)
                 desktop: round buttons stacked bottom-right: 360 / Gọi / Zalo / Báo giá
                 mobile:  bottom bar [Gọi ngay][Nhận bảng giá] + floating 360/Zalo circles
     3. MOBILE HEADER — .gsky-mhead (always solid wine-red, this site's header is not transparent)
     4. DESKTOP HEADER — keeps the site's own textured wine-red header when scrolled;
                 nav items that don't fit on one line collapse into "Xem thêm"
   ========================================================================== */


/* =============================================================================
   1. POPUP — full-bleed background image + frosted-glass info panel on the right
   (ref: Emerald Boulevard document popup)
   ========================================================================== */

/* ---- Overlay behind any Flatsome lightbox ---- */
.mfp-bg { background-color: #1a0206; }
.mfp-bg.mfp-ready { opacity: .86; }
/* Desktop only: on <=849px this site's responsive.css forces `.mfp-wrap{position:inherit!important}`
   (static), and backdrop-filter on a static wrap creates a stacking context at z-index 0 —
   the off-canvas menu + popup then render UNDER .mfp-bg (z 1042) and can't be clicked. */
@media (min-width: 850px) {
	.mfp-wrap { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
}
/* While any lightbox / off-canvas menu is open, hide the floating buttons + mobile header —
   with the static .mfp-wrap above, the menu panel's background would otherwise paint under them. */
body:has(> .mfp-bg) .footer-cta-box.gsky-fab,
body:has(> .mfp-bg) .gsky-mhead { visibility: hidden !important; }

/* ---- The popup card ---- */
#popup.gsky-popup {
	width: 96vw;
	padding: 0 !important;
	color: #fbf1e6 !important;
	background: #2a0409 !important;
	border: 1px solid rgba(255, 255, 255, .12) !important;
	border-radius: 20px !important;
	box-shadow: 0 45px 100px -30px rgba(0, 0, 0, .7) !important;
	overflow: hidden;
}

/* ---- inner wrapper: background layer + right-aligned panel ---- */
#popup.gsky-popup .gsky-popup-inner {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	min-height: min(78vh, 640px);
	padding: 0 !important;
	margin: 0 !important;
}

/* full-bleed background image (set via --gsky-popup-bg inline style) */
#popup.gsky-popup .gsky-popup-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--gsky-popup-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* darkening gradient so the panel side stays readable over any image */
#popup.gsky-popup .gsky-popup-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg,
		rgba(26, 2, 6, 0) 0%,
		rgba(26, 2, 6, .30) 38%,
		rgba(26, 2, 6, .74) 66%,
		rgba(26, 2, 6, .90) 100%);
}

/* ---- the frosted-glass panel ---- */
#popup.gsky-popup .gsky-popup-panel {
	position: relative;
	z-index: 2;
	flex: 0 0 clamp(360px, 52%, 560px);
	align-self: flex-start;         /* top band above stays clear for the X button */
	margin: 52px 22px 22px;
	padding: 26px 28px;
	background: rgba(42, 4, 10, .55);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
	backdrop-filter: blur(18px) saturate(135%);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 70px -30px rgba(0, 0, 0, .6);
}

/* ---- badge ---- */
#popup.gsky-popup .gsky-popup-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 13px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #e5c079;
	border: 1px solid rgba(229, 192, 121, .5);
	border-radius: 999px;
}

/* ---- title + subtitle ---- */
#popup.gsky-popup .gsky-popup-title {
	margin: 0 0 6px !important;
	font-size: 22px !important;
	line-height: 1.32 !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	text-transform: none !important;
}
#popup.gsky-popup .gsky-popup-period { color: #e5c079; white-space: nowrap; }
#popup.gsky-popup .gsky-popup-sub {
	margin: 0 0 13px !important;
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	color: rgba(255, 255, 255, .62) !important;
}

/* ---- benefits checklist ---- */
#popup.gsky-popup .gsky-popup-list {
	list-style: none !important;
	margin: 0 0 15px !important;
	padding: 0 !important;
	display: grid;
	gap: 7px;
}
#popup.gsky-popup .gsky-popup-list li {
	position: relative;
	margin: 0 !important;
	padding-left: 26px;
	font-size: 13.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, .87);
	list-style: none !important;
}
#popup.gsky-popup .gsky-popup-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 13px;
	font-weight: 800;
	color: #e5c079;
}

/* ---- CF7 form ---- */
#popup.gsky-popup .wpcf7 { margin-top: 4px; }
#popup.gsky-popup .wpcf7 .form-group { margin: 0 0 10px; }
#popup.gsky-popup .wpcf7 .form-group > p { margin: 0; }
#popup.gsky-popup .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; }
#popup.gsky-popup .wpcf7-form-control-wrap { display: block; position: static; }

/* validation: small inline message under each field (ref style) */
#popup.gsky-popup .wpcf7-not-valid-tip {
	display: block !important;
	position: static !important;
	margin: 6px 2px 2px !important;
	padding: 0 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: #eba9a9 !important;
	background: none !important;
	border: 0 !important;
}
/* kill the theme's little caret/triangle on the validation tip */
#popup.gsky-popup .wpcf7-not-valid-tip::before,
#popup.gsky-popup .wpcf7-not-valid-tip::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
}
#popup.gsky-popup .wpcf7 input.wpcf7-text.wpcf7-not-valid,
#popup.gsky-popup .wpcf7 input.wpcf7-tel.wpcf7-not-valid,
#popup.gsky-popup .wpcf7 input.wpcf7-text.wpcf7-not-valid:focus,
#popup.gsky-popup .wpcf7 input.wpcf7-tel.wpcf7-not-valid:focus {
	border-color: rgba(235, 140, 140, .85) !important;
	box-shadow: 0 0 0 3px rgba(235, 140, 140, .13) !important;
}
#popup.gsky-popup .wpcf7-checkbox.wpcf7-not-valid + .wpcf7-not-valid-tip { margin-top: 8px !important; }

/* bottom summary: subtle; hidden for plain validation, shown for sent / failed */
#popup.gsky-popup .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 10px 14px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	font-size: 12.5px !important;
	line-height: 1.45 !important;
}
#popup.gsky-popup form.invalid .wpcf7-response-output,
#popup.gsky-popup form.unaccepted .wpcf7-response-output,
#popup.gsky-popup form.payment-required .wpcf7-response-output { display: none !important; }
#popup.gsky-popup form.failed .wpcf7-response-output,
#popup.gsky-popup form.aborted .wpcf7-response-output,
#popup.gsky-popup form.spam .wpcf7-response-output {
	color: #eba9a9 !important;
	border-color: rgba(235, 140, 140, .4) !important;
	background: rgba(235, 140, 140, .08) !important;
}
#popup.gsky-popup form.sent .wpcf7-response-output {
	color: #ecd39c !important;
	border-color: rgba(229, 192, 121, .45) !important;
	background: rgba(229, 192, 121, .10) !important;
}

/* text / tel inputs */
#popup.gsky-popup .wpcf7 input.wpcf7-text,
#popup.gsky-popup .wpcf7 input.wpcf7-tel {
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 13px 15px !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	color: #ffffff !important;
	background: rgba(255, 255, 255, .06) !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	transition: border-color .16s, background-color .16s, box-shadow .16s;
}
#popup.gsky-popup .wpcf7 input.wpcf7-text::placeholder,
#popup.gsky-popup .wpcf7 input.wpcf7-tel::placeholder { color: rgba(255, 255, 255, .5); }
#popup.gsky-popup .wpcf7 input.wpcf7-text:focus,
#popup.gsky-popup .wpcf7 input.wpcf7-tel:focus {
	outline: none !important;
	background: rgba(255, 255, 255, .10) !important;
	border-color: rgba(229, 192, 121, .7) !important;
	box-shadow: 0 0 0 3px rgba(229, 192, 121, .15) !important;
}

/* checkboxes -> selectable pills */
#popup.gsky-popup .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
#popup.gsky-popup .wpcf7-list-item { margin: 0 !important; }
#popup.gsky-popup .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 15px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, .82);
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
#popup.gsky-popup .wpcf7-list-item input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: #e5c079;
	cursor: pointer;
}
#popup.gsky-popup .wpcf7-list-item label:hover { border-color: rgba(229, 192, 121, .55); }
#popup.gsky-popup .wpcf7-list-item:has(input:checked) label {
	color: #ffffff;
	background: rgba(229, 192, 121, .16);
	border-color: rgba(229, 192, 121, .7);
}

/* submit button */
#popup.gsky-popup .wpcf7 input.wpcf7-submit,
#popup.gsky-popup .wpcf7 input.wpcf7-submit[type="submit"] {
	display: block;
	width: 100% !important;
	height: auto !important;
	margin: 12px 0 0 !important;
	padding: 14px 22px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: .3px;
	text-transform: none !important;
	color: #3c0202 !important;
	background: linear-gradient(180deg, #ecd39c 0%, #c99a52 100%) !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 14px 32px -12px rgba(201, 154, 82, .55) !important;
	cursor: pointer;
	transition: filter .16s, transform .16s, box-shadow .16s;
}
#popup.gsky-popup .wpcf7 input.wpcf7-submit:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 18px 38px -12px rgba(201, 154, 82, .6) !important;
}
#popup.gsky-popup .wpcf7 input.wpcf7-submit:active { transform: translateY(0); }
#popup.gsky-popup .wpcf7-spinner { margin: 12px auto 0; display: block; }

/* trust line */
#popup.gsky-popup .gsky-popup-trust {
	margin: 14px 0 0 !important;
	font-size: 12px !important;
	color: rgba(255, 255, 255, .45) !important;
}

/* close button — moved inside the popup (top-right, in the clear band above the panel) by hwp-footer.php */
#popup.gsky-popup { position: relative; }
#popup.gsky-popup .mfp-close,
#popup.gsky-popup.has-inside-close .mfp-close {
	position: absolute !important;
	top: 12px !important;
	right: 14px !important;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	font-size: 22px !important;
	color: #ffffff !important;
	opacity: .9;
	background: rgba(0, 0, 0, .34) !important;
	border: 0 !important;
	border-radius: 50% !important;
	z-index: 20 !important;
	transition: background-color .15s, opacity .15s;
}
#popup.gsky-popup .mfp-close:hover { opacity: 1; background: rgba(0, 0, 0, .5) !important; }
#popup.gsky-popup .mfp-close svg { width: 18px; height: 18px; }
/* fallback if the button is still in the wrap (JS not run yet) */
.mfp-wrap .mfp-close { color: #ffffff !important; opacity: .7; font-size: 34px; }
.mfp-wrap .mfp-close:hover { opacity: 1; }

/* ---- tablet / mobile: full-bleed background, glass panel floats over it (ref look) ---- */
@media (max-width: 850px) {
	/* give the lightbox nearly the full screen */
	.mfp-container { padding: 20px 10px !important; }

	#popup.gsky-popup {
		width: 100% !important;
		max-width: 100% !important;
		max-height: calc(100vh - 64px);
		max-height: calc(100dvh - 64px);
		border-radius: 16px !important;
		display: flex;
		flex-direction: column;
	}
	#popup.gsky-popup .gsky-popup-inner {
		position: relative;
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
	}

	/* background image stays full-bleed behind everything (same as desktop) */
	#popup.gsky-popup .gsky-popup-bg {
		position: absolute;
		inset: 0;
		z-index: 0;
	}
	#popup.gsky-popup .gsky-popup-inner::before {
		inset: 0;
		background: linear-gradient(180deg, rgba(26, 2, 6, .30) 0%, rgba(26, 2, 6, .52) 55%, rgba(26, 2, 6, .72) 100%);
	}

	/* glass panel floats over the image (inset so the image shows around it); scrolls inside,
	   so the popup height stays fixed and the X button stays reachable.
	   top margin leaves a clear band for the X button (no overlap) */
	#popup.gsky-popup .gsky-popup-panel {
		position: relative;
		z-index: 2;
		flex: 1 1 auto;
		min-height: 0;
		width: auto;
		margin: 48px 14px 14px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		border: 1px solid rgba(255, 255, 255, .14);
		border-radius: 16px;
		background: rgba(42, 4, 10, .72);
		-webkit-backdrop-filter: blur(16px) saturate(130%);
		backdrop-filter: blur(16px) saturate(130%);
		padding: 22px 18px;
	}
	#popup.gsky-popup .gsky-popup-panel::-webkit-scrollbar { width: 4px; }
	#popup.gsky-popup .gsky-popup-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
	#popup.gsky-popup .gsky-popup-title { font-size: 19px !important; }
	#popup.gsky-popup .gsky-popup-list { gap: 6px; margin-bottom: 13px !important; }
	#popup.gsky-popup .gsky-popup-list li { font-size: 13px; }

	/* close button: in the clear top band, over the image — never on the panel */
	#popup.gsky-popup .mfp-close,
	#popup.gsky-popup.has-inside-close .mfp-close {
		top: 9px !important;
		right: 11px !important;
		width: 32px !important;
		height: 32px !important;
		font-size: 20px !important;
		background: rgba(0, 0, 0, .42) !important;
		opacity: 1;
	}
	#popup.gsky-popup .mfp-close svg { width: 17px; height: 17px; }
}


/* =============================================================================
   2. FLOATING CONTACT BUTTONS — round, stacked on the bottom-right
   ========================================================================== */

.footer-cta-box.gsky-fab {
	position: fixed !important;
	right: 16px !important;
	bottom: 18px !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: initial !important;
	background: none !important;
	display: block !important;   /* beats responsive.css `.footer-cta-box{display:none}` on mobile */
	z-index: 1000 !important;
}
.footer-cta-box.gsky-fab .cta-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	background: none;
	border: 0;
	padding: 0;
}

/* Desktop: the .gsky-fab-float wrapper (360/Zalo) renders no box of its own — its children
   act as direct children of .cta-box, so hiding either just closes the gap naturally via
   `gap`, same as hiding Gọi ngay already does. Visual desktop order pinned via `order`,
   independent of DOM order (DOM order only matters for the mobile floating stack below). */
.footer-cta-box.gsky-fab .gsky-fab-float { display: contents; }
.footer-cta-box.gsky-fab .gsky-fab--360  { order: 1; }
.footer-cta-box.gsky-fab .gsky-fab--call { order: 2; }
.footer-cta-box.gsky-fab .gsky-fab--zalo { order: 3; }
.footer-cta-box.gsky-fab .gsky-fab--quote{ order: 4; }

.footer-cta-box.gsky-fab .gsky-fab-btn {
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 56px;
	height: 56px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	color: #fff !important;
	line-height: 1.05 !important;
	font-size: 9px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: .2px;
	text-decoration: none !important;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45);
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.footer-cta-box.gsky-fab .gsky-fab-btn > svg {
	width: 22px;
	height: 22px;
	display: block;
}
.footer-cta-box.gsky-fab .gsky-fab-btn > span { display: block; }
/* desktop = icon-only circles (Zalo keeps its wordmark) */
.footer-cta-box.gsky-fab .gsky-fab-btn > span.gsky-fab-label { display: none; }
.footer-cta-box.gsky-fab .gsky-fab-btn:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 14px 28px -6px rgba(0, 0, 0, .55);
	filter: brightness(1.06);
	color: #fff !important;
}

/* per-button colour + ripple colour */
.footer-cta-box.gsky-fab .gsky-fab--360   { background: #b97e3f; --fab-ring: rgba(185, 126, 63, .55); }
.footer-cta-box.gsky-fab .gsky-fab--call  { background: #16a34a; --fab-ring: rgba(22, 163, 74, .60); }
.footer-cta-box.gsky-fab .gsky-fab--zalo  { background: #0068ff; --fab-ring: rgba(0, 104, 255, .55); }
.footer-cta-box.gsky-fab .gsky-fab--quote { background: #950028; --fab-ring: rgba(149, 0, 40, .55); }

.footer-cta-box.gsky-fab .gsky-fab--zalo .gsky-fab-zalo,
.footer-cta-box.gsky-fab .gsky-fab--360 .gsky-fab-360-text {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .3px;
	text-transform: none !important;
}

/* --- effects: expanding ripple rings + phone-icon wiggle --- */
.footer-cta-box.gsky-fab .gsky-fab-btn::before,
.footer-cta-box.gsky-fab .gsky-fab-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	box-shadow: 0 0 0 1px var(--fab-ring, rgba(255, 255, 255, .5));
	animation: gsky-fab-ripple 2.4s ease-out infinite;
}
.footer-cta-box.gsky-fab .gsky-fab-btn::after { animation-delay: 1.2s; }

@keyframes gsky-fab-ripple {
	/* max spread capped at 8px, not 16px — circles sit 14px (desktop) / 12px (mobile float
	   pair) apart, and a 16px spread visibly bled into the neighbouring button (found while
	   porting this same component to ttcapital.net.vn). */
	0%   { box-shadow: 0 0 0 1px var(--fab-ring, rgba(255, 255, 255, .5)); opacity: .9; }
	70%  { opacity: .12; }
	100% { box-shadow: 0 0 0 8px var(--fab-ring, rgba(255, 255, 255, .5)); opacity: 0; }
}

.footer-cta-box.gsky-fab .gsky-fab--call > svg {
	transform-origin: 50% 55%;
	animation: gsky-fab-wiggle 2.4s ease-in-out infinite;
}
@keyframes gsky-fab-wiggle {
	0%, 55%, 100% { transform: rotate(0); }
	8%  { transform: rotate(-19deg); }
	16% { transform: rotate(17deg); }
	24% { transform: rotate(-13deg); }
	32% { transform: rotate(11deg); }
	40% { transform: rotate(-7deg); }
	48% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
	.footer-cta-box.gsky-fab .gsky-fab-btn::before,
	.footer-cta-box.gsky-fab .gsky-fab-btn::after,
	.footer-cta-box.gsky-fab .gsky-fab--call > svg { animation: none !important; }
}

/* ---- mobile: bottom action bar ([Gọi ngay] [Nhận bảng giá]) + floating Zalo circle ---- */
@media (max-width: 849px) {
	.footer-cta-box.gsky-fab {
		right: 0 !important;
		left: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
	}
	.footer-cta-box.gsky-fab .cta-box {
		position: relative;
		flex-direction: row;
		align-items: stretch;
		gap: 10px;
		padding: 9px 12px;
		padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
		background: rgba(26, 2, 6, .55);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .5);
	}

	/* the two wide pills */
	.footer-cta-box.gsky-fab .gsky-fab--call,
	.footer-cta-box.gsky-fab .gsky-fab--quote {
		flex: 1 1 0;
		flex-direction: row;
		gap: 8px;
		width: auto;
		height: 50px;
		border-radius: 12px !important;
		font-size: 14px !important;
		text-transform: none !important;
		letter-spacing: 0;
	}
	.footer-cta-box.gsky-fab .gsky-fab--call  { background: #950028; --fab-ring: transparent; }
	.footer-cta-box.gsky-fab .gsky-fab--quote {
		background: linear-gradient(180deg, #ecd39c 0%, #c99a52 100%);
		color: #3c0202 !important;
		--fab-ring: transparent;
	}
	.footer-cta-box.gsky-fab .gsky-fab--call > svg,
	.footer-cta-box.gsky-fab .gsky-fab--quote > svg { width: 19px; height: 19px; }
	.footer-cta-box.gsky-fab .gsky-fab-btn > span.gsky-fab-label { display: inline; font-weight: 700; }

	/* no ripple rings on the rectangular pills */
	.footer-cta-box.gsky-fab .gsky-fab--call::before,
	.footer-cta-box.gsky-fab .gsky-fab--call::after,
	.footer-cta-box.gsky-fab .gsky-fab--quote::before,
	.footer-cta-box.gsky-fab .gsky-fab--quote::after { display: none; }

	/* 360 / Zalo: floating circles sitting just above the bar, right side. Stacked via a
	   real flex column on the wrapper (not per-button fixed pixel offsets) so they stay
	   adjacent to each other and the bar no matter which of the 2 are actually rendered.
	   Buttons themselves keep `position: relative` from the base rule — do NOT override to
	   `static` here, or the ripple ::before/::after (position:absolute; inset:0) lose their
	   containing block and size against this wrapper instead of the button itself, rendering
	   as a stadium/pill instead of a circle (exact bug hit + fixed on ttcapital.net.vn). */
	.footer-cta-box.gsky-fab .gsky-fab-float {
		display: flex;
		flex-direction: column;
		gap: 12px;
		position: absolute;
		right: 14px;
		bottom: calc(100% + 12px);
	}
	.footer-cta-box.gsky-fab .gsky-fab-float .gsky-fab-btn {
		width: 52px;
		height: 52px;
		flex: none;
		border-radius: 50% !important;
	}
	/* order WITHIN the wrapper's own flex context (independent of the desktop `order`
	   values above) — Zalo closest to the bar (rendered last = bottom of this column). */
	.footer-cta-box.gsky-fab .gsky-fab--360 { order: 1; }
	.footer-cta-box.gsky-fab .gsky-fab--zalo { order: 2; }
	.footer-cta-box.gsky-fab .gsky-fab--zalo .gsky-fab-zalo,
	.footer-cta-box.gsky-fab .gsky-fab--360 .gsky-fab-360-text { font-size: 12px; }
}


/* =============================================================================
   3. MOBILE HEADER — logo + "Đăng ký tư vấn" + hamburger (opens off-canvas #main-menu)
   Shown only <= 849px; replaces the Flatsome header bar and the old icon bottom-bar.
   ========================================================================== */

.gsky-mhead { display: none; }

/* off-canvas menu list: same wine-red tint the site already uses over its bg_menu.jpg */
.off-canvas-center .mfp-container::before {
	background-color: #950028 !important;
	opacity: .92 !important;
}
.off-canvas-center .nav-sidebar.nav-vertical > li > a { color: #fbf1e6 !important; }
.off-canvas-center .nav-sidebar.nav-vertical > li.current-menu-item > a,
.off-canvas-center .nav-sidebar.nav-vertical > li > a:hover { color: #e5c079 !important; }

@media (max-width: 849px) {
	/* hide Flatsome's mobile header bar + the legacy icon bottom bar */
	#header .header-main,
	.header-menu-mobile { display: none !important; }

	.gsky-mhead {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 999;
		height: 60px;
		padding: 0 14px;
		/* Always solid: this site's header sits ABOVE the hero (not overlaid on it like
		   green-skyline), so the transparent-at-top treatment isn't used here. Same textured
		   wine-red as the desktop header / old mobile bottom bar (theme's own background-menu.jpg). */
		background: #950028 url(../images/background-menu.jpg) center / cover no-repeat !important;
		box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .35);
		transition: box-shadow .25s ease;
	}
	.gsky-mhead.gsky-mhead--solid {
		box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .5);
	}
	.gsky-mhead-logo { display: flex; align-items: center; height: 100%; flex: 0 0 auto; }
	.gsky-mhead-logo img {
		max-height: 40px;
		width: auto;
		display: block;
	}
	.gsky-mhead-right { display: flex; align-items: center; gap: 10px; }

	.gsky-mhead-cta {
		display: inline-flex;
		align-items: center;
		height: 38px;
		padding: 0 16px;
		border-radius: 999px;
		font-size: 13px;
		font-weight: 700;
		white-space: nowrap;
		color: #3c0202 !important;
		background: linear-gradient(180deg, #ecd39c 0%, #c99a52 100%);
		text-decoration: none !important;
		box-shadow: 0 8px 18px -8px rgba(201, 154, 82, .6);
	}
	.gsky-mhead-cta:active { transform: translateY(1px); }

	.gsky-mhead-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 4px;
		width: 42px;
		height: 42px;
		border-radius: 10px;
		background: rgba(255, 255, 255, .12);
		border: 1px solid rgba(255, 255, 255, .18);
	}
	.gsky-mhead-burger span {
		display: block;
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: #fff;
	}

	/* push page content below the fixed header (every page incl. home — header is solid) */
	#main { padding-top: 60px; }
}


/* =============================================================================
   4. DESKTOP HEADER — this site's header is already a solid textured wine-red bar
      (background-menu.jpg on .header-main), NOT transparent-over-hero like green-skyline,
      so on scroll we only add a wine-red fallback colour + shadow (texture stays visible);
      nav colours are left to the Customizer. "Xem thêm" dropdown built by JS in hwp-footer.php.
   ========================================================================== */

@media (min-width: 850px) {
	#header .header-wrapper { transition: box-shadow .28s ease; }

	/* scrolled state (class toggled by JS; Flatsome sticky-jump also adds .stuck) —
	   colour sits UNDER .header-main's texture image, only shows if the image fails to load */
	#header.gsky-hstuck .header-wrapper,
	#header.gsky-hstuck #masthead { background-color: #950028; }
	#header.gsky-hstuck .header-wrapper { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .55); }

	/* remove the "|" dividers between nav items (Flatsome puts them on `li + li > a::after`) */
	#header .nav-divided > li + li > a::after,
	#header .header-nav.nav-divided > li > a::after,
	#header .header-nav-main.nav-divided > li > a::after {
		content: none !important;
		display: none !important;
		border: 0 !important;
	}

	/* ---- "Xem thêm" dropdown ---- */
	/* make sure no header ancestor clips the pop-out */
	#header .header-inner,
	#header .header-nav,
	#header .header-nav-main,
	#header .header-nav-main .gsky-more { overflow: visible !important; }

	#header .header-nav-main .gsky-more { position: relative; }
	#header .header-nav-main .gsky-more > a { cursor: pointer; }
	#header .header-nav-main .gsky-more > a .icon-angle-down { font-size: 11px; margin-left: 5px; opacity: .8; }
	#header .header-nav-main .gsky-more::before,
	#header .header-nav-main .gsky-more::after,
	#header .header-nav-main .gsky-more > .gsky-more-menu::before,
	#header .header-nav-main .gsky-more > .gsky-more-menu::after { content: none !important; display: none !important; }

	#header .header-nav-main .gsky-more > .gsky-more-menu {
		position: absolute;
		top: 100%;                 /* flush with the item — no hover gap */
		right: 0;
		left: auto;
		min-width: 214px;
		margin: 0;
		padding: 7px 0;
		list-style: none;
		background: #950028;
		border: 1px solid rgba(255, 255, 255, .1);
		border-radius: 10px;
		box-shadow: 0 22px 46px -14px rgba(0, 0, 0, .55);
		opacity: 0;
		visibility: hidden;
		transition: opacity .16s ease, visibility 0s linear .16s;
		z-index: 9999;
	}
	#header .header-nav-main .gsky-more:hover > .gsky-more-menu,
	#header .header-nav-main .gsky-more:focus-within > .gsky-more-menu {
		opacity: 1;
		visibility: visible;
		transition: opacity .16s ease, visibility 0s;
	}
	#header .header-nav-main .gsky-more > .gsky-more-menu > li {
		display: block !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		list-style: none;
	}
	#header .header-nav-main .gsky-more > .gsky-more-menu > li::before { display: none !important; }
	#header .header-nav-main .gsky-more > .gsky-more-menu > li > a {
		display: block !important;
		padding: 9px 20px !important;
		margin: 0 !important;
		font-size: 14px;
		line-height: 1.4;
		font-weight: 500;
		color: #fbf1e6 !important;
		white-space: nowrap;
		text-transform: uppercase; /* this site's nav is uppercase */
		border: 0 !important;
	}
	#header .header-nav-main .gsky-more > .gsky-more-menu > li > a:hover,
	#header .header-nav-main .gsky-more > .gsky-more-menu > li.current-menu-item > a {
		color: #e5c079 !important;
		background: rgba(255, 255, 255, .05);
	}
	#header .header-nav-main .gsky-more > .gsky-more-menu .ux-menu-icon { display: none; }
}
