/* Ua Che Switch! – live chat */
.ucs-chat { --ucs-accent: #b3261e; position: fixed; right: 16px; bottom: 16px; z-index: 99990; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f1b17; }
body.pf-has-cart .ucs-chat { bottom: 92px; }
.ucs-chat * { box-sizing: border-box; }
.ucs-chat .ucs-bubble { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--ucs-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(20,14,8,.28); margin-left: auto; padding: 0; }
.ucs-chat .ucs-bubble:focus-visible { outline: 3px solid #1f1b17; outline-offset: 3px; }
.ucs-chat .ucs-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #1f1b17; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ucs-chat .ucs-badge[hidden] { display: none; }
.ucs-chat .ucs-panel { position: absolute; right: 0; bottom: 72px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(20,14,8,.28); display: flex; flex-direction: column; overflow: hidden; }
.ucs-chat .ucs-panel[hidden] { display: none; }
.ucs-chat .ucs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: var(--ucs-accent); color: #fff; }
.ucs-chat .ucs-ht { display: flex; flex-direction: column; min-width: 0; }
.ucs-chat .ucs-ht b { font-size: 16px; }
.ucs-chat .ucs-st { opacity: .9; font-size: 12px; }
.ucs-chat .ucs-st.on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; margin-right: 6px; vertical-align: middle; }
.ucs-chat .ucs-x { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.ucs-chat .ucs-list { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #faf7f3; }
.ucs-chat .ucs-m { max-width: 84%; display: flex; flex-direction: column; gap: 2px; }
.ucs-chat .ucs-m span { padding: 9px 12px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.ucs-chat .ucs-m small { font-size: 11px; color: #8a8178; padding: 0 6px; }
.ucs-chat .ucs-m.them span { background: #fff; border: 1px solid #ece4da; border-bottom-left-radius: 6px; }
.ucs-chat .ucs-m.me { align-self: flex-end; align-items: flex-end; }
.ucs-chat .ucs-m.me span { background: var(--ucs-accent); color: #fff; border-bottom-right-radius: 6px; }
.ucs-chat .ucs-m.sys { align-self: center; max-width: 92%; }
.ucs-chat .ucs-m.sys span { background: #fff4d6; color: #5c4a14; font-size: 13px; text-align: center; }
.ucs-chat .ucs-intro { padding: 10px 12px 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #efe8e0; }
.ucs-chat .ucs-intro[hidden] { display: none; }
.ucs-chat .ucs-intro input { width: 100%; min-height: 42px; border: 1.5px solid #e5ddd3; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: #1f1b17; }
.ucs-chat .ucs-pv { margin: 0; font-size: 11.5px; color: #776e65; }
.ucs-chat .ucs-pv a { color: var(--ucs-accent); }
.ucs-chat .ucs-err { color: #b42318; font-size: 13px; font-weight: 600; padding: 4px 12px 0; }
.ucs-chat .ucs-err:empty { display: none; }
.ucs-chat .ucs-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; }
.ucs-chat .ucs-form textarea { flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 120px; resize: none; border: 1.5px solid #e5ddd3; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; color: #1f1b17; }
.ucs-chat .ucs-send { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; background: var(--ucs-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ucs-chat .ucs-send:disabled { opacity: .5; }
@media (max-width: 480px) {
	.ucs-chat.open { left: 0; right: 0; bottom: 0; }
	.ucs-chat.open .ucs-bubble { display: none; }
	.ucs-chat.open .ucs-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
}
body.pf-sheet-open .ucs-chat { display: none; }
