/* 1.66.0 "Ask Eco Trip Asia" chat (ETA_Chat). Bottom-right; the music button sits bottom-left. */
.eta-chat { --eta-chat-b: 22px; position: fixed; right: 18px; bottom: calc(var(--eta-chat-b) + env(safe-area-inset-bottom, 0px)); z-index: 999; font-family: var(--eta-font, system-ui, sans-serif); transition: bottom .25s ease; }
.eta-chat[hidden] { display: none; }
.eta-chat-fab { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: var(--eta-forest, #0b2315); color: #fff; font: 700 15px/1 var(--eta-font, system-ui, sans-serif); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.eta-chat-fab:hover { transform: translateY(-2px); background: #133a24; }
.eta-chat-fab:focus-visible { outline: 3px solid var(--eta-lime, #c6ef3f); outline-offset: 3px; }
.eta-chat-fab .eta-chat-ico { color: var(--eta-lime, #c6ef3f); flex: none; }
.eta-chat-fab .is-close, .eta-chat.is-open .eta-chat-fab .is-open { display: none; }
.eta-chat.is-open .eta-chat-fab .is-close { display: block; }
.eta-chat.is-open .eta-chat-fab-label { display: none; }
.eta-chat.is-open .eta-chat-fab { width: 52px; padding: 0; justify-content: center; }

.eta-chat-panel { position: absolute; right: 0; bottom: 64px; display: flex; flex-direction: column; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px)); height: min(600px, calc(100dvh - 120px)); background: #fff; color: var(--eta-ink, #17201b); border-radius: 18px; box-shadow: 0 22px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.eta-chat-panel[hidden] { display: none; }
.eta-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 18px; background: var(--eta-forest, #0b2315); color: #fff; }
.eta-chat-title { margin: 0; font: 700 17px/1.25 var(--eta-font-head, var(--eta-font, system-ui, sans-serif)); color: #fff; }
.eta-chat-sub { margin: 3px 0 0; font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.eta-chat-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.eta-chat-x:hover { background: rgba(255, 255, 255, .2); }

.eta-chat-log { flex: 1 1 auto; overflow-y: auto; padding: 16px 14px 8px; background: #f5f8f6; overscroll-behavior: contain; }
.eta-chat-msg { max-width: 88%; margin: 0 0 10px; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.eta-chat-msg p { margin: 0 0 8px; }
.eta-chat-msg p:last-child, .eta-chat-msg ul:last-child, .eta-chat-msg ol:last-child { margin-bottom: 0; }
.eta-chat-msg ul, .eta-chat-msg ol { margin: 0 0 8px; padding-left: 20px; }
.eta-chat-msg li { margin: 0 0 4px; }
.eta-chat-msg a { color: var(--eta-green, #16793a); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.eta-chat-msg.is-bot { background: #fff; border: 1px solid #e2e9e5; border-bottom-left-radius: 4px; }
.eta-chat-msg.is-me { margin-left: auto; background: var(--eta-green, #16793a); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.eta-chat-msg.is-err { background: #fff4f2; border: 1px solid #f3c9c1; color: #7a2a1d; }
.eta-chat-msg.is-wait::after { content: ""; display: inline-block; width: 28px; height: 8px; vertical-align: middle; background: radial-gradient(circle 3.5px, #8aa597 95%, transparent) 0 50% / 10px 8px repeat-x; animation: eta-chat-dots 1s steps(4) infinite; }
@keyframes eta-chat-dots { from { width: 0; } to { width: 32px; } }

.eta-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; background: #f5f8f6; }
.eta-chat-chips:empty { display: none; }
.eta-chat-chip { margin: 0; padding: 7px 12px; border: 1px solid #cfe0d6; border-radius: 999px; background: #fff; color: var(--eta-forest, #0b2315); font: 600 13px/1.2 var(--eta-font, system-ui, sans-serif); cursor: pointer; }
.eta-chat-chip:hover { border-color: var(--eta-green, #16793a); }

.eta-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e2e9e5; background: #fff; }
.eta-chat-form textarea { flex: 1 1 auto; min-height: 42px; max-height: 120px; margin: 0; padding: 10px 12px; border: 1px solid #cfdad3; border-radius: 12px; background: #fff; color: inherit; font: 15px/1.4 var(--eta-font, system-ui, sans-serif); resize: none; }
.eta-chat-form textarea:focus { outline: none; border-color: var(--eta-green, #16793a); box-shadow: 0 0 0 3px rgba(22, 121, 58, .15); }
.eta-chat-send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: var(--eta-green, #16793a); color: #fff; cursor: pointer; }
.eta-chat-send:disabled { opacity: .45; cursor: default; }
.eta-chat-note { margin: 0; padding: 0 14px 12px; background: #fff; font-size: 11.5px; line-height: 1.4; color: #5d6b63; }
.eta-chat-wa { color: #128c4a; font-weight: 700; }

@media (max-width: 600px) {
	.eta-chat { right: 12px; }
	.eta-chat-fab { height: 48px; padding: 0 15px 0 13px; font-size: 14px; }
	.eta-chat.is-open .eta-chat-fab { width: 48px; }
	.eta-chat.is-open { left: 0; right: 0; bottom: 0; }
	.eta-chat.is-open .eta-chat-fab { display: none; }
	.eta-chat.is-open .eta-chat-panel { position: fixed; inset: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.eta-chat-msg { font-size: 15px; }
	.eta-chat-form textarea { font-size: 16px; } /* no iOS zoom on focus */
}
@media (prefers-reduced-motion: reduce) {
	.eta-chat, .eta-chat-fab { transition: none; }
	.eta-chat-msg.is-wait::after { animation: none; width: 32px; }
}
.eta-chat .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pango, the Eco Trip Asia mascot (assets/pango/) */
.eta-chat-fab { padding-left: 6px; }
.eta-chat-fab-ava { width: 40px; height: 40px; border-radius: 50%; background: #e8f4ff; box-shadow: 0 0 0 2px var(--eta-lime, #c6ef3f); }
.eta-chat.is-open .eta-chat-fab .is-open { display: none; }
.eta-chat-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eta-chat-head-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e8f4ff; box-shadow: 0 0 0 2px var(--eta-lime, #c6ef3f); }
.eta-chat-row { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 10px; }
.eta-chat-row .eta-chat-msg { margin: 0; max-width: calc(100% - 46px); }
.eta-chat-row-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e8f4ff; }
.eta-chat-hello { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 12px; }
.eta-chat-hello img { flex: none; width: 92px; height: auto; border-radius: 14px; }
.eta-chat-hello .eta-chat-msg { margin: 0 0 6px; max-width: none; flex: 1 1 auto; }
.eta-chat-sleep { display: block; width: 140px; height: auto; margin: 0 0 8px; border-radius: 10px; }
@media (max-width: 600px) {
	.eta-chat-fab { padding-left: 5px; }
	.eta-chat-fab-ava { width: 38px; height: 38px; }
}

/* 1.66.0 (owner 02/12: "trên điện thoại cho nhỏ nhỏ thôi"): on phones Pango is a small round button, no label. */
@media (max-width: 600px) {
	.eta-chat { right: 10px; }
	.eta-chat-fab-label { display: none; }
	.eta-chat-fab, .eta-chat.is-open .eta-chat-fab { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
	.eta-chat-fab-ava { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--eta-lime, #c6ef3f); }
}

/* 1.66.1 (owner 02/12: "trên máy tính cho to lên"): a bigger Pango button on computers. */
@media (min-width: 601px) {
	.eta-chat { right: 22px; }
	.eta-chat-fab { height: 66px; gap: 10px; padding: 0 24px 0 7px; font-size: 17px; }
	.eta-chat-fab-ava { width: 54px; height: 54px; box-shadow: 0 0 0 3px var(--eta-lime, #c6ef3f); }
	.eta-chat.is-open .eta-chat-fab { width: 66px; padding: 0; }
	.eta-chat-fab .eta-chat-ico.is-close { width: 26px; height: 26px; }
	.eta-chat-panel { bottom: 80px; }
}
