/* Floating travel assistant (bottom right) */
.yct-as { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 100; font-family: var(--font-body, inherit); }
.yct-as[hidden] { display: none; }
body.yct-has-as .wa-float { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

.yct-as-fab { position: relative; display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; background: var(--blue, #2C8300); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 26px rgba(17,22,17,.30); transition: transform .15s ease, background .15s ease; }
.yct-as-fab:hover { background: var(--blue-dark, #1F5E00); transform: translateY(-1px); }
.yct-as-fab:focus-visible, .yct-as-close:focus-visible, .yct-as-chip:focus-visible, .yct-as-form button:focus-visible { outline: 3px solid var(--gold, #FFCB57); outline-offset: 2px; }
.yct-as-dot { position: absolute; top: 6px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold, #FFCB57); border: 2px solid #fff; }
.yct-as.is-seen .yct-as-dot { display: none; }
.yct-as.is-open .yct-as-fab { display: none; }

.yct-as-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(17,22,17,.28); overflow: hidden; border: 1px solid var(--line, #E4E9E2); transform-origin: bottom right; animation: yctAsIn .18s ease-out; }
.yct-as-panel[hidden] { display: none; }
@keyframes yctAsIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.yct-as-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--blue, #2C8300); color: #fff; }
.yct-as-head strong { display: block; font-size: 15.5px; font-family: var(--font-head, inherit); }
.yct-as-head small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; }
.yct-as-close { background: rgba(255,255,255,.16); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.yct-as-close:hover { background: rgba(255,255,255,.3); }

.yct-as-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg-soft, #F5F8F3); display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.yct-as-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.yct-as-msg.a { align-self: flex-start; background: #fff; color: var(--ink, #111611); border: 1px solid var(--line, #E4E9E2); border-bottom-left-radius: 4px; }
.yct-as-msg.u { align-self: flex-end; background: var(--blue, #2C8300); color: #fff; border-bottom-right-radius: 4px; }
.yct-as-links { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 7px; max-width: 94%; }
.yct-as-links a { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; background: #fff; color: var(--blue-dark, #1F5E00); border: 1px solid var(--blue, #2C8300); font-size: 13px; font-weight: 600; text-decoration: none; }
.yct-as-links a:hover { background: var(--blue, #2C8300); color: #fff; }
.yct-as-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line, #E4E9E2); border-radius: 14px; }
.yct-as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft, #5B6357); animation: yctAsBlink 1s infinite ease-in-out; }
.yct-as-typing i:nth-child(2) { animation-delay: .15s; } .yct-as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes yctAsBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.yct-as-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 12px 0; background: var(--bg-soft, #F5F8F3); }
.yct-as-chips:empty { display: none; }
.yct-as-chip { border: 1px solid var(--line, #E4E9E2); background: #fff; color: var(--ink, #111611); padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.yct-as-chip:hover { border-color: var(--blue, #2C8300); color: var(--blue, #2C8300); }

.yct-as-form { display: flex; gap: 8px; padding: 12px; background: var(--bg-soft, #F5F8F3); }
.yct-as-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line, #E4E9E2); border-radius: 999px; font-size: 16px; background: #fff; color: var(--ink, #111611); }
.yct-as-form input:focus { outline: 2px solid var(--blue, #2C8300); border-color: transparent; }
.yct-as-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blue, #2C8300); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.yct-as-form button:disabled { opacity: .5; cursor: default; }
.yct-as-note { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--ink-soft, #5B6357); background: var(--bg-soft, #F5F8F3); text-align: center; }

.yct-as-lead { align-self: stretch; background: #fff; border: 1px solid var(--line, #E4E9E2); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.yct-as-lead strong { font-size: 13.5px; }
.yct-as-lead input[type=text], .yct-as-lead input[type=tel] { padding: 10px 12px; border: 1px solid var(--line, #E4E9E2); border-radius: 10px; font-size: 16px; width: 100%; box-sizing: border-box; }
.yct-as-lead label.c { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-soft, #5B6357); line-height: 1.4; }
.yct-as-lead .hp { position: absolute; left: -9999px; }
.yct-as-lead button { border: 0; background: var(--blue, #2C8300); color: #fff; padding: 11px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 14px; }
.yct-as-lead .err { color: #b32d2e; font-size: 12.5px; margin: 0; }

@media (max-width: 768px) {
	.yct-as { right: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
	.yct-as-fab-label { display: none; }
	.yct-as-fab { padding: 15px; }
	.yct-as.is-open { right: 0; left: 0; bottom: 0; }
	.yct-as-panel { width: 100%; height: min(86vh, 640px); border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .yct-as-panel { animation: none; } .yct-as-log { scroll-behavior: auto; } .yct-as-typing i { animation: none; opacity: .6; } }
@media print { .yct-as { display: none !important; } }

/* Visually hidden but readable by screen readers (the theme had no rule for this) */
.yct-as .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
