.sbsc { position: fixed; right: 20px; bottom: 82px; z-index: 80; font-family: inherit; font-size: 14px; line-height: 1.5; color: #141612; }
.sbsc-launch { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 12px 18px; border: 0; border-radius: 999px; background: #141612; color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(20, 22, 18, .3); }
.sbsc-launch:hover { background: #3f6212; }
.sbsc-launch svg { width: 22px; height: 22px; color: #a6ce39; }
.sbsc.is-open .sbsc-launch { display: none; }

.sbsc-panel { width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e6d9; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 22, 18, .25); }
.sbsc-panel[hidden] { display: none; }
.sbsc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #141612; color: #fff; }
.sbsc-head strong { display: block; font-size: 15px; }
.sbsc-head small { color: #a6ce39; font-size: 12px; }
.sbsc-close { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

.sbsc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f4f6ef; }
.sbsc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.sbsc-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e2e6d9; border-bottom-left-radius: 4px; }
.sbsc-msg--user { align-self: flex-end; background: #a6ce39; border-bottom-right-radius: 4px; }
.sbsc-msg a { color: #3f6212; font-weight: 600; }
.sbsc-msg.is-waiting { color: #5b6356; font-style: italic; }

.sbsc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: #f4f6ef; }
.sbsc-chips[hidden] { display: none; }
.sbsc-chips button { border: 1px solid #d5dbc9; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.sbsc-chips button:hover { border-color: #141612; }

.sbsc-cards { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.sbsc-card { display: flex; gap: 10px; padding: 8px; background: #fff; border: 1px solid #e2e6d9; border-radius: 12px; }
.sbsc-card img { width: 64px; height: 64px; flex: none; border-radius: 8px; object-fit: cover; }
.sbsc-card > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sbsc-card strong { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sbsc-card span { font-size: 13px; font-weight: 700; }
.sbsc-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sbsc-card__actions a { font-size: 12px; font-weight: 700; text-decoration: none; padding: 5px 10px; border-radius: 999px; }
.sbsc-card__view { color: #141612; border: 1px solid #d5dbc9; }
.sbsc-card__view:hover { border-color: #141612; }
.sbsc-card__order { color: #fff; background: #25d366; border: 1px solid #25d366; }
.sbsc-card__order:hover { background: #1eb858; }

.sbsc-handoff { display: block; text-align: center; padding: 8px 12px; background: #f4f6ef; border-top: 1px solid #e2e6d9; color: #3f6212; font-size: 13px; font-weight: 700; text-decoration: none; }
.sbsc-handoff[hidden] { display: none; }
.sbsc-handoff:hover { text-decoration: underline; }
.sbsc-handoff.is-highlight { background: #25d366; color: #fff; }

.sbsc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e6d9; background: #fff; }
.sbsc-form input { flex: 1; min-width: 0; border: 1px solid #d5dbc9; border-radius: 999px; padding: 10px 14px; font: inherit; }
.sbsc-form input:focus { outline: 2px solid #a6ce39; outline-offset: 1px; }
.sbsc-form button { border: 0; border-radius: 999px; padding: 10px 18px; background: #141612; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sbsc-form button:hover { background: #3f6212; }

@media (max-width: 600px) {
	/* Di HP cukup satu tombol mengambang: tombol WhatsApp tema disembunyikan, WhatsApp tetap satu ketukan dari dalam panel chat. */
	body:has(.sbsc) .sbs-wa { display: none; }
	.sbsc { right: 12px; bottom: 12px; }
	.sbsc-launch span { display: none; }
	.sbsc-launch { padding: 12px; }
	.sbsc.is-open { right: 8px; left: 8px; bottom: 8px; }
	.sbsc.is-open .sbsc-panel { width: 100%; max-width: none; height: calc(100vh - 80px); max-height: none; }
}
