.afc-root{--afc-accent:#0b6e99;position:fixed;bottom:18px;z-index:99990;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1d2328}
.afc-root.afc-left{left:18px}.afc-root.afc-right{right:18px}
.afc-root *{box-sizing:border-box}
.afc-launch{display:flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:12px 18px;background:var(--afc-accent);color:#fff;font:600 15px/1 inherit;font-family:inherit;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.afc-launch:hover{filter:brightness(1.08)}
.afc-open .afc-launch{display:none}
.afc-panel{display:none;flex-direction:column;width:420px;max-width:calc(100vw - 24px);height:640px;max-height:calc(100vh - 36px);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.28)}
.afc-open .afc-panel{display:flex}
.afc-head{display:flex;align-items:center;gap:8px;padding:12px 14px;background:var(--afc-accent);color:#fff}
.afc-title{flex:1;font-weight:700}
.afc-reset,.afc-close{background:rgba(255,255,255,.15);border:0;color:#fff;border-radius:8px;padding:5px 9px;cursor:pointer;font:inherit;font-size:13px}
.afc-close{font-size:20px;line-height:1;padding:3px 10px}
.afc-log{flex:1;overflow-y:auto;padding:14px;background:#f4f6f8;display:flex;flex-direction:column;gap:10px}
.afc-msg{max-width:92%;padding:9px 12px;border-radius:14px;word-wrap:break-word}
.afc-assistant{align-self:flex-start;background:#fff;border:1px solid #e1e6ea;border-bottom-left-radius:4px}
.afc-user{align-self:flex-end;background:var(--afc-accent);color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
.afc-md p{margin:0 0 6px}.afc-md p:last-child{margin:0}
.afc-md ul,.afc-md ol{margin:4px 0 8px;padding-left:20px}.afc-md li{margin:3px 0}
.afc-md h4{margin:10px 0 4px;font-size:15px;font-weight:700}.afc-md h4:first-child{margin-top:0}
.afc-md hr{border:0;border-top:1px solid #e1e6ea;margin:8px 0}
.afc-md code{background:#eef2f5;border-radius:4px;padding:1px 4px;font-size:13px}
.afc-tablewrap{overflow-x:auto;margin:6px 0 8px}.afc-md table{border-collapse:collapse;font-size:13px;width:100%}.afc-md th,.afc-md td{border:1px solid #e1e6ea;padding:4px 6px;text-align:left;vertical-align:top}.afc-md th{background:#f4f6f8}
.afc-md p{margin:0 0 8px}
.afc-md a{color:var(--afc-accent);font-weight:600;text-decoration:underline}
.afc-user .afc-md a{color:#fff}
.afc-cards{display:flex;gap:8px;overflow-x:auto;margin-top:8px;padding-bottom:2px}
.afc-card{flex:0 0 118px;display:flex;flex-direction:column;gap:3px;text-decoration:none;color:inherit;border:1px solid #e1e6ea;border-radius:10px;padding:6px;background:#fff}
.afc-card img{width:100%;height:84px;object-fit:contain;background:#fff}
.afc-card-name{font-size:12px;line-height:1.25;max-height:3.75em;overflow:hidden}
.afc-card-price{font-size:12px;font-weight:700;color:var(--afc-accent)}
.afc-coupon{margin-top:8px;border:2px dashed var(--afc-accent);border-radius:12px;padding:10px;text-align:center;background:#f7fbfd}
.afc-coupon-label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#5a6670}
.afc-code{display:inline-block;margin:6px 0;border:0;background:#fff;border-radius:8px;padding:6px 12px;font:700 18px/1.2 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;cursor:pointer;color:#1d2328;box-shadow:inset 0 0 0 1px #d5dde3}
.afc-coupon-info{font-size:13px;margin-bottom:8px}
.afc-cart{display:inline-block;background:var(--afc-accent);color:#fff!important;text-decoration:none;padding:8px 14px;border-radius:8px;font-weight:700}
.afc-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0;background:#f4f6f8}
.afc-chip{border:1px solid var(--afc-accent);background:#fff;color:var(--afc-accent);border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;cursor:pointer}
.afc-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e1e6ea;background:#fff}
.afc-input{flex:1;resize:none;border:1px solid #cfd8de;border-radius:10px;padding:9px 10px;font:inherit;max-height:120px;outline:none}
.afc-input:focus{border-color:var(--afc-accent)}
.afc-send{border:0;border-radius:10px;padding:0 14px;background:var(--afc-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.afc-send:disabled{opacity:.5;cursor:default}
.afc-foot{font-size:11px;color:#7a858e;text-align:center;padding:0 10px 8px;background:#fff}
.afc-typing span{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:#9aa6af;animation:afc-b 1s infinite}
.afc-typing span:nth-child(2){animation-delay:.15s}.afc-typing span:nth-child(3){animation-delay:.3s}
@keyframes afc-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.afc-wish{margin-top:8px;border:1px solid #d5dde3;border-radius:12px;padding:10px;background:#fff}
.afc-wish-title{font-weight:700;margin-bottom:6px}
.afc-wish-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid #eef2f5;text-decoration:none;color:inherit}
.afc-wish-row img{width:44px;height:44px;object-fit:contain;flex:0 0 44px;background:#fff}
.afc-wish-mid{flex:1;display:flex;flex-direction:column;min-width:0}
.afc-wish-name{font-size:13px;line-height:1.25}
.afc-wish-why{font-size:11px;color:#6b7680}
.afc-wish-price{font-weight:700;font-size:13px;color:var(--afc-accent);white-space:nowrap}
.afc-wish-total{display:flex;justify-content:space-between;border-top:2px solid #d5dde3;padding:8px 0;margin-bottom:6px}
.afc-wish .afc-cart{width:100%;border:0;cursor:pointer;font:inherit;font-weight:700}
.afc-wish .afc-cart:disabled{opacity:.85;cursor:default}
.afc-wish-status{font-size:12px;text-align:center;margin-top:6px;color:#5a6670}
.afc-wish-status a{color:var(--afc-accent);font-weight:600}
@media (max-width:600px){
.afc-root{bottom:12px}.afc-root.afc-left{left:12px}.afc-root.afc-right{right:12px}
.afc-root.afc-open{top:0;left:0!important;right:0!important;bottom:0;width:auto}
.afc-open .afc-panel{position:absolute;inset:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:0}
.afc-msg{max-width:85%}
.afc-input{font-size:16px}
}
.afc-status{display:block;font-style:normal;font-size:12px;color:#6b7680;margin-top:4px}
.afc-msg,.afc-md,.afc-wish-name{overflow-wrap:anywhere}
