/* Breaker 1-9 — floating CB-mic chat widget. OFleet brand: charcoal, red, light surfaces. */
.ofleet-breaker {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9990;
    font-family: inherit;
}
.ofleet-breaker-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ce1126;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px 12px 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.28);
    font-size: 15px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ofleet-breaker-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.32); }
.ofleet-breaker-btn svg { flex: none; }
.ofleet-breaker-label { white-space: nowrap; }

.ofleet-breaker-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(360px, calc(100vw - 36px));
    height: 480px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    border: 1px solid #e5e5e5;
}
.ofleet-breaker-panel[hidden] { display: none; }

.ofleet-breaker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 14px;
}
.ofleet-breaker-title { display: flex; align-items: center; gap: 10px; }
.ofleet-breaker-title strong { display: block; font-size: 15px; letter-spacing: .02em; }
.ofleet-breaker-title small { display: block; font-size: 11px; opacity: .7; }
/* Backlit CB channel display */
.ofleet-breaker-lcd {
    flex: none;
    background: #2b1a08;
    color: #ffb03a;
    font-family: "Courier New", ui-monospace, monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    padding: 6px 9px;
    border-radius: 5px;
    border: 1px solid #4a3020;
    text-shadow: 0 0 6px rgba(255,176,58,.8);
    box-shadow: inset 0 0 8px rgba(0,0,0,.7);
}
.ofleet-breaker-close {
    background: none; border: none; color: #fff;
    font-size: 24px; line-height: 1; cursor: pointer; opacity: .8;
}
.ofleet-breaker-close:hover { opacity: 1; }

.ofleet-breaker-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f7f8;
}
.ofleet-msg {
    max-width: 88%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}
.ofleet-msg a { color: #ce1126; font-weight: 600; }
.ofleet-msg-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top-left-radius: 4px;
}
.ofleet-msg-user {
    align-self: flex-end;
    background: #1a1a1a;
    color: #fff;
    border-top-right-radius: 4px;
}
.ofleet-msg-link {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 14px;
    background: #ce1126;
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.ofleet-msg-handoff .ofleet-handoff-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ofleet-handoff-btns a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.ofleet-handoff-call { background: #ce1126; color: #fff !important; }
.ofleet-handoff-text { background: #1a1a1a; color: #fff !important; }
.ofleet-handoff-quote { background: #fff; color: #ce1126 !important; border: 2px solid #ce1126; }

.ofleet-breaker-chips {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eee;
}
.ofleet-breaker-chips:empty { display: none; }
.ofleet-chip {
    flex: none;
    background: #f0f0f2;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.ofleet-chip:hover { background: #e4e4e8; }

.ofleet-breaker-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eee;
}
.ofleet-breaker-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.ofleet-breaker-form input:focus { border-color: #ce1126; }
.ofleet-breaker-form button[type="submit"] {
    width: 42px; height: 42px; flex: none;
    border: none; border-radius: 50%;
    background: #ce1126; color: #fff;
    font-size: 16px; cursor: pointer;
}
.ofleet-breaker-form button[type="submit"]:hover { background: #a90e1f; }

/* Voice input button */
.ofleet-breaker-voice {
    width: 42px; height: 42px; flex: none;
    border: 1px solid #ddd; border-radius: 50%;
    background: #fff; color: #1a1a1a;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ofleet-breaker-voice:hover { border-color: #ce1126; color: #ce1126; }
.ofleet-breaker-voice[hidden] { display: none; }
.ofleet-breaker-voice.listening {
    background: #ce1126; border-color: #ce1126; color: #fff;
    animation: ofleet-mic-pulse 1.2s infinite;
}
@keyframes ofleet-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(206,17,38,.5); }
    50% { box-shadow: 0 0 0 8px rgba(206,17,38,0); }
}

/* Typing indicator */
.ofleet-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.ofleet-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: #999;
    animation: ofleet-blink 1.2s infinite;
}
.ofleet-typing span:nth-child(2) { animation-delay: .2s; }
.ofleet-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ofleet-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

@media (max-width: 480px) {
    .ofleet-breaker { right: 12px; bottom: 12px; }
    .ofleet-breaker-label { display: none; }
    .ofleet-breaker-btn { padding: 13px; }
    .ofleet-breaker-panel { bottom: 64px; height: 70vh; }
}

/* Desktop: keep the pill clear of centered content columns */
@media (min-width: 1280px) {
    .ofleet-breaker {
        right: max(18px, calc((100vw - 1200px) / 2 - 70px));
    }
}
