/* TEQ Website Assistant - CAN green branding, floating launcher bottom-right */
@font-face {
    font-family: 'Torque';
    src: url('fonts/Torque-Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
}

.teqwa-launcher {
    position: fixed;
    right: 22px;
    /* Clears a third-party badge parked in the same corner: reCAPTCHA's sits
       14px up and is 60px tall, so anything under ~80px overlaps it. */
    bottom: 82px;
    z-index: 99998;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #009a3e;
    color: #fff;
    font-family: 'Torque', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    /* Dead-centre the wordmark: flex centring beats the theme's button padding,
       line-height 1 tames the Torque baseline, and the text-indent cancels the
       trailing letter-spacing gap after the Q */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    text-indent: 1px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.teqwa-launcher:hover { background: #1E7A34; }

.teqwa-panel {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    width: 380px;
    max-width: calc(100vw - 24px);
    height: 560px;
    max-height: calc(100vh - 44px);
    background: #fff;
    border: 1px solid #DFE5DF;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,.28);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.teqwa-panel.open { display: flex; }

.teqwa-head {
    background: #009a3e;
    color: #fff;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.teqwa-head .t { font-family: 'Torque', 'Segoe UI', Arial, sans-serif; font-size: 15px; font-weight: bold; letter-spacing: 1.5px; }
.teqwa-head .s { font-size: 10.5px; opacity: .85; }
.teqwa-head button {
    margin-left: auto;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 5px;
    padding: 3px 9px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.4;
}
.teqwa-head button + button { margin-left: 0; }

.teqwa-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FCFDFC;
}
.teqwa-msg {
    max-width: 95%;
    border: 1px solid #DFE5DF;
    border-radius: 11px;
    padding: 8px 11px;
    font-size: 13px;
    line-height: 1.5;
    background: #fff;
    overflow-wrap: break-word;
    align-self: flex-start;
}
.teqwa-msg.u {
    align-self: flex-end;
    background: #009a3e;
    border-color: #1E7A34;
    color: #fff;
    white-space: pre-wrap;
}
.teqwa-msg.err { border-color: #C0392B; background: #FDF3F2; }
.teqwa-msg .teqwa-brand { font-family: 'Torque', 'Segoe UI', Arial, sans-serif; font-weight: bold; color: #1E7A34; }
.teqwa-msg b, .teqwa-msg strong { color: #1E7A34; }
.teqwa-msg.u b, .teqwa-msg.u strong { color: #fff; }
.teqwa-msg a.teqwa-link { color: #1E7A34; font-weight: bold; text-decoration: underline; }
.teqwa-msg ul, .teqwa-msg ol { margin: 4px 0 4px 18px; padding: 0; }

/* Staged enquiry draft card - orange accent so it reads as an action */
.teqwa-enq { border-left: 4px solid #F7941E; max-width: 95%; }
.teqwa-enq .et { font-weight: bold; color: #B36200; font-size: 10.5px; letter-spacing: .5px; margin-bottom: 5px; }
.teqwa-enq .ef { font-size: 12px; margin-bottom: 3px; }
.teqwa-enq .em { white-space: pre-wrap; color: #3a4a3a; margin-top: 5px; }
.teqwa-enq .ea { margin-top: 9px; display: flex; gap: 8px; }
.teqwa-enq .ea button { border: none; border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.teqwa-enq .ea .go { background: #F7941E; color: #fff; }
.teqwa-enq .ea .no { background: #fff; color: #808285; border: 1px solid #DFE5DF; }
.teqwa-enq .edone { margin-top: 9px; font-weight: bold; color: #1E7A34; }
.teqwa-enq .egone { margin-top: 9px; color: #808285; }
.teqwa-enq .eerr { margin-top: 9px; color: #C0392B; font-size: 12px; }

.teqwa-dots i {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #2EA24E;
    opacity: .35;
    animation: teqwaBlink 1.2s infinite;
    margin-right: 4px;
}
.teqwa-dots i:nth-child(2) { animation-delay: .2s; }
.teqwa-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes teqwaBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.teqwa-chips { padding: 6px 10px 0; display: flex; gap: 6px; flex-wrap: wrap; flex: 0 0 auto; }
.teqwa-chip {
    background: #F1F6F2;
    border: 1px solid #DFE5DF;
    border-radius: 13px;
    padding: 4px 11px;
    font-size: 11px;
    color: #3a4a3a;
    cursor: pointer;
}
.teqwa-chip:hover { border-color: #2EA24E; background: #E8F4EC; }

.teqwa-input { border-top: 1px solid #DFE5DF; padding: 9px 10px; display: flex; gap: 7px; flex: 0 0 auto; background: #fff; }
.teqwa-input input {
    flex: 1;
    border: 1.5px solid #DFE5DF;
    border-radius: 7px;
    padding: 8px 11px;
    font-size: 13px;
    outline: none;
    min-width: 0;
}
.teqwa-input input:focus { border-color: #2EA24E; }
.teqwa-input button {
    background: #009a3e;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.teqwa-input button:disabled { opacity: .6; cursor: default; }

.teqwa-foot { font-size: 9px; color: #808285; text-align: center; padding: 3px 10px 7px; background: #fff; }

@media (max-width: 480px) {
    .teqwa-panel { right: 8px; bottom: 8px; height: 78vh; }
}
