/* O.P.S. Chemicals — Rule-based FAQ chatbot (no AI) */
.opsbot { position: fixed; right: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 24px); height: 600px; max-height: calc(100vh - 36px); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(14, 47, 34, .28); display: none; flex-direction: column; overflow: hidden; z-index: 1070; border: 1px solid #DDE5DF; font-size: .95rem; }
.opsbot.open { display: flex; }
.opsbot-head { background: linear-gradient(120deg, #124B35, #16834A); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; }
.opsbot-head .av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; }
.opsbot-head .ttl { flex: 1; line-height: 1.2; }
.opsbot-head .ttl strong { display: block; }
.opsbot-head .ttl small { color: #CFE7D6; font-size: .78rem; }
.opsbot-head button { background: transparent; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.opsbot-head button:hover { background: rgba(255, 255, 255, .15); }
.opsbot-search { padding: .6rem .75rem; border-bottom: 1px solid #EEF2EF; position: relative; }
.opsbot-search input { width: 100%; border: 1px solid #CBD6CE; border-radius: 999px; padding: .55rem 1rem; font-size: .95rem; min-height: 42px; }
.opsbot-search input:focus { outline: none; border-color: #16834A; box-shadow: 0 0 0 .2rem rgba(22, 131, 74, .15); }
.opsbot-body { flex: 1; overflow-y: auto; padding: 1rem .9rem; background: #F5F7F5; display: flex; flex-direction: column; gap: .6rem; }
.ob-msg { max-width: 88%; padding: .65rem .9rem; border-radius: 14px; line-height: 1.55; white-space: pre-line; word-wrap: break-word; }
.ob-bot { background: #fff; border: 1px solid #E2E9E4; align-self: flex-start; border-bottom-left-radius: 4px; color: #303A35; }
.ob-user { background: #16834A; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ob-label { font-size: .75rem; color: #5D6B63; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
.ob-options { display: flex; flex-direction: column; gap: .4rem; align-self: stretch; }
.ob-opt { text-align: left; background: #fff; border: 1px solid #CFE2D5; color: #124B35; border-radius: 10px; padding: .6rem .8rem; font-weight: 600; font-size: .92rem; min-height: 42px; cursor: pointer; }
.ob-opt:hover, .ob-opt:focus-visible { background: #E6F3EA; border-color: #16834A; outline: none; }
.ob-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.ob-chip { background: #fff; border: 1px solid #CBD6CE; color: #303A35; border-radius: 999px; padding: .4rem .8rem; font-size: .85rem; min-height: 36px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.ob-chip:hover { border-color: #16834A; color: #16834A; text-decoration: none; }
.ob-chip.primary { background: #16834A; border-color: #16834A; color: #fff; }
.ob-chip.line { background: #06C755; border-color: #06C755; color: #fff; }
.opsbot-foot { border-top: 1px solid #EEF2EF; padding: .5rem .75rem; display: flex; gap: .4rem; flex-wrap: wrap; background: #fff; }
.opsbot-note { font-size: .72rem; color: #5D6B63; text-align: center; padding: 0 .75rem .5rem; background: #fff; }
@media (max-width: 575.98px) {
  .opsbot { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 88vh; height: 88dvh; max-height: none; border-radius: 18px 18px 0 0; }
}
