/* =========================================
   0. Variables & Base
   ========================================= */
:root {
	--hotline-primary: #00A502;
	--hotline-secondary: #FAC100;
	--hotline-tertiary: #E6A400;
	--hotline-danger: #D80000;
	--hotline-text: #FFFFFF;
	--hotline-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--hotline-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	--hotline-glass: rgba(255, 255, 255, 0.1);
	--hotline-gradient: linear-gradient(135deg, #0b8511 0%, #15961b 100%);
}

/* =========================================
   1. Desktop Footer Bar (.footer-additional)
   ========================================= */
.footer-additional {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 50px;
	/* Slightly taller for better touch target */
	z-index: 9999;
	background: var(--hotline-gradient);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	font-family: var(--hotline-font);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.footer-additional ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0;
	/* Removing gap, using borders */
}

.footer-additional ul li {
	margin: 0;
	padding: 0 25px;
	/* More breathing room */
	position: relative;
	list-style: none !important;
}

.footer-additional ul li::before,
.footer-additional ul li::after {
	display: none !important;
}

/* Vertical Separators */
.footer-additional ul li:not(:last-child) {
	border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-additional ul li a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--hotline-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-additional ul li a:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.footer-additional ul li img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.footer-additional ul li span {
	display: block;
	text-align: left;
}

@media only screen and (max-width: 600px) {
	.footer-additional {
		display: none;
	}
}

/* =========================================
   2. Mobile Footer Bar (.mobile-hotline)
   ========================================= */
.mobile-hotline {
	display: none;
}

@media (max-width: 767px) {
	.mobile-hotline {
		display: flex !important;
		justify-content: center;
		align-items: center;
		position: fixed;
		bottom: 10px !important;
		left: 10px !important;
		right: 10px !important;
		width: auto !important;
		/* Auto width based on margins */
		height: 60px !important;
		z-index: 9999999;
		background: rgba(255, 255, 255, 0.9) !important;
		backdrop-filter: blur(12px) !important;
		-webkit-backdrop-filter: blur(12px) !important;
		border-radius: 16px !important;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
		padding: 5px !important;
		gap: 8px !important;
		/* Gap between buttons */
	}

	.hotline {
		display: block !important;
	}

	.mobile-hotline-item {
		flex: 1 !important;
		height: 100% !important;
		border-radius: 12px !important;
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		position: relative;
		overflow: hidden;
		transition: transform 0.1s active;
		margin: 0 !important;
		/* Reset any float margins */
		max-width: none !important;
		/* Reset any max-width */
	}

	.mobile-hotline-item:active {
		transform: scale(0.96);
	}

	/* Primary Action (Call) */
	.mobile-hotline-left {
		background: linear-gradient(135deg, #00A502 0%, #00C602 100%) !important;
		box-shadow: 0 2px 8px rgba(0, 165, 2, 0.3) !important;
	}

	/* Secondary Action (Zalo) */
	.mobile-hotline-right {
		background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%) !important;
		box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3) !important;
	}

	/* Tertiary Action (Zalo 2) */
	.mobile-hotline-right-2 {
		background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%) !important;
		box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3) !important;
	}

	.mobile-hotline-right:last-child {
		margin-right: 0 !important;
	}

	.mobile-hotline-item a {
		display: flex !important;
		flex-direction: column !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		text-decoration: none;
		color: white;
		font-family: var(--hotline-font);
		padding: 4px 8px !important;
		box-sizing: border-box;
	}

	.mobile-hotline-right a,
	.mobile-hotline-right-2 a {
		color: #333 !important;
		/* Darker text for yellow buttons for contrast */
	}

	.mobile-hotline-item img {
		height: 20px !important;
		width: 20px !important;
		margin-bottom: 3px !important;
		filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
		flex-shrink: 0;
	}

	.mobile-hotline-item span {
		/* Implicit wrapper if any, or just text */
		font-size: 12px !important;
		font-weight: 600 !important;
		letter-spacing: 0.3px;
		line-height: 1.2;
		margin-top: 0;
		display: block !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
}

/* =========================================
   3. Floating Call Button (.hotline-phone-ring-wrap)
   ========================================= */
.hotline-phone-ring-wrap {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 999999;
}

@media screen and (max-width: 768px) {
	.hotline-phone-ring-wrap {
		display: none !important;
	}
}

.hotline-phone-ring {
	position: relative;
	visibility: visible;
	background-color: transparent;
	width: 90px;
	height: 90px;
	cursor: pointer;
	z-index: 11;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Circles Animation */
.hotline-phone-ring-circle {
	width: 100%;
	height: 100%;
	position: absolute;
	background-color: transparent;
	border-radius: 50%;
	border: 2px solid rgba(230, 8, 8, 0.5);
	opacity: 0.5;
	animation: phonering-alo-circle-anim 2s infinite ease-in-out;
}

.hotline-phone-ring-circle-fill {
	width: 70%;
	height: 70%;
	position: absolute;
	background-color: rgba(230, 8, 8, 0.2);
	border-radius: 50%;
	animation: phonering-alo-circle-fill-anim 2s infinite ease-in-out;
}

.hotline-phone-ring-img-circle {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #E60808 0%, #FF4D4D 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	box-shadow: 0 4px 10px rgba(230, 8, 8, 0.4);
	animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
}

.hotline-phone-ring-img-circle img {
	width: 24px;
	height: 24px;
}

/* Desktop Floating Bar Text */
.hotline-bar {
	position: absolute;
	background: linear-gradient(135deg, #E60808 0%, #C40000 100%);
	height: 44px;
	width: 190px;
	line-height: 44px;
	border-radius: 22px;
	padding-left: 55px;
	/* Make space for the circle */
	padding-right: 20px;
	left: 20px;
	/* Align with center of circle */
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	pointer-events: none;
}

.hotline-phone-ring-wrap:hover .hotline-bar {
	opacity: 1;
	visibility: visible;
	left: 45px;
	/* Slide effect */
	pointer-events: auto;
}

.hotline-bar>a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--hotline-font);
	white-space: nowrap;
}

@media (max-width: 768px) {
	.hotline-bar {
		display: none;
	}
}

/* Animations */
@keyframes phonering-alo-circle-anim {
	0% {
		transform: rotate(0) scale(0.5) skew(1deg);
		opacity: 0.1;
	}

	30% {
		transform: rotate(0) scale(0.7) skew(1deg);
		opacity: 0.5;
	}

	100% {
		transform: rotate(0) scale(1) skew(1deg);
		opacity: 0.1;
	}
}

@keyframes phonering-alo-circle-fill-anim {
	0% {
		transform: rotate(0) scale(0.7) skew(1deg);
		opacity: 0.6;
	}

	50% {
		transform: rotate(0) scale(1) skew(1deg);
		opacity: 0.6;
	}

	100% {
		transform: rotate(0) scale(0.7) skew(1deg);
		opacity: 0.6;
	}
}

@keyframes phonering-alo-circle-img-anim {
	0% {
		transform: rotate(0) scale(1) skew(1deg);
	}

	10% {
		transform: rotate(-25deg) scale(1) skew(1deg);
	}

	20% {
		transform: rotate(25deg) scale(1) skew(1deg);
	}

	30% {
		transform: rotate(-25deg) scale(1) skew(1deg);
	}

	40% {
		transform: rotate(25deg) scale(1) skew(1deg);
	}

	50% {
		transform: rotate(0) scale(1) skew(1deg);
	}

	100% {
		transform: rotate(0) scale(1) skew(1deg);
	}
}