/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.01
*/

/*************** ADD CUSTOM CSS HERE. ***************/

/* Css CTA stick web */
.ktm-pc-contact-bar {
	left: 15px !important; /* chuyển sang bên trái */
	right: auto !important;
	bottom: 15px !important;
	position: fixed;
	z-index: 998;
	margin-bottom: 0;
}
.ktm-pc-contact-bar li.contact-cta {
	position: relative;
	display: flex;
	width: 60px;
	height: 60px;
	list-style: none;
	border-radius: 99px;
	margin-bottom: 10px;
	cursor: pointer;
}
.ktm-pc-contact-bar li.contact-cta:last-child {
	margin-bottom: 0;
}
.ktm-pc-contact-bar li.contact-cta > a {
	display: flex;
	width: 50px;
	height: 50px;
	border-radius: 99px;
	background: var(--somecolor);
	margin: auto;
}
.ktm-pc-contact-bar li.contact-cta i {
	color: #fff;
	display: flex;
	margin: auto;
	padding: 10px;
	font-size: 130%;
}
.contact-hotline {
	position: absolute;
	bottom: -50px;
	right: 70px; /* đổi từ left sang right để hiển thị đúng */
	width: 400px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0px 32px 64px rgb(0 0 0 / 16%);
	overflow: hidden;
	opacity: 0;
	transition: 0.5s;
	transform: scale(0.1);
}
.active .contact-hotline {
	opacity: 1;
	transition: 0.5s;
	right: -415px;
	transform: scale(1);
}
.contact-heading {
	padding: 10px;
	text-align: center;
	background: #ff3932;
	color: #fff;
	margin-bottom: 10px;
}
.contact-heading:after {
	content: 'X';
	position: absolute;
	right: 15px;
}
.hotline-contact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	font-size: 18px;
}
.hotline-contact img {
	width: 50px;
	padding: 10px 5px;
}

/* Animation keyframes */
@-webkit-keyframes tada {
	0% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
	10%, 20% {
		-webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
		transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
	}
	30%, 50%, 70%, 90% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
		transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
	}
	40%, 60%, 80% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
		transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
	}
	100% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
}
@keyframes tada {
	0% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
	10%, 20% {
		-webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
		transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
	}
	30%, 50%, 70%, 90% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
		transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
	}
	40%, 60%, 80% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
		transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
	}
	100% {
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
}
.button-tada {
	animation-name: tada;
	-webkit-animation-name: tada;
	animation-delay: 0s;
	-webkit-animation-delay: 0s;
	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
}

/* Mobile view – cũng đưa về bên trái */
@media (max-width: 767px) {
	.ktm-pc-contact-bar {
		left: 15px !important;
		right: auto !important;
	}
	.ktm-pc-contact-bar #top-link {
		display: none;
	}
	.contact-hotline {
		bottom: -320px;
		right: calc((100vw - 90px)*-1);
		left: auto;
		width: calc(100vw - 65px);
	}
	.active .contact-hotline {
		bottom: 30px;
		right: calc((100vw - 90px)*-1);
		left: auto;
	}
	.hotline-contact {
		padding: 0 10px;
		font-size: 80%;
	}
	.hotline-contact img {
		width: 40px;
		padding: 5px;
	}
}
