28 lines
4.1 KiB
CSS
28 lines
4.1 KiB
CSS
.cs-widget { position: fixed; right: 24px; bottom: 24px; z-index: 90; font-family: inherit; }
|
|
.cs-widget__launcher { display: inline-flex; align-items: center; gap: 12px; min-width: 164px; padding: 10px 14px 10px 10px; color: #f5fffc; background: linear-gradient(135deg, #075f56, #118879); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; box-shadow: 0 14px 32px rgba(7,95,86,.26), 0 2px 5px rgba(7,95,86,.14); cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
|
|
.cs-widget__launcher:hover, .cs-widget__launcher:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(7,95,86,.31), 0 2px 5px rgba(7,95,86,.14); outline: none; }
|
|
.cs-widget__orb { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34); border-radius: 50%; }
|
|
.cs-widget__orb span { width: 10px; height: 10px; background: #b9f1df; border-radius: 50%; box-shadow: 0 0 0 5px rgba(185,241,223,.16); }
|
|
.cs-widget__launcher-copy { display: grid; gap: 2px; text-align: left; }
|
|
.cs-widget__launcher-copy strong { font-size: 13px; font-weight: 700; }
|
|
.cs-widget__launcher-copy small { color: rgba(245,255,252,.72); font-size: 11px; }
|
|
.cs-widget__panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(380px, calc(100vw - 32px)); overflow: hidden; color: #172d29; background: #fbfefd; border: 1px solid #cfe1db; border-radius: 14px; box-shadow: 0 26px 70px rgba(20,58,50,.22); transform-origin: bottom right; animation: cs-pop 180ms ease both; }
|
|
.cs-widget__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; color: #effbf7; background: linear-gradient(135deg, #0b514a, #167b70); }
|
|
.cs-widget__eyebrow { margin: 0 0 4px; color: rgba(239,251,247,.68); font-size: 11px; letter-spacing: .03em; }
|
|
.cs-widget__header h2 { margin: 0; font-size: 19px; font-weight: 680; }
|
|
.cs-widget__close { width: 30px; height: 30px; color: inherit; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
|
|
.cs-widget__notice { padding: 10px 20px; color: #5b716b; background: #eef6f3; border-bottom: 1px solid #dceae5; font-size: 12px; line-height: 1.55; }
|
|
.cs-widget__messages { height: 280px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: #f8fbfa; }
|
|
.cs-widget__message { max-width: 84%; padding: 10px 12px; color: #29423b; background: #e6f0ed; border-radius: 10px 10px 10px 3px; font-size: 13px; line-height: 1.62; white-space: pre-wrap; }
|
|
.cs-widget__message--user { align-self: flex-end; color: #f4fffb; background: #0a7568; border-radius: 10px 10px 3px 10px; }
|
|
.cs-widget__composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid #dceae5; }
|
|
.cs-widget__composer input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; color: #172d29; background: #f7faf9; border: 1px solid #d2e1dc; border-radius: 8px; outline: none; }
|
|
.cs-widget__composer input:focus { border-color: #147f73; box-shadow: 0 0 0 3px rgba(20,127,115,.12); }
|
|
.cs-widget__composer button { min-width: 54px; color: #fff; background: #0a7568; border: 0; border-radius: 8px; cursor: pointer; }
|
|
.cs-widget__composer button:hover { background: #075f56; }
|
|
.cs-widget__footer { padding: 0 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #82938e; font-size: 10px; }
|
|
.cs-widget__footer button { padding: 0; color: #0a7568; background: transparent; border: 0; font-size: 11px; cursor: pointer; }
|
|
@keyframes cs-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
|
|
@media (max-width: 620px) { .cs-widget { right: 14px; bottom: 14px; } .cs-widget__launcher { min-width: 0; padding-right: 11px; } .cs-widget__launcher-copy { display: none; } .cs-widget__panel { right: -2px; width: min(380px, calc(100vw - 28px)); } }
|
|
@media (prefers-reduced-motion: reduce) { .cs-widget__panel { animation: none; } .cs-widget__launcher { transition: none; } }
|