/* /live-chat animated sections (web-live-chat-demos.php), on the Oppys demo engine (oppys.js).
   Brand colours arrive as --top / --bot / --soft on .cl (the studio's when branded). */
.cl { --top: #5d45a2; --bot: #4923a5; --soft: #ece6f8; background: #fff; padding: 30px 0 20px; text-align: left; }
.cl * { box-sizing: border-box; }
.cl-row { display: flex; align-items: center; gap: 60px; max-width: 1120px; margin: 0 auto; padding: 70px 30px; }
.cl-row + .cl-row { border-top: 1px solid #f0eef6; }
.cl-flip { flex-direction: row-reverse; }
.cl-shot { flex: 0 0 56%; }
.cl-copy { flex: 1; }
.cl-tag { display: inline-block; background: var(--soft); color: var(--bot); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; margin-bottom: 14px; }
.cl-copy h2 { font-size: 33px; line-height: 1.2; color: #333; letter-spacing: -0.5px; margin: 0 0 14px; }
.cl-copy p { font-size: 18px; line-height: 29px; color: #666; margin: 0 0 16px; padding: 0; text-align: left; }
.cl-copy ul { margin: 0; padding: 0; list-style: none; }
.cl-copy li { position: relative; padding: 6px 0 6px 30px; font-size: 16px; line-height: 1.5; color: #555; }
.cl-copy li::before { content: '\2713'; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--top); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }

/* Reveal on scroll (oppys.js adds .in) */
.cl [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.cl [data-reveal].in { opacity: 1; transform: none; }
.cl [data-from] { transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }

/* A desktop window */
.cl-browser { position: relative; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(40,20,90,.18); border: 1px solid #ebe8f3; }
.cl-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #f3f1f8; border-bottom: 1px solid #ebe8f3; }
.cl-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.cl-bar i:nth-child(2) { background: #febc2e; } .cl-bar i:nth-child(3) { background: #28c840; }
.cl-bar span { margin-left: 10px; font-size: 11.5px; color: #8a8a95; background: #fff; border-radius: 6px; padding: 3px 12px; }
.cl-av { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h), 55%, 58%); color: #fff; font-size: 12px; font-weight: 800; }
.cl-msg { max-width: 82%; font-size: 13px; line-height: 1.4; padding: 8px 11px; border-radius: 14px; }
.cl-msg.them { align-self: flex-start; background: #f1eff7; color: #2a2a33; border-bottom-left-radius: 4px; }
.cl-msg.me { align-self: flex-end; background: var(--top); color: #fff; border-bottom-right-radius: 4px; }
.cl-thread { display: flex; flex-direction: column; gap: 7px; padding: 12px; }
.cl [data-from]:not(.on) { opacity: 0; transform: translateY(8px); }
.cl [data-type].typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: currentColor; animation: clcaret .7s steps(1) infinite; }
@keyframes clcaret { 50% { opacity: 0; } }

/* 1: the website - drag the chat button from Add to site to the corner, publish, open */
.cl-web-body { position: relative; height: 330px; background: #fafafc; }
.cl-page { position: absolute; top: 0; bottom: 0; left: 0; right: 26%; padding: 14px; transition: right .6s ease; }
.cl-web[data-phase="publish"] .cl-page, .cl-web[data-phase="open"] .cl-page, .cl-web[data-phase="visitor"] .cl-page, .cl-web[data-phase="reply"] .cl-page { right: 0; }
.cl-page-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cl-page-nav b { width: 70px; height: 12px; border-radius: 6px; background: var(--top); margin-right: auto; }
.cl-page-nav span { width: 36px; height: 7px; border-radius: 4px; background: #dcd8e8; }
.cl-page-hero { height: 130px; border-radius: 10px; background: linear-gradient(135deg, var(--top), var(--bot)); padding: 26px 22px; }
.cl-page-hero b, .cl-page-hero i, .cl-page-hero em { display: block; border-radius: 5px; background: rgba(255,255,255,.85); }
.cl-page-hero b { width: 55%; height: 14px; } .cl-page-hero i { width: 38%; height: 8px; margin-top: 10px; background: rgba(255,255,255,.55); }
.cl-page-hero em { width: 70px; height: 20px; margin-top: 18px; border-radius: 6px; }
.cl-page-cards { display: flex; gap: 10px; margin-top: 12px; }
.cl-page-cards span { flex: 1; height: 80px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.cl-side { position: absolute; top: 0; bottom: 0; right: 0; width: 26%; background: #fff; border-left: 1px solid #ebe8f3; padding: 12px 10px; transition: transform .6s ease, opacity .6s ease; }
.cl-web[data-phase="publish"] .cl-side, .cl-web[data-phase="open"] .cl-side, .cl-web[data-phase="visitor"] .cl-side, .cl-web[data-phase="reply"] .cl-side { transform: translateX(100%); opacity: 0; }
.cl-side-title { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a8a95; margin-bottom: 10px; }
.cl-tile { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #44444d; border: 1px solid #ebe8f3; border-radius: 9px; padding: 9px 8px; margin-bottom: 8px; transition: border-color .3s ease, background .3s ease; }
.cl-tile i { width: 18px; height: 18px; border-radius: 5px; background: #dcd8e8; }
.cl-tile i.t3 { background: var(--top); border-radius: 50%; }
.cl-web[data-phase="grab"] .cl-tile-chat { border-color: var(--top); background: var(--soft); }
.cl-fab { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--top); box-shadow: 0 8px 22px rgba(40,20,90,.35); display: flex; align-items: center; justify-content: center; left: calc(87% - 23px); top: calc(66% - 23px); opacity: 0; transform: scale(.4); transition: left 1.1s cubic-bezier(.45,0,.2,1), top 1.1s cubic-bezier(.45,0,.2,1), opacity .3s ease, transform .35s cubic-bezier(.3,1.6,.5,1); z-index: 3; }
.cl-fab > svg:first-child { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.cl-cursor { position: absolute; left: 30px; top: 28px; width: 22px; height: 22px; fill: #1c1c22; stroke: #fff; stroke-width: 1.4; opacity: 0; transition: opacity .3s ease; }
.cl-web:not([data-phase="edit"]) .cl-fab { opacity: 1; transform: none; }
.cl-web[data-phase="grab"] .cl-fab { transform: scale(1.12); }
.cl-web[data-phase="grab"] .cl-cursor, .cl-web[data-phase="drag"] .cl-cursor, .cl-web[data-phase="drop"] .cl-cursor { opacity: 1; }
.cl-web[data-phase="drag"] .cl-fab, .cl-web[data-phase="drop"] .cl-fab { left: calc(74% - 62px); top: calc(100% - 62px); }
.cl-web[data-phase="drop"] .cl-fab { animation: cldrop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes cldrop { 0% { transform: scale(1.2); } 100% { transform: none; } }
.cl-web[data-phase="publish"] .cl-fab, .cl-web[data-phase="open"] .cl-fab, .cl-web[data-phase="visitor"] .cl-fab, .cl-web[data-phase="reply"] .cl-fab { left: calc(100% - 62px); top: calc(100% - 62px); }
.cl-panel { position: absolute; right: 16px; bottom: 72px; width: 58%; max-width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(40,20,90,.25); overflow: hidden; transform-origin: bottom right; transform: scale(.2); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; z-index: 2; }
.cl-web[data-phase="open"] .cl-panel, .cl-web[data-phase="visitor"] .cl-panel, .cl-web[data-phase="reply"] .cl-panel { transform: none; opacity: 1; }
.cl-panel-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: linear-gradient(90deg, var(--top), var(--bot)); color: #fff; }
.cl-panel-head img { width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: contain; }
.cl-panel-head b { display: block; font-size: 13px; }
.cl-panel-head span { display: block; font-size: 10.5px; opacity: .85; }
.cl-panel-head span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7ee0a0; margin-right: 4px; }

/* 2: Team Chat */
.cl-team-body { display: flex; height: 330px; }
.cl-chan { flex: 0 0 34%; background: linear-gradient(180deg, var(--bot), #2b1a63); color: rgba(255,255,255,.75); padding: 12px 10px; font-size: 12px; }
.cl-chan-org { color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-chan-cat { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin: 10px 0 4px; }
.cl-pb-list .cl-chan-cat { color: #8a8a95; opacity: 1; }
.cl-chan-row { position: relative; padding: 4px 8px; border-radius: 6px; }
.cl-chan-row.on { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.cl-chan-row b { position: absolute; right: 6px; top: 3px; min-width: 18px; height: 16px; border-radius: 8px; background: #e0483a; color: #fff; font-size: 10px; text-align: center; line-height: 16px; }
.cl-team[data-phase="unread"] .cl-chan-fd { color: #fff; font-weight: 700; }
.cl-room { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cl-room-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #f0eef6; font-size: 13.5px; font-weight: 800; color: #2a2a33; }
.cl-room-faces .cl-av { width: 22px; height: 22px; font-size: 10px; margin-left: -6px; border: 2px solid #fff; }
.cl-room-msgs { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cl-post { display: flex; gap: 10px; }
.cl-post b { font-size: 12.5px; color: #2a2a33; margin-right: 6px; }
.cl-post small { font-size: 10.5px; color: #a0a0aa; }
.cl-post p { margin: 2px 0 0; padding: 0; font-size: 13px; line-height: 1.4; color: #44444d; text-align: left; }
.cl-react { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--bot); background: var(--soft); border: 1px solid var(--top); border-radius: 12px; padding: 1px 8px; }
.cl-react.on { animation: clpop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes clpop { 0% { transform: scale(.4); } 100% { transform: none; } }
.cl-mention { background: var(--soft); color: var(--bot); font-weight: 700; border-radius: 4px; padding: 0 3px; }
.cl-compose { margin: 0 14px 12px; border: 1px solid #e4e1ee; border-radius: 9px; padding: 9px 12px; font-size: 12px; color: #a0a0aa; }

/* 3: a private booking opens its chat */
.cl-pb { display: flex; align-items: center; gap: 0; }
.cl-pb-booked { flex: 0 0 150px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(40,20,90,.15); padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: scale(.92); opacity: .4; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .3s ease; }
.cl-pb-booked b { font-size: 16px; color: #2a2a33; }
.cl-pb-booked span { font-size: 11.5px; color: #77777f; line-height: 1.35; }
.cl-check { width: 46px; height: 46px; border-radius: 50%; background: #1fa463; color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.cl-pb[data-phase] .cl-pb-booked { transform: none; opacity: 1; }
.cl-pb-arrow { flex: 0 0 60px; width: 60px; height: 30px; fill: none; stroke: var(--top); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.cl-pb:not([data-phase="book"]) .cl-pb-arrow { stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease; }
.cl-pb-chat { flex: 1; min-width: 0; }
.cl-pb-body { display: flex; height: 400px; }
.cl-pb-list { flex: 0 0 34%; border-right: 1px solid #f0eef6; padding: 10px 8px; }
.cl-pb-row { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #44444d; }
.cl-pb-row .cl-av { width: 24px; height: 24px; font-size: 10px; }
.cl-pb-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-pb-row.new.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--top); }
.cl-pb-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; min-width: 0; overflow: hidden; }
.cl-bk { background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 9px 11px 10px; max-width: 94%; }
.cl-bk-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.cl-bk-head img { width: 18px; height: 18px; object-fit: contain; background: #f1f1f4; }
.cl-bk-head b { font-size: 11.5px; color: #333; }
.cl-bk-head em { font-style: normal; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #999; background: #f1f1f4; border-radius: 8px; padding: 1px 6px; }
.cl-bk-text { font-size: 12.5px; color: #222; line-height: 1.4; }
.cl-bk-card { margin-top: 7px; background: #f7f7fa; border-radius: 10px; padding: 8px 10px; text-align: center; }
.cl-bk-people { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #333; flex-wrap: wrap; }
.cl-bk-people .cl-av { width: 20px; height: 20px; font-size: 9px; }
.cl-bk-people .cl-av + .cl-av, .cl-bk-people .cl-av:nth-of-type(2) { margin-left: 8px; }
.cl-bk-service { margin-top: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #333; }
.cl-bk-when { font-size: 11.5px; color: #555; }
.cl-bk-btn { display: inline-block; margin-top: 7px; background: #3a7bd5; color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }

/* 4: not online - push and email */
.cl-off { display: flex; align-items: center; gap: 22px; }
.cl-off-chat { flex: 1; min-width: 0; }
.cl-off-chat .cl-thread { height: 220px; }
.cl-off-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0eef6; }
.cl-off-head b { display: block; font-size: 13px; color: #2a2a33; }
.cl-seen { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #77777f; }
.cl-seen i { width: 7px; height: 7px; border-radius: 50%; background: #2a9d3f; transition: background .3s ease; }
.cl-seen em { font-style: normal; }
.cl-seen .b { display: none; }
.cl-off:not([data-phase="send"]) .cl-seen i { background: #b4b4c0; }
.cl-off:not([data-phase="send"]) .cl-seen .a { display: none; }
.cl-off:not([data-phase="send"]) .cl-seen .b { display: inline; }
.cl-off-out { flex: 0 0 200px; display: flex; flex-direction: column; gap: 14px; }
.cl-lock { position: relative; height: 210px; border: 7px solid #16161a; border-radius: 28px; background: linear-gradient(160deg, #3b3f6b, #1d1f36); padding: 26px 8px 0; overflow: hidden; }
.cl-lock-time { color: #fff; text-align: center; font-size: 34px; font-weight: 300; margin-bottom: 14px; }
.cl-push { display: flex; gap: 8px; align-items: center; background: rgba(250,250,252,.92); border-radius: 13px; padding: 8px 9px; }
.cl-push.on { animation: clpush .55s cubic-bezier(.2,.9,.3,1.2); }
@keyframes clpush { 0% { transform: translateY(-60px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cl-push-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--top), var(--bot)) center / cover no-repeat; background-color: #fff; }
.cl-push b { display: block; font-size: 11px; color: #1c1c22; }
.cl-push span { display: block; font-size: 10.5px; line-height: 1.3; color: #44444d; }
.cl-mail { background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(40,20,90,.15); padding: 10px 12px; border-left: 4px solid var(--top); }
.cl-mail-row { display: flex; justify-content: space-between; font-size: 11.5px; }
.cl-mail-row b { color: #2a2a33; } .cl-mail-row small { color: #a0a0aa; }
.cl-mail-subj { font-size: 12px; color: #44444d; margin: 3px 0 8px; }
.cl-mail-btn { display: inline-block; background: #5d45a2; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 5px 10px; border-radius: 6px; }

@media (max-width: 900px) {
	.cl-row, .cl-flip { flex-direction: column; gap: 30px; padding: 50px 18px; }
	.cl-shot { flex: none; width: 100%; }
	.cl-copy h2 { font-size: 26px; }
	.cl-pb { flex-direction: column; gap: 10px; }
	.cl-pb-arrow { transform: rotate(90deg); }
	.cl-pb-booked { flex: none; width: 200px; }
	.cl-off { flex-direction: column; }
	.cl-off-chat { width: 100%; }
	.cl-off-out { flex: none; width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
	.cl [data-reveal] { opacity: 1; transform: none; transition: none; }
}
