/* ---------- Bong bóng mời chat (góc phải, cạnh nút nổi) ---------- */
.cobatour-teaser {
	position: fixed;
	right: 84px;
	bottom: 84px;
	z-index: 1000;
	width: min(320px, calc(100vw - 32px));
	padding: 16px 16px 14px;
	border-radius: 14px;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 12px 40px rgba(15, 23, 42, .22);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s;
}
.cobatour-teaser.is-visible {
	opacity: 1;
	transform: none;
}
.cobatour-teaser::after {
	/* mũi nhọn chỉ về nút chat */
	content: "";
	position: absolute;
	right: -7px;
	bottom: 26px;
	width: 14px;
	height: 14px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: 4px -4px 8px rgba(15, 23, 42, .06);
}
.cobatour-teaser__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #6b7280;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.cobatour-teaser__close:hover {
	background: #f3f4f6;
}
.cobatour-teaser__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.cobatour-teaser__head img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.cobatour-teaser__head strong {
	display: block;
	font-size: 15px;
}
.cobatour-teaser__head span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6b7280;
}
.cobatour-teaser__head i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}
.cobatour-teaser p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.55;
}
.cobatour-teaser__actions {
	display: flex;
	gap: 8px;
}
.cobatour-teaser__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--primary) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}
.cobatour-teaser__btn.is-primary {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
}

/* ---------- Thanh đặt tour cố định ở đáy trang tour ---------- */
.cobatour-tourbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 998;
	background: #fff;
	box-shadow: 0 -6px 24px rgba(15, 23, 42, .14);
	transform: translateY(110%);
	transition: transform .25s;
}
.cobatour-tourbar.is-visible {
	transform: none;
}
.cobatour-tourbar__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 10px 96px 10px 24px; /* chừa chỗ cột nút nổi bên phải */
}
.cobatour-tourbar__img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex: none;
}
.cobatour-tourbar__info {
	flex: 1;
	min-width: 0;
}
.cobatour-tourbar__info strong {
	display: block;
	overflow: hidden;
	font-size: 15px;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.cobatour-tourbar__price {
	color: var(--wp--preset--color--secondary);
	font-weight: 700;
}
.cobatour-tourbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}
.cobatour-tourbar__call {
	display: none;
}
.cobatour-tourbar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 22px;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--primary) !important;
	font: inherit;
	font-weight: 700;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}
.cobatour-tourbar__btn.is-book {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	color: #fff !important;
}
/* Thanh tour đang hiện: đẩy cột nút nổi lên trên thanh. */
.cobatour-tourbar-on .cobatour-float-contact {
	bottom: 96px;
}
.cobatour-tourbar-on .cobatour-teaser {
	bottom: 104px;
}

@media (max-width: 849px) {
	.cobatour-teaser {
		right: 16px;
		bottom: calc(68px + env(safe-area-inset-bottom));
	}
	.cobatour-teaser::after {
		display: none;
	}
	/* Trang tour: thanh tour thay cho thanh Gọi / Zalo / Chat chung khi đang hiện. */
	.cobatour-tourbar-on .cobatour-float-contact {
		display: none;
	}
	.cobatour-tourbar-on .cobatour-teaser {
		bottom: calc(76px + env(safe-area-inset-bottom));
	}
	.cobatour-tourbar__inner {
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	}
	.cobatour-tourbar__img,
	.cobatour-tourbar__info {
		display: none;
	}
	.cobatour-tourbar__actions {
		flex: 1;
	}
	.cobatour-tourbar__call {
		display: grid;
		place-items: center;
		width: 46px;
		height: 46px;
		border-radius: 8px;
		background: #f87810;
		color: #1f2937 !important;
		flex: none;
	}
	.cobatour-tourbar__btn {
		flex: 1;
		padding: 0 10px;
	}
}
