/* Pia chat (support page and sales bubble). Shared by views/v3/support.php and views/v3/_sales_chat.php. */
.sc-chat { display: flex; flex-direction: column; overflow: hidden; background: #EFEAE2; font-family: var(--font, "Archivo", sans-serif); }
.sc-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #EAE5DC; }
.sc-av { position: relative; width: 42px; height: 42px; border-radius: 99px; background: #FFEB00; flex: none; }
.sc-av img { width: 100%; height: 100%; border-radius: 99px; display: block; object-fit: cover; }
.sc-av i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 99px; background: #2FA45A; border: 2px solid #fff; }
.sc-who { flex: 1; min-width: 0; display: grid; }
.sc-who b { font: 800 15px var(--font, sans-serif); }
.sc-who small { font: 500 12px var(--font, sans-serif); color: #7a756f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-restart { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #F6F5F1; color: #5b574f; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sc-human, .sc-human:visited { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: #DDF3E4; color: #1F6B3A; font: 800 12.5px var(--font, sans-serif); text-decoration: none; flex: none; }
.sc-day { text-align: center; padding: 10px 0 2px; }
.sc-day span { display: inline-block; background: #fff; border-radius: 8px; padding: 3px 10px; font: 600 11.5px var(--font, sans-serif); color: #7a756f; }
.sc-log { flex: 1; overflow-y: auto; padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 4px; scroll-behavior: smooth; }
.sc-msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 12px; font: 400 14.5px/1.42 var(--font, sans-serif); color: #1c1b1a; position: relative; box-shadow: 0 1px .5px rgba(0,0,0,.13); white-space: pre-wrap; overflow-wrap: anywhere; animation: scIn .18s ease-out; }
.sc-msg.is-bot { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.sc-msg.is-me { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.sc-msg + .sc-msg.is-bot, .sc-msg.is-me + .sc-msg.is-me { margin-top: 0; }
.sc-msg.is-bot.is-first { margin-top: 6px; }
.sc-time { float: right; margin: 6px 0 -3px 10px; font: 500 10.5px var(--font, sans-serif); color: #8a8580; display: inline-flex; align-items: center; gap: 3px; }
.sc-time svg { color: #53BDEB; }
.sc-step { display: block; font: 700 11.5px var(--font, sans-serif); color: #6b6100; margin-bottom: 2px; letter-spacing: .02em; }
.sc-btn, .sc-btn:visited { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; height: 40px; border-radius: 10px; background: #F6F5F1; color: #1c1b1a; font: 800 13.5px var(--font, sans-serif); text-decoration: none; white-space: nowrap; }
.sc-btn.is-wa { background: #DDF3E4; color: #1F6B3A; }
.sc-btn.is-y { background: #FFF6B8; color: #6b6100; }
.sc-typing { align-self: flex-start; background: #fff; border-radius: 12px; border-top-left-radius: 4px; padding: 10px 12px; display: flex; gap: 4px; box-shadow: 0 1px .5px rgba(0,0,0,.13); margin-top: 6px; }
.sc-typing i { width: 7px; height: 7px; border-radius: 99px; background: #b8b3aa; animation: scDot 1s infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
.sc-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 8px; justify-content: flex-end; flex: none; max-height: 42%; overflow-y: auto; }
.sc-replies:empty { display: none; }
.sc-chip { border: 1.5px solid #1F6B3A; background: #fff; color: #1F6B3A; border-radius: 99px; padding: 8px 14px; font: 700 13.5px var(--font, sans-serif); cursor: pointer; }
.sc-chip:hover, .sc-chip:focus-visible { background: #DDF3E4; outline: none; }
.sc-chip.is-soft { border-color: #D8D3CA; color: #5b574f; }
.sc-compose { display: flex; gap: 8px; padding: 8px 10px 10px; background: #F0EDE6; }
.sc-compose input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 99px; background: #fff; padding: 0 16px; font: 500 15px var(--font, sans-serif); color: #1c1b1a; outline: none; }
.sc-compose input:focus { box-shadow: 0 0 0 2px #FFEB00; }
.sc-compose button { width: 46px; height: 46px; border: 0; border-radius: 99px; background: #FFEB00; color: #1c1b1a; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
@keyframes scIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes scDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 380px) { .sc-human span { display: none; } }
@media (prefers-reduced-motion: reduce) { .sc-msg, .sc-typing i { animation: none; } }
.sc-btn.is-buy { background: #FFEB00; color: #1c1b1a; height: 46px; font-size: 14.5px; }
.sc-chip.is-hot { background: #FFEB00; border-color: #FFEB00; color: #1c1b1a; }
.sc-btn.is-done { background: #DDF3E4 !important; color: #1F6B3A !important; pointer-events: none; }
.sc-log { overflow-x: hidden; }
.sc-btn { white-space: normal; text-align: center; line-height: 1.25; min-height: 44px; height: auto !important; padding-top: 8px; padding-bottom: 8px; overflow-wrap: anywhere; }
.sc-human.is-off { display: none !important; }
