/* Shine AI chat widget (theme colours: ink #1B1714, gold #C8892E, sun #E8B05A, cream #FAF6EE). */
.ssc { position: fixed; right: 22px; bottom: 22px; z-index: 70; font-family: "Space Grotesk Variable", "Space Grotesk", ui-sans-serif, system-ui, sans-serif; color: #1b1714; -webkit-font-smoothing: antialiased; }
.ssc *, .ssc *::before, .ssc *::after { box-sizing: border-box; }
.ssc button, .ssc input { font: inherit; }

.ssc-launch { position: relative; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 8px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(120deg, #1b1714 0%, #3b2a14 50%, #8a5a14 100%); box-shadow: 0 18px 40px -12px rgba(138, 90, 20, .75), inset 0 0 0 1px rgba(232, 176, 90, .4); transition: transform .2s; }
.ssc-launch:hover { transform: translateY(-2px); }
.ssc-launch-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #1b1714; background: radial-gradient(circle at 30% 30%, #f6d08a, #c8892e); }
.ssc-ping { position: absolute; top: 4px; left: 40px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; border: 2px solid #1b1714; }
.ssc-ping::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #34d399; animation: ssc-ping 1.8s infinite; }
@keyframes ssc-ping { to { transform: scale(2.2); opacity: 0; } }
.ssc.is-open .ssc-launch { display: none; }

.ssc-nudge { position: absolute; right: 0; bottom: 74px; width: 250px; padding: 14px 16px; border: 1px solid #efe3cf; border-radius: 18px 18px 4px 18px; background: #fff; box-shadow: 0 20px 40px -18px rgba(27, 23, 20, .4); text-align: left; cursor: pointer; font-size: 14px; font-weight: 600; color: #1b1714; animation: ssc-in .35s ease; transition: opacity .4s, transform .4s; }
.ssc-nudge span { display: block; margin-top: 4px; font-weight: 500; color: #8a5a14; }
.ssc-nudge.is-out { opacity: 0; transform: translateY(8px); }

.ssc-panel { width: 380px; height: min(620px, calc(100vh - 120px)); height: min(620px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fffdf9; border: 1px solid #efe3cf; box-shadow: 0 40px 90px -30px rgba(27, 23, 20, .55); animation: ssc-in .3s ease; }
.ssc-panel[hidden] { display: none; }
@keyframes ssc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.ssc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(232, 176, 90, .45), transparent 55%), linear-gradient(135deg, #1b1714, #2c2117); }
.ssc-av { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; color: #1b1714; background: radial-gradient(circle at 30% 30%, #f6d08a, #c8892e); box-shadow: 0 0 0 4px rgba(232, 176, 90, .18); }
.ssc-head-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ssc-head-txt strong { font-size: 16px; }
.ssc-head-txt span { font-size: 12.5px; color: #d9c8ad; display: flex; align-items: center; gap: 6px; }
.ssc-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; }
.ssc-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px; cursor: pointer; color: #f3e7d3; background: rgba(255, 255, 255, .08); }
.ssc-x:hover { background: rgba(255, 255, 255, .16); }

.ssc-body { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(rgba(200, 137, 46, .08) 1px, transparent 1px) 0 0 / 18px 18px, #fffdf9; overscroll-behavior: contain; }
.ssc-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: ssc-in .25s ease; word-wrap: break-word; }
.ssc-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #efe3cf; border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -12px rgba(27, 23, 20, .3); }
.ssc-msg--me { align-self: flex-end; color: #1b1714; background: linear-gradient(135deg, #f0c374, #e0a245); border-bottom-right-radius: 6px; font-weight: 500; }
.ssc-msg a { color: #8a5a14; font-weight: 600; }
.ssc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ssc-links a { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: #8a5a14; background: #fbf1df; border: 1px solid #f0dcb8; }
.ssc-links a:hover { background: #f6e3c0; }
.ssc-typing { display: flex; gap: 5px; padding: 14px 16px; }
.ssc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c8892e; animation: ssc-bounce 1.2s infinite ease-in-out; }
.ssc-typing i:nth-child(2) { animation-delay: .15s; }
.ssc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ssc-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }

.ssc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.ssc-act { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; border: 1px solid #e6d3b3; background: #fff; color: #1b1714; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ssc-act--gold { border-color: transparent; background: #c8892e; color: #1b1714; box-shadow: 0 8px 20px -10px rgba(200, 137, 46, .8); }
.ssc-act--gold:hover { background: #d4973b; }
.ssc-act:disabled { opacity: .6; cursor: default; }

.ssc-lead { align-self: stretch; display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #efe3cf; animation: ssc-in .25s ease; }
.ssc-lead p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; color: #5e544b; }
.ssc-lead p strong { color: #1b1714; font-size: 15px; }
.ssc-lead input { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid #e6d3b3; background: #fffdf9; color: #1b1714; font-size: 14px; outline: none; }
.ssc-lead input:focus { border-color: #c8892e; box-shadow: 0 0 0 3px rgba(200, 137, 46, .18); }
.ssc-lead-err { color: #b42318 !important; min-height: 0; margin: 0 !important; }

.ssc-chips { display: flex; gap: 8px; padding: 4px 14px 8px; overflow-x: auto; scrollbar-width: none; }
.ssc-chips:empty { display: none; }
.ssc-chips::-webkit-scrollbar { display: none; }
.ssc-chip { flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid #ecd9b8; background: #fff; color: #5a3c12; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ssc-chip:hover { background: #fbf1df; border-color: #c8892e; }

.ssc-form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid #f1e6d4; background: #fff; }
.ssc-in { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #e6d3b3; background: #fffdf9; color: #1b1714; font-size: 14.5px; outline: none; }
.ssc-in:focus { border-color: #c8892e; box-shadow: 0 0 0 3px rgba(200, 137, 46, .18); }
.ssc-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; color: #e8b05a; background: #1b1714; }
.ssc-send:hover { background: #2c2117; }
.ssc-foot { margin: 0; padding: 0 12px 10px; background: #fff; text-align: center; font-size: 11px; color: #a3968a; }

.ssc-inline-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(120deg, #1b1714, #8a5a14); }

@media (max-width: 640px) {
	.ssc { right: 14px; bottom: 14px; }
	.ssc-launch { height: 56px; padding: 0 8px; }
	.ssc-launch-txt { display: none; }
	.ssc-ping { left: 38px; }
	.ssc.is-open { inset: 0; right: 0; bottom: 0; }
	.ssc-panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .ssc * { animation: none !important; } }

.ssm-menu-open .ssc { display: none; }
