/**
 * WindsMind Pro - Live Chat Widget
 * Floating launcher + conversation panel. Light & dark themed,
 * fully responsive, and isolated from page styles.
 */

:root {
    --wm-chat-primary: #2563eb;
    --wm-chat-primary-dark: #1d4ed8;
    --wm-chat-primary-light: #3b82f6;
    --wm-chat-pending: #94a3b8;

    --wm-chat-surface: #ffffff;
    --wm-chat-surface-2: #f8fafc;
    --wm-chat-surface-3: #f1f5f9;
    --wm-chat-border: #e2e8f0;
    --wm-chat-border-soft: #eef2f7;
    --wm-chat-text: #0f172a;
    --wm-chat-text-soft: #475569;
    --wm-chat-text-muted: #94a3b8;
    --wm-chat-bubble-in: #f1f5f9;
    --wm-chat-shadow: 0 26px 60px -12px rgba(15, 23, 42, 0.26), 0 8px 24px -8px rgba(15, 23, 42, 0.14);
    --wm-chat-radius: 22px;
}

html.dark {
    --wm-chat-surface: #0f172a;
    --wm-chat-surface-2: #131b2e;
    --wm-chat-surface-3: #162038;
    --wm-chat-border: #1e293b;
    --wm-chat-border-soft: #1b2638;
    --wm-chat-text: #f8fafc;
    --wm-chat-text-soft: #cbd5e1;
    --wm-chat-text-muted: #64748b;
    --wm-chat-bubble-in: #1b2740;
    --wm-chat-shadow: 0 26px 60px -12px rgba(0, 0, 0, 0.75), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

/* ---------------------------------------------------------- Launcher */

.wm-chat-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9000;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wm-chat-launcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px 13px 15px;
    border: none;
    border-radius: 999px;
    background: var(--wm-chat-primary-dark);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.35);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, opacity 0.2s ease;
}

.wm-chat-launcher:hover {
    transform: translateY(-2px);
    background: var(--wm-chat-primary);
    box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.4);
}

.wm-chat-launcher:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.wm-chat-launcher__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.wm-chat-launcher__icon svg { width: 22px; height: 22px; }

.wm-chat-launcher__badge {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 21px;
    text-align: center;
    box-shadow: 0 0 0 2.5px var(--wm-chat-surface);
    animation: wm-chat-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wm-chat-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.wm-chat-root.is-open .wm-chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* ---------------------------------------------------------- Panel */

.wm-chat-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(400px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    background: var(--wm-chat-surface);
    border: 1px solid var(--wm-chat-border);
    border-radius: var(--wm-chat-radius);
    box-shadow: var(--wm-chat-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wm-chat-root.is-open .wm-chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ---------------------------------------------------------- Header */

.wm-chat-header {
    position: relative;
    padding: 15px 15px 16px;
    background: var(--wm-chat-primary-dark);
    color: #fff;
    flex-shrink: 0;
}

.wm-chat-header__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wm-chat-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.wm-chat-avatar .wmi-brand { width: 22px; height: 22px; }

.wm-chat-avatar__dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2.5px #2563eb;
}

.wm-chat-header__title {
    flex: 1;
    min-width: 0;
}

.wm-chat-header__title strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.wm-chat-header__title span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 2px;
}

.wm-chat-header__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.wm-chat-iconbtn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.wm-chat-iconbtn:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
.wm-chat-iconbtn svg { width: 16px; height: 16px; }

.wm-chat-header__meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.wm-chat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

/* ---------------------------------------------------------- Body */

.wm-chat-body {
    flex: 1;
    min-height: 0;
    position: relative;
    background: var(--wm-chat-surface-2);
}

.wm-chat-view {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}

.wm-chat-view.is-active { display: flex; }

/* ----- Pre-chat form ----- */

.wm-chat-intro {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px 22px;
}

.wm-chat-intro__lead {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--wm-chat-text-soft);
    margin: 0 0 16px;
}

.wm-chat-intro__lead strong { color: var(--wm-chat-text); }

.wm-chat-field { margin-bottom: 12px; }

.wm-chat-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wm-chat-text-muted);
    margin-bottom: 5px;
}

.wm-chat-field input,
.wm-chat-field select,
.wm-chat-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wm-chat-border);
    border-radius: 12px;
    background: var(--wm-chat-surface);
    color: var(--wm-chat-text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wm-chat-field textarea { resize: vertical; min-height: 68px; line-height: 1.55; }

.wm-chat-field input::placeholder,
.wm-chat-field textarea::placeholder { color: var(--wm-chat-text-muted); }

.wm-chat-field input:focus,
.wm-chat-field select:focus,
.wm-chat-field textarea:focus {
    outline: none;
    border-color: var(--wm-chat-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.wm-chat-field label i {
    font-style: normal;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--wm-chat-text-muted);
    opacity: 0.8;
}

/* Topic picker — replaces a native <select> with tappable tiles */

.wm-chat-topics {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.wm-chat-topics legend {
    padding: 0;
    margin-bottom: 7px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wm-chat-text-muted);
}

.wm-chat-topics__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.wm-chat-topic { position: relative; display: block; }

.wm-chat-topic input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}

.wm-chat-topic span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--wm-chat-border);
    border-radius: 12px;
    background: var(--wm-chat-surface);
    color: var(--wm-chat-text-soft);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.wm-chat-topic span:hover { border-color: var(--wm-chat-text-muted); color: var(--wm-chat-text); }

