/*
Theme Name: Flatsome Child
Description: Child theme for HoaConcept based on Flatsome
Author: HoaConcept / UX Themes
Template: flatsome
Version: 3.0
Text Domain: flatsome-child
*/

/*************** ADD CUSTOM CSS HERE. ***************/

/* HoaConcept Floating Contact Widget (replaces chaty-pro) */
.hc-float-contact {
	position: fixed;
	right: 18px;
	bottom: 22px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hc-fc-btn {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-fc-btn:hover,
.hc-fc-btn:focus-visible {
	transform: translateY(-2px) scale(1.06);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	color: #fff !important;
}

.hc-fc-messenger { background: #0084ff; }
.hc-fc-zalo      { background: #0068ff; }
.hc-fc-phone     { background: #03c977; }
.hc-fc-email     { background: #ff485f; }

.hc-fc-zalo img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}

.hc-fc-tooltip {
	position: absolute;
	right: 58px;
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background: #33241a;
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	padding: 6px 11px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.hc-fc-btn:hover .hc-fc-tooltip,
.hc-fc-btn:focus-visible .hc-fc-tooltip {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

@media only screen and (max-width: 48em) {
	/*************** ADD MOBILE ONLY CSS HERE ***************/
	.hc-float-contact {
		right: 12px;
		bottom: 16px;
		gap: 8px;
	}
	.hc-fc-btn {
		width: 44px;
		height: 44px;
	}
	.hc-fc-tooltip {
		display: none;
	}
}

/* Unified Flatsome [accordion-item]: Right-aligned toggle icon & exact vertical centering */
.accordion .accordion-item > a.accordion-title {
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px;
	padding: 16px 18px 16px 22px !important;
	text-align: left !important;
}
.accordion .accordion-item > a.accordion-title > span {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}
.accordion .accordion-item > a.accordion-title > button.toggle {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	flex: 0 0 30px;
	border-radius: 50% !important;
	background: rgba(51, 36, 26, 0.055) !important;
	color: #B2623A !important;
	opacity: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	transform: rotate(0deg) !important;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, color 0.22s ease !important;
}
.accordion .accordion-item > a.accordion-title:hover > button.toggle {
	background: rgba(178, 98, 58, 0.14) !important;
}
.accordion .accordion-item > a.accordion-title.active > button.toggle {
	background: #B2623A !important;
	color: #fff !important;
	transform: rotate(-180deg) !important;
}
.accordion .accordion-item > a.accordion-title > button.toggle i {
	position: static !important;
	top: 0 !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	line-height: 1 !important;
	transform: none !important;
}
