.ctb {
    --ctb-bottom-gap: 22px;
    --ctb-launcher-bottom: max(var(--ctb-cookie-bottom, var(--ctb-bottom-gap)), env(safe-area-inset-bottom));
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: var(--ctb-launcher-bottom);
    z-index: 1035;
    color: #f5eeff;
    font-family: inherit;
    line-height: 1.45;
    text-align: left;
}
.ctb *, .ctb *::before, .ctb *::after { box-sizing: border-box; }
.ctb [hidden] { display: none !important; }
.ctb button, .ctb select, .ctb textarea, .ctb input { font: inherit; }
.ctb button { cursor: pointer; text-transform: none; letter-spacing: normal; }
.ctb button::before, .ctb button::after { content: none !important; }
.ctb button:disabled { cursor: default; opacity: .5; }
.ctb button:focus-visible, .ctb select:focus-visible, .ctb textarea:focus-visible, .ctb input:focus-visible {
    outline: 2px solid #55d4ff; outline-offset: 3px;
}
.ctb svg { display: block !important; position: static !important; transform: none !important; margin: 0 !important; }
.ctb-launcher {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100px; height: 56px; padding: 0 12px;
    color: #ecfbff; border: 2px solid rgba(85, 210, 255, .9);
    border-radius: 19px;
    background: linear-gradient(135deg, #25103d, #532173);
    box-shadow: 0 0 22px rgba(41, 184, 251, .28), 0 8px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ctb-launcher:hover { border-color: #8ce4ff; box-shadow: 0 0 26px rgba(41,184,251,.42), 0 8px 30px rgba(0,0,0,.25); }
.ctb-launcher > svg { width: 27px; height: 27px; }
.ctb-launcher-label { color: #effbff; font-size: 13px; font-weight: 700; }
.ctb-launcher > svg { flex: 0 0 27px; }
.scroll-up-button.ctb-scroll-up-managed { bottom: var(--ctb-scroll-bottom) !important; right: var(--ctb-scroll-right) !important; }
.scroll-up-button.ctb-scroll-up-hidden { visibility: hidden !important; pointer-events: none !important; }
.ctb-unread {
    position: absolute; top: -4px; right: -4px; display: grid; place-items: center;
    min-width: 21px; height: 21px; padding: 0 5px;
    border: 2px solid #231035; border-radius: 999px;
    background: #60d5ff; color: #211132; font-size: 11px; font-weight: 800;
}
.ctb-panel {
    position: absolute; right: 0; bottom: 73px;
    display: flex; flex-direction: column;
    width: 380px; max-width: calc(100vw - 32px);
    height: min(650px, calc(100vh - var(--ctb-launcher-bottom) - 90px));
    height: min(650px, calc(100dvh - var(--ctb-launcher-bottom) - 90px));
    min-height: 240px; overflow: hidden;
    border: 1px solid rgba(70, 202, 255, .65); border-radius: 23px;
    background: linear-gradient(145deg, rgba(30, 12, 48, .98), rgba(54, 22, 76, .98));
    box-shadow: 0 0 30px rgba(41, 184, 251, .18), 0 16px 55px rgba(0,0,0,.4);
}
.ctb-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px 13px; flex: 0 0 auto; }
.ctb-eyebrow { display: block; font-size: 10px; letter-spacing: .18em; font-weight: 700; color: #6ddaff; }
.ctb-header h2 { margin: 3px 0 0; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ctb-eyebrow { overflow-wrap: anywhere; }
.ctb-dismiss { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(201,173,230,.2); border-radius: 12px; background: rgba(255,255,255,.04); color: #dccbea; flex: 0 0 auto; }
.ctb-dismiss svg { width: 19px; height: 19px; }
.ctb-hours { display: flex; align-items: center; gap: 7px; padding: 0 19px 13px; font-size: 11px; color: #c2b1d2; flex: 0 0 auto; }
.ctb-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #b695d0; flex: 0 0 auto; }
.ctb.is-reply-window .ctb-status-dot { background: #6ddaff; }
.ctb-personal { flex: 0 0 auto; margin: 0 15px 10px; padding: 9px 12px; color: rgba(223,239,251,.88); background: rgba(90,175,217,.07); border: 1px solid rgba(90,185,235,.15); border-radius: 12px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; max-height: 80px; overflow-y: auto; white-space: pre-wrap; }
.ctb-notice a, .ctb-personal a, .ctb-message-text a { color: #76d8fb; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ctb-notice a:hover, .ctb-personal a:hover, .ctb-message-text a:hover { color: #b8edff; }
.ctb-notice a:focus-visible, .ctb-personal a:focus-visible, .ctb-message-text a:focus-visible { outline: 2px solid #55d4ff; outline-offset: 2px; border-radius: 2px; }
.ctb-notice { flex: 0 0 auto; max-height: 100px; overflow: auto; margin: 0 15px 10px; padding: 10px 12px; border: 1px solid rgba(174,131,221,.23); border-radius: 12px; color: #ded0ec; background: rgba(146,88,192,.09); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ctb-error { margin: 0 15px 9px; padding: 10px 12px; color: #ffd3e7; border: 1px solid rgba(241,116,166,.4); background: rgba(177,49,104,.15); border-radius: 11px; font-size: 12px; max-height: 90px; overflow: auto; flex: 0 0 auto; }
.ctb-loading { padding: 24px 19px; font-size: 13px; color: #c2b1d2; }
.ctb-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #745493 transparent; padding: 0 15px 14px; }
.ctb-start-form { display: flex; flex-direction: column; gap: 13px; }
.ctb-intro { margin: 0 0 1px; color: #d2c1e0; font-size: 13px; line-height: 1.5; }
.ctb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 12px; color: #d9cbe7; }
.ctb-field select, .ctb-field textarea, .ctb-composer textarea {
    width: 100%; min-width: 0; border: 1px solid rgba(175,136,208,.35);
    border-radius: 12px; padding: 10px 11px; background: #2b153e; color: #f6efff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.ctb-field select { min-height: 41px; }
.ctb-field textarea { min-height: 85px; resize: vertical; max-height: 180px; font-size: 13px; }
.ctb textarea::placeholder { color: #a38bb6; opacity: 1; }
.ctb-consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 11px; color: #bea9d0; line-height: 1.5; }
.ctb-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #56cafa; flex: 0 0 auto; }
.ctb-captcha { display: flex; justify-content: center; min-width: 0; }
.ctb-primary { display: block; width: 100%; min-height: 42px; padding: 10px 13px; border: 1px solid #51c6f8; border-radius: 13px; background: linear-gradient(135deg,#44306b,#295578); color: #f1fbff; font-size: 13px; font-weight: 600; }
.ctb-conversation-id { padding: 0 2px 12px; color: #a28ab9; font-size: 10px; overflow-wrap: anywhere; }
.ctb-messages { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }
.ctb-message { display: flex; flex-direction: column; align-items: flex-start; max-width: 91%; margin: 0; list-style: none; }
.ctb-message--visitor { align-self: flex-end; align-items: flex-end; }
.ctb-message--system { max-width: 100%; width: 100%; }
.ctb-message-name { color: #b49cc8; font-size: 10px; padding: 0 3px 4px; }
.ctb-message-text { border: 1px solid rgba(164,121,200,.25); border-radius: 14px 14px 14px 4px; background: rgba(110,65,148,.14); padding: 10px 12px; color: #e9dff3; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.ctb-message--visitor .ctb-message-text { background: rgba(35,136,184,.19); border-color: rgba(66,175,225,.32); border-radius: 14px 14px 4px 14px; }
.ctb-message--system .ctb-message-text { width: 100%; background: rgba(105,74,138,.1); border-style: dashed; color: #cdb9df; font-size: 12px; border-radius: 13px; }
.ctb-message-meta { color: #9c84b0; font-size: 9px; padding: 4px 3px 0; }
.ctb-retry { color: #ffaed0; border: 0; background: transparent; padding: 3px 0; font-size: 10px; text-align: inherit; }
.ctb-older { display: block; width: 100%; border: 0; background: transparent; color: #73d6fc; font-size: 11px; padding: 6px 0 14px; }
.ctb-composer { display: flex; align-items: flex-end; gap: 9px; padding: 11px 15px; border-top: 1px solid rgba(180,138,212,.16); background: rgba(21,9,34,.25); flex: 0 0 auto; }
.ctb-composer textarea { min-height: 49px; height: 49px; max-height: 96px; resize: none; font-size: 12px; flex: 1 1 auto; line-height: 1.45; }
.ctb-send { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; flex: 0 0 auto; color: #d5f4ff; border: 1px solid rgba(77,192,239,.55); border-radius: 13px; background: #344267; }
.ctb-send svg { width: 21px; height: 21px; }
.ctb-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 11px; flex: 0 0 auto; }
.ctb-footer button { border: 0; background: transparent; color: #b59dc8; font-size: 10px; padding: 3px 0; }
.ctb-footer .ctb-new { color: #76d8fb; }
.ctb-closed-label { color: #a890bb; font-size: 10px; }
.ctb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 479.98px) {
    .ctb { --ctb-bottom-gap: 12px; right: max(12px, env(safe-area-inset-right)); }
    .ctb-launcher { width: 96px; height: 52px; border-radius: 18px; }
    .ctb-panel { width: calc(100vw - 24px); max-width: calc(100vw - 24px); bottom: 65px; height: calc(100vh - var(--ctb-launcher-bottom) - 78px); height: calc(100dvh - var(--ctb-launcher-bottom) - 78px); border-radius: 20px; }
    .ctb-header { padding: 14px 15px 11px; }
    .ctb-header h2 { font-size: 18px; }
    .ctb-hours { padding: 0 15px 11px; font-size: 10px; }
    .ctb-field textarea, .ctb-composer textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ctb * { transition: none !important; animation: none !important; } }
