.jfopt-oa-support { box-sizing: border-box; padding: 1rem; color: #17253b; background: #fff; overflow: auto; }
dialog.jfopt-oa-support { position: fixed; inset: auto 1rem 1rem auto; margin: 0; width: min(26rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid #afbed1; border-radius: .75rem; }
section.jfopt-oa-support { flex: 1 1 auto; min-height: 0; width: 100%; }
.jfopt-oa-support [hidden], .jfopt-oa-support[hidden] { display: none !important; }
.jfopt-support-native-status { display: none !important; }
.jfopt-support-entry { display: flex; align-items: center; justify-content: flex-end; flex: none; gap: .65rem; padding: .45rem .75rem; border-bottom: 1px solid #dce3ed; color: #17253b; background: #fff; font-size: .875rem; }
.jfopt-support-entry button, .jfopt-support-heading button, .jfopt-support-retry { padding: .4rem .65rem; border: 1px solid #7088a5; border-radius: .45rem; color: #173b61; background: #fff; font: inherit; cursor: pointer; }
[data-jfopt-chat-mode="human"] > :not(header, .jfopt-oa-support) { display: none !important; }
.jfopt-oa-support::backdrop { background: #10213560; }
.jfopt-support-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.jfopt-support-heading h2 { font-size: 1.25rem; margin: 0; color: inherit; }
.jfopt-oa-support > p { font-size: .92rem; margin: .5rem 0; }
.jfopt-support-context { margin: .5rem 0; font-size: .9rem; }
.jfopt-support-context summary { cursor: pointer; }
.jfopt-support-context p { white-space: pre-wrap; overflow-wrap: anywhere; }
.jfopt-support-history { max-height: 35vh; overflow: auto; list-style: none; padding: 0; margin: .5rem 0; }
.jfopt-support-history li { padding: .5rem .7rem; margin: .4rem 0; border-radius: .5rem; background: #f1f4f8; }
.jfopt-support-history li.jfopt-support-agent { background: #e8f2ff; }
.jfopt-support-history li p { margin: .2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.jfopt-support-compose { display: grid; gap: .4rem; margin: 0; }
.jfopt-support-compose textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: .45rem; resize: vertical; }
.jfopt-support-compose button { justify-self: end; }
.jfopt-support-launcher { position: fixed; bottom: 1rem; right: 1rem; z-index: 1000; }

.jfopt-support-compose label, .jfopt-support-contact label { display: grid; gap: .25rem; }
.jfopt-support-contact { display: grid; gap: .5rem; margin: .65rem 0 0; padding-top: .65rem; border-top: 1px solid #dce3ed; }
.jfopt-oa-support input { box-sizing: border-box; width: 100%; min-width: 0; }
.jfopt-support-contact button { justify-self: end; }
