/**
 * Floating contact CTA — pill buttons (Zalo + Hotline).
 *
 * Loaded independently so it still appears on Elementor templates.
 *
 * @package Yusung
 */

.yusung-floating-cta {
	--yusung-cta-zalo: #ef8121;
	--yusung-cta-zalo-hover: #d9731a;
	--yusung-cta-hotline: #e62129;
	--yusung-cta-hotline-hover: #cc1d24;

	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	font-family: inherit;
}

.yusung-floating-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.yusung-floating-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.yusung-floating-cta__btn--zalo {
	background: var(--yusung-cta-zalo);
}

.yusung-floating-cta__btn--zalo:hover,
.yusung-floating-cta__btn--zalo:focus-visible {
	background: var(--yusung-cta-zalo-hover);
	color: #fff;
}

.yusung-floating-cta__btn--hotline {
	background: var(--yusung-cta-hotline);
}

.yusung-floating-cta__btn--hotline:hover,
.yusung-floating-cta__btn--hotline:focus-visible {
	background: var(--yusung-cta-hotline-hover);
	color: #fff;
	text-decoration: none;
}

.yusung-floating-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.yusung-floating-cta__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.yusung-floating-cta.is-open .yusung-floating-cta__btn--zalo {
	background: var(--yusung-cta-zalo-hover);
}

.yusung-floating-cta__panel {
	width: 250px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
	overflow: hidden;
}

.yusung-floating-cta__title {
	margin: 0;
	padding: 12px 14px;
	background: var(--yusung-cta-zalo);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.yusung-floating-cta__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yusung-floating-cta__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	color: #0f172a;
	text-decoration: none;
	border-bottom: 1px solid #e2e8f0;
	transition: background 0.15s ease;
}

.yusung-floating-cta__list li:last-child .yusung-floating-cta__item {
	border-bottom: 0;
}

.yusung-floating-cta__item:hover {
	background: #f1f5f9;
	color: #0f172a;
	text-decoration: none;
}

.yusung-floating-cta__item-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--yusung-cta-zalo);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yusung-floating-cta__item-icon svg {
	width: 16px;
	height: 16px;
}

.yusung-floating-cta__item-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.yusung-floating-cta__item-name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}

.yusung-floating-cta__item-phone {
	font-size: 13px;
	color: #64748b;
	line-height: 1.3;
}

@media (max-width: 480px) {
	.yusung-floating-cta {
		right: 14px;
		bottom: 14px;
	}

	.yusung-floating-cta__btn {
		min-width: 200px;
		padding: 11px 22px;
		font-size: 14px;
	}

	.yusung-floating-cta__panel {
		width: min(250px, calc(100vw - 88px));
	}
}
