/* In-site support chatbot. Uses theme variables from style.css. */
.oc-chat { position: fixed; right: 20px; bottom: 20px; z-index: 9990; font-family: var(--font-body); font-size: 15px; line-height: 1.45; }
.oc-chat[hidden], .oc-panel[hidden] { display: none; }
.oc-launcher { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--yellow); color: var(--dark); box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.oc-launcher:hover { transform: scale(1.06); background: var(--yellow-dark); }
.oc-launcher svg { width: 26px; height: 26px; }
.oc-panel { position: absolute; right: 0; bottom: 72px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 110px); background: var(--white); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; color: var(--dark); }
.oc-head { background: var(--dark); color: var(--white); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.oc-head strong { display: block; font-family: var(--font-head); font-size: 17px; }
.oc-head span { font-size: 12px; opacity: .75; }
.oc-close { background: none; border: 0; color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.oc-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--cream-alt); display: flex; flex-direction: column; gap: 8px; }
.oc-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; word-wrap: break-word; }
.oc-bot { background: var(--white); border: 1px solid #e5e1d3; align-self: flex-start; border-bottom-left-radius: 4px; }
.oc-user { background: var(--yellow); align-self: flex-end; border-bottom-right-radius: 4px; }
.oc-bot a { color: var(--dark); text-decoration: underline; }
.oc-dots i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--text-muted); animation: oc-b 1s infinite; }
.oc-dots i:nth-child(2) { animation-delay: .15s; } .oc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes oc-b { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.oc-quick { padding: 8px 12px 0; display: flex; flex-wrap: wrap; gap: 6px; background: var(--cream-alt); }
.oc-quick:empty { display: none; }
.oc-quick button { border: 1px solid var(--dark); background: var(--white); color: var(--dark); border-radius: 16px; padding: 4px 11px; font-size: 13px; cursor: pointer; font-family: inherit; }
.oc-quick button:hover { background: var(--dark); color: var(--white); }
.oc-input { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid #e5e1d3; background: var(--white); }
.oc-input input { flex: 1; border: 1px solid #d5d0bf; border-radius: 20px; padding: 8px 14px; font: inherit; min-width: 0; }
.oc-input button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.oc-input button svg { width: 18px; height: 18px; }
.oc-form { background: var(--white); border: 1px solid #e5e1d3; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.oc-form input, .oc-form textarea { border: 1px solid #d5d0bf; border-radius: 6px; padding: 8px 10px; font: inherit; width: 100%; box-sizing: border-box; resize: vertical; }
.oc-form .oc-row { display: flex; gap: 8px; }
.oc-form .oc-row button { border: 0; border-radius: 6px; padding: 8px 14px; background: var(--yellow); color: var(--dark); font-weight: 700; cursor: pointer; font-family: inherit; }
.oc-form .oc-row .oc-ghost { background: none; font-weight: 400; text-decoration: underline; }
.oc-form button:disabled { opacity: .6; cursor: wait; }
.oc-err { color: #b32d2e; font-size: 13px; margin: 0; }
.oc-err:empty { display: none; }
@media (max-width: 480px) {
	.oc-chat { right: 12px; bottom: 12px; }
	.oc-panel { position: fixed; inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; }
	.oc-chat.is-open .oc-launcher { display: none; }
}
@media (prefers-reduced-motion: reduce) { .oc-launcher, .oc-dots i { transition: none; animation: none; } }
