/* Carbezo Assistant 1.0.0 */
.cza { --cza: #2e7d4f; position: fixed; bottom: var(--cza-b, 92px); z-index: 9992; font-family: inherit; font-size: 14px; line-height: 1.4; color: #222; }
.cza-right { right: 20px; }
.cza-left { left: 20px; }
.cza *, .cza *::before, .cza *::after { box-sizing: border-box; }
.cza [hidden] { display: none !important; }

/* launcher */
.cza-launch { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--cza); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s; }
.cza-launch:hover { transform: translateY(-2px); }
.cza.is-open .cza-launch { transform: scale(.9); }

/* greeting bubble */
.cza-teaser { position: absolute; bottom: 66px; width: 250px; padding: 12px 30px 12px 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.2); cursor: pointer; animation: cza-in .35s ease-out; }
.cza-right .cza-teaser { right: 0; border-bottom-right-radius: 4px; }
.cza-left .cza-teaser { left: 0; border-bottom-left-radius: 4px; }
.cza-teaser-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; line-height: 1; color: #999; cursor: pointer; }

/* panel */
.cza-panel { position: absolute; bottom: 68px; width: 370px; max-width: calc(100vw - 28px); height: 560px; max-height: calc(100vh - var(--cza-b, 92px) - 90px); display: flex; flex-direction: column; background: #f4f6f5; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); overflow: hidden; animation: cza-in .25s ease-out; }
.cza-right .cza-panel { right: 0; }
.cza-left .cza-panel { left: 0; }

.cza-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--cza); color: #fff; }
.cza-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.cza-title { flex: 1; min-width: 0; }
.cza-title b { display: block; font-size: 15px; }
.cza-title small { opacity: .9; font-size: 12px; }
.cza-title small i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7CFC9A; margin-right: 3px; }
.cza-restart, .cza-close { border: 0; background: none; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 6px; opacity: .85; }
.cza-close { font-size: 26px; }
.cza-restart:hover, .cza-close:hover { opacity: 1; }

.cza-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; scroll-behavior: smooth; }

.cza-msg { max-width: 88%; margin: 0 0 8px; padding: 9px 12px; border-radius: 14px; word-wrap: break-word; animation: cza-in .25s ease-out; }
.cza-bot { background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cza-user { margin-left: auto; background: var(--cza); color: #fff; border-bottom-right-radius: 4px; }
.cza-hint { display: block; margin-top: 3px; font-size: 12px; color: #888; }

.cza-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.cza-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b5bdb9; animation: cza-dot 1s infinite ease-in-out; }
.cza-typing span:nth-child(2) { animation-delay: .15s; }
.cza-typing span:nth-child(3) { animation-delay: .3s; }

/* answer buttons */
.cza-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; animation: cza-in .25s ease-out; }
.cza-chips-scroll { max-height: 170px; overflow-y: auto; padding: 2px; }
.cza-chip { border: 1px solid var(--cza); background: #fff; color: var(--cza); border-radius: 18px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, color .15s; }
.cza-chip small { opacity: .65; font-size: 11px; margin-left: 2px; }
.cza-chip:hover { background: var(--cza); color: #fff; }
.cza-chip-alt { border-style: dashed; }
.cza-chip-wa { border-color: #25D366; color: #128C4A; }
.cza-chip-wa:hover { background: #25D366; color: #fff; }
.cza-chips.is-done .cza-chip:not(.is-picked):not(.cza-chip-wa) { opacity: .4; pointer-events: none; }
.cza-chips.is-done .cza-chip.is-picked { background: var(--cza); color: #fff; }

/* products */
.cza-products { margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; animation: cza-in .25s ease-out; }
.cza-product { display: flex; gap: 10px; align-items: center; padding: 7px; background: #fff; border-radius: 10px; color: #222 !important; text-decoration: none !important; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: box-shadow .15s; }
.cza-product:hover { box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cza-product img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; }
.cza-p-info { min-width: 0; }
.cza-p-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; }
.cza-p-meta { display: block; margin-top: 3px; font-size: 13px; }
.cza-p-meta s { color: #999; font-size: 12px; }
.cza-special { color: #d0021b; }
.cza-in { font-style: normal; font-size: 11px; color: #2e7d32; margin-left: 4px; }
.cza-out { color: #b26a00; }
.cza-all { display: block; text-align: center; padding: 8px; border-radius: 10px; background: var(--cza); color: #fff !important; font-weight: 600; text-decoration: none !important; }

/* input */
.cza-form { display: flex; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid #e3e7e5; margin: 0; }
.cza-input { flex: 1; min-width: 0; height: 40px; border: 1px solid #d6dbd8; border-radius: 20px; padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.cza-input:focus { border-color: var(--cza); }
.cza-send { flex: 0 0 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cza); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

@keyframes cza-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cza-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* phones: the chat becomes a full-width sheet */
@media (max-width: 767px) {
	.cza { bottom: var(--cza-mb, 84px); }
	.cza-right { right: 14px; }
	.cza-left { left: 14px; }
	.cza-launch { width: 52px; height: 52px; }
	.cza-teaser { bottom: 62px; width: 220px; }
	.cza.is-open { position: fixed; inset: 0; bottom: 0; }
	.cza.is-open .cza-launch { display: none; }
	.cza-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
}

@media print { .cza { display: none !important; } }