.wm-chat-topic input:checked + span {
    border-color: var(--wm-chat-primary);
    background: rgba(37, 99, 235, 0.08);
    color: var(--wm-chat-primary-dark);
    font-weight: 700;
}

html.dark .wm-chat-topic input:checked + span { color: var(--wm-chat-primary-light); }

.wm-chat-topic input:focus-visible + span {
    outline: 2px solid var(--wm-chat-primary);
    outline-offset: 2px;
}

.wm-chat-submit {
    width: 100%;
    margin-top: 4px;
    padding: 12.5px;
    border: none;
    border-radius: 13px;
    background: var(--wm-chat-primary-dark);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wm-chat-submit:hover:not(:disabled) { background: var(--wm-chat-primary); }
.wm-chat-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.wm-chat-submit svg { width: 15px; height: 15px; }

.wm-chat-privacy {
    margin: 11px 0 0;
    font-size: 10.5px;
    line-height: 1.55;
    color: var(--wm-chat-text-muted);
    text-align: center;
}

.wm-chat-error {
    display: none;
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 11px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 600;
}

.wm-chat-error.is-visible { display: block; }
html.dark .wm-chat-error { color: #fca5a5; }

/* ----- Message thread ----- */

.wm-chat-thread {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    scroll-behavior: smooth;
}

.wm-chat-thread::-webkit-scrollbar { width: 7px; }
.wm-chat-thread::-webkit-scrollbar-track { background: transparent; }
.wm-chat-thread::-webkit-scrollbar-thumb { background: var(--wm-chat-border); border-radius: 99px; }
.wm-chat-thread::-webkit-scrollbar-thumb:hover { background: var(--wm-chat-text-muted); }

.wm-chat-daysep {
    align-self: center;
    margin: 10px 0 6px;
    padding: 3.5px 11px;
    border-radius: 999px;
    background: var(--wm-chat-surface-3);
    color: var(--wm-chat-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wm-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    margin-top: 9px;
    animation: wm-chat-rise 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wm-chat-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wm-chat-msg--user { align-self: flex-end; align-items: flex-end; }
.wm-chat-msg--admin { align-self: flex-start; align-items: flex-start; }

.wm-chat-msg__author {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wm-chat-text-muted);
    margin: 0 4px 4px;
}

.wm-chat-msg__bubble {
    padding: 10px 13px;
    font-size: 12.8px;
    line-height: 1.58;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wm-chat-msg--admin .wm-chat-msg__bubble {
    background: var(--wm-chat-bubble-in);
    color: var(--wm-chat-text);
    border-radius: 16px 16px 16px 5px;
}

.wm-chat-msg--user .wm-chat-msg__bubble {
    background: var(--wm-chat-primary-dark);
    color: #fff;
    border-radius: 16px 16px 5px 16px;
}

.wm-chat-msg__time {
    margin: 4px 5px 0;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--wm-chat-text-muted);
    letter-spacing: 0.03em;
}

.wm-chat-msg--system {
    align-self: center;
    align-items: center;
    max-width: 94%;
}

.wm-chat-msg--system .wm-chat-msg__bubble {
    background: var(--wm-chat-surface-3);
    border: 1px dashed var(--wm-chat-border);
    border-radius: 13px;
    color: var(--wm-chat-text-soft);
    font-size: 11.5px;
    line-height: 1.6;
    text-align: center;
}

.wm-chat-msg--system .wm-chat-msg__author,
.wm-chat-msg--system .wm-chat-msg__time { display: none; }

/* Typing indicator */

.wm-chat-typing {
    display: none;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin: 9px 0 2px;
    padding: 10px 14px;
    background: var(--wm-chat-bubble-in);
    border-radius: 16px 16px 16px 5px;
}

.wm-chat-typing.is-visible { display: flex; }

.wm-chat-typing i {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: var(--wm-chat-primary);
    animation: wm-chat-bounce 1.3s infinite ease-in-out;
}

.wm-chat-typing i:nth-child(2) { animation-delay: 0.16s; }
.wm-chat-typing i:nth-child(3) { animation-delay: 0.32s; }

@keyframes wm-chat-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* Quick replies */

.wm-chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px 2px;
    flex-shrink: 0;
}

.wm-chat-quick button {
    padding: 6.5px 12px;
    border: 1px solid var(--wm-chat-border);
    border-radius: 999px;
    background: var(--wm-chat-surface);
    color: var(--wm-chat-text-soft);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.wm-chat-quick button:hover {
    border-color: var(--wm-chat-primary);
    color: var(--wm-chat-primary);
    background: rgba(37, 99, 235, 0.07);
    transform: translateY(-1px);
}

/* ----- Composer ----- */

.wm-chat-composer {
    flex-shrink: 0;
    padding: 11px 12px 12px;
    background: var(--wm-chat-surface);
    border-top: 1px solid var(--wm-chat-border-soft);
}

.wm-chat-composer__row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--wm-chat-border);
    border-radius: 18px;
    background: var(--wm-chat-surface-2);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wm-chat-composer__row:focus-within {
    border-color: var(--wm-chat-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.wm-chat-composer textarea {
    flex: 1;
    max-height: 110px;
    min-height: 24px;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--wm-chat-text);
    font-family: inherit;
    font-size: 12.8px;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.wm-chat-composer textarea::placeholder { color: var(--wm-chat-text-muted); }

.wm-chat-send {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 13px;
    background: var(--wm-chat-primary-dark);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.wm-chat-send:hover:not(:disabled) { background: var(--wm-chat-primary); }
.wm-chat-send:disabled { opacity: 0.45; cursor: not-allowed; }
.wm-chat-send svg { width: 17px; height: 17px; }

.wm-chat-footnote {
    margin: 8px 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wm-chat-text-muted);
}

.wm-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wm-chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.wm-chat-status[data-state="connecting"]::before { background: var(--wm-chat-pending); box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25); }
.wm-chat-status[data-state="offline"]::before    { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }

/* ---------------------------------------------------------- Contact section card */

.wm-live-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    background: var(--wm-chat-primary-dark);
    color: #fff;
}

.wm-live-card__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wm-live-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.wm-live-card__icon .wmi { color: #ffffff; }

.wm-live-card__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.wm-live-card__sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

.wm-live-card__sub i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.wm-live-card__text {
    position: relative;
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
}

.wm-live-card__btn {
    position: relative;
    width: 100%;
    padding: 12.5px;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: #1d4ed8;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.wm-live-card__btn:hover { background: #f1f5f9; }
.wm-live-card__btn svg { width: 16px; height: 16px; }

.wm-live-card__stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.wm-live-card__stat b {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wm-live-card__stat span {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 480px) {
    .wm-chat-root { right: 14px; bottom: 14px; }

    .wm-chat-launcher { padding: 12px 17px 12px 13px; font-size: 12.5px; }

    .wm-chat-panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
        transform-origin: center bottom;
    }

    .wm-chat-msg { max-width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
    .wm-chat-panel,
    .wm-chat-launcher { transition: opacity 0.15s ease; }
    .wm-chat-msg { animation: none; }
    .wm-chat-thread { scroll-behavior: auto; }
}

/* Screen-reader-only helper (self-contained, does not rely on Tailwind) */
.wm-chat-root .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------ *
 * Icons drawn with CSS, so the widget ships no SVG and no emoji.
 * ------------------------------------------------------------------ */

.wmi {
    display: inline-block;
    position: relative;
    flex: none;
    color: currentColor;
}

/* Speech bubble, for the launcher */
.wmi-chat { width: 22px; height: 19px; }
.wmi-chat::before {
    content: '';
    position: absolute;
    inset: 0 0 4px 0;
    border: 2px solid currentColor;
    border-radius: 7px;
}
.wmi-chat::after {
    content: '';
    position: absolute;
    left: 5px;
    bottom: -1px;
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-20deg);
    background: var(--wm-chat-launcher-bg, #1d4ed8);
}

/* Close */
.wmi-close { width: 16px; height: 16px; }
.wmi-close::before,
.wmi-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.wmi-close::before { transform: rotate(45deg); }
.wmi-close::after  { transform: rotate(-45deg); }

/* Minimise */
.wmi-min { width: 16px; height: 16px; }
.wmi-min::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1px;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
    border-radius: 2px;
}

/* Send: a paper-plane style triangle */
.wmi-send { width: 16px; height: 16px; }
.wmi-send::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
    transform: translate(-45%, -50%);
}

/* Restart: an open ring with an arrow head */
.wmi-restart { width: 16px; height: 16px; }
.wmi-restart::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    transform: rotate(35deg);
}
.wmi-restart::after {
    content: '';
    position: absolute;
    top: 0;
    right: 1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 5px 0;
    border-color: transparent currentColor transparent transparent;
}

/* The brand mark in the chat header uses the real app icon */
.wmi-brand {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: block;
}
.wmi-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Play triangle, for the "See how it works" demo button on the site. */
.wmi-play { width: 16px; height: 16px; }
.wmi-play::before {
    content: '';
    position: absolute;
    top: 50%; left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent currentColor;
}
