/* The landing page's chat (chat-widget.js). */
.iwc-chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #16201a; }
.iwc-chat [hidden] { display: none !important; }
.iwc-chat__toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #16201a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / 22%); }
.iwc-chat__toggle:hover { background: #24332a; }
.iwc-chat__toggle:focus-visible, .iwc-chat__close:focus-visible, .iwc-chat__send:focus-visible { outline: 3px solid #7fd69a; outline-offset: 2px; }
.iwc-chat__badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; }
.iwc-chat__panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); max-height: min(600px, calc(100vh - 110px)); overflow: hidden; border: 1px solid #dfe5dc; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / 22%); }
.iwc-chat__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #1f7a3f; color: #fff; }
.iwc-chat__header strong { display: block; font-size: 16px; }
.iwc-chat__header small { color: #dff3e5; }
.iwc-chat__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 16%); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.iwc-chat__thread { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 180px; overflow-y: auto; padding: 16px; background: #f6f8f5; }
.iwc-chat__bubble { align-self: flex-end; max-width: 84%; padding: 10px 13px; border-radius: 16px 16px 4px 16px; background: #16201a; color: #fff; }
.iwc-chat__bubble.is-support { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: #fff; color: #16201a; box-shadow: 0 0 0 1px #dfe5dc; }
.iwc-chat__bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.iwc-chat__bubble small { display: block; margin-top: 3px; font-size: 11px; opacity: .75; }
.iwc-chat__status { margin: 0; padding: 10px 16px; background: #e7f3ea; color: #124d27; font-size: 13px; }
.iwc-chat__status.is-error { background: #fdecec; color: #8a1c20; }
.iwc-chat__start { display: grid; gap: 12px; padding: 16px; }
.iwc-chat__start label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #3d4a41; }
.iwc-chat__start input, .iwc-chat__start textarea, .iwc-chat__reply textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9d3c7; border-radius: 10px; background: #fff; color: #16201a; font: inherit; resize: vertical; }
.iwc-chat__start input:focus, .iwc-chat__start textarea:focus, .iwc-chat__reply textarea:focus { outline: 2px solid #1f7a3f; outline-offset: 1px; border-color: #1f7a3f; }
.iwc-chat__reply { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid #dfe5dc; }
.iwc-chat__reply textarea { flex: 1; min-height: 44px; max-height: 120px; }
.iwc-chat__send { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #1f7a3f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.iwc-chat__send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) { .iwc-chat { right: 12px; bottom: 12px; } .iwc-chat__panel { max-height: calc(100vh - 90px); } }
@media (prefers-reduced-motion: no-preference) { .iwc-chat__panel { animation: iwc-chat-in .18s ease-out; } @keyframes iwc-chat-in { from { opacity: 0; transform: translateY(8px); } } }
