/* WibCloud — assistant */
.wb { --wb-sky: #29abe2; --wb-navy: #0b2447; --wb-ink: #1d2b45; --wb-soft: #eef6fc; position: fixed; right: 20px; bottom: 20px; z-index: 9990; font-family: inherit; }
.wb svg { display: block; }
.wb-fab { width: 60px; height: 60px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #29abe2, #1b6fd0); color: #fff; box-shadow: 0 10px 28px rgba(27, 111, 208, .38); cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, box-shadow .2s ease; margin-left: auto; }
.wb-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(27, 111, 208, .45); }
.wb-fab:focus-visible, .wb button:focus-visible, .wb a:focus-visible, .wb input:focus-visible { outline: 3px solid #7fd4f5; outline-offset: 2px; }
.wb-fab svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease, opacity .2s; }
.wb-fab circle { fill: #fff; stroke: none; }
.wb-fab .wb-i2 { position: absolute; opacity: 0; transform: rotate(-90deg); }
.wb.is-open .wb-fab .wb-i1 { opacity: 0; transform: rotate(90deg); }
.wb.is-open .wb-fab .wb-i2 { opacity: 1; transform: none; }

.wb-teaser { position: absolute; right: 0; bottom: 74px; width: 240px; background: #fff; color: var(--wb-ink); font-size: 14px; line-height: 1.45; padding: 14px 30px 14px 16px; border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 32px rgba(11, 36, 71, .18); cursor: pointer; animation: wbIn .35s ease both; }
.wb-tx { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 18px; line-height: 1; color: #8a97ad; cursor: pointer; padding: 2px 4px; }

.wb-panel { position: absolute; right: 0; bottom: 76px; width: 370px; height: min(580px, calc(100vh - 120px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 36, 71, .28); display: flex; flex-direction: column; overflow: hidden; animation: wbIn .28s cubic-bezier(.2, .8, .2, 1) both; }
.wb-panel[hidden], .wb-teaser[hidden] { display: none; }
@keyframes wbIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.wb-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: linear-gradient(135deg, #0b2447 0%, #173a6e 100%); color: #fff; }
.wb-head b { display: block; font-size: 15.5px; font-weight: 700; }
.wb-head small { display: block; font-size: 12px; opacity: .72; margin-top: 2px; }
.wb-av { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.wb-av svg { width: 30px; }
.wb-min { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); cursor: pointer; display: grid; place-items: center; }
.wb-min:hover { background: rgba(255, 255, 255, .2); }
.wb-min svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

.wb-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; background: #f6f9fc; scroll-behavior: smooth; }
.wb-msg { display: flex; flex-direction: column; margin-bottom: 12px; animation: wbIn .25s ease both; }
.wb-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; color: var(--wb-ink); word-wrap: break-word; }
.wb-bot .wb-bubble { background: #fff; border: 1px solid #e3eaf3; border-bottom-left-radius: 4px; align-self: flex-start; }
.wb-me .wb-bubble { background: var(--wb-sky); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.wb-bubble a { color: #1b6fd0; font-weight: 600; }
.wb-typing .wb-bubble { display: flex; gap: 4px; padding: 14px 16px; }
.wb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb3c8; animation: wbDot 1s infinite; }
.wb-typing i:nth-child(2) { animation-delay: .15s; } .wb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wbDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.wb-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 86%; }
.wb-links a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 13px; background: #fff; border: 1px solid #cfe6f6; border-radius: 12px; color: #0b5c8f; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.wb-links a:hover { background: var(--wb-soft); border-color: var(--wb-sky); text-decoration: none; }
.wb-links a.wb-l-wa { background: #25d366; border-color: #25d366; color: #fff; }
.wb-links a.wb-l-wa:hover { background: #1ebe5a; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wb-chips button { border: 1px solid #d6e0ec; background: #fff; color: var(--wb-navy); font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.wb-chips button:hover { border-color: var(--wb-sky); color: #0b5c8f; background: var(--wb-soft); }

.wb-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e6edf5; background: #fff; }
.wb-form input { flex: 1; min-width: 0; border: 1px solid #d6e0ec; border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--wb-ink); background: #f8fbfe; }
.wb-form input:focus { border-color: var(--wb-sky); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(41, 171, 226, .18); }
.wb-form button { width: 42px; border: 0; border-radius: 12px; background: var(--wb-sky); cursor: pointer; display: grid; place-items: center; flex: none; }
.wb-form button:hover { background: #1b8fd0; }
.wb-form button svg { width: 18px; height: 18px; fill: #fff; }
.wb-wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; font-size: 12.5px; font-weight: 600; color: #128c4a; background: #f2fbf5; text-decoration: none; }
.wb-wa:hover { background: #e3f7ea; color: #0e7a3f; text-decoration: none; }
.wb-wa svg { width: 16px; height: 16px; fill: #25d366; }

@media (max-width: 520px) {
  .wb { right: 14px; bottom: 14px; }
  .wb-fab { width: 54px; height: 54px; }
  .wb.is-open .wb-fab { display: none; }
  .wb-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
  .wb-teaser { bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) { .wb *, .wb-panel, .wb-msg { animation: none !important; transition: none !important; } }
