/* Cortado AI Concierge v1.3.1 — themeable + runtime config + ajax fallback */
#cai-root{position:fixed;bottom:20px;right:20px;z-index:9999999;--cai-primary:#7c3aed;--cai-bg:#fff;--cai-text:#111827;--cai-radius:16px;font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";}
#cai-root *{box-sizing:border-box}
.cai-btn{display:flex;align-items:center;gap:.5rem;border:none;border-radius:999px;background:var(--cai-primary);color:#fff;padding:.65rem .9rem;font-weight:700;box-shadow:0 10px 25px rgba(0,0,0,.18);cursor:pointer;transition:transform .08s ease, box-shadow .2s ease; position:relative;}
.cai-btn:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(0,0,0,.22)}
.cai-btn:active{transform:translateY(0)}
.cai-btn-icon{font-size:1.15rem;line-height:1}
.cai-panel{display:none;position:fixed;bottom:80px;right:20px;width:min(400px, calc(100vw - 48px));max-height:72vh;background:var(--cai-bg);color:var(--cai-text);border-radius:var(--cai-radius);box-shadow:0 18px 50px rgba(0,0,0,.22);overflow:hidden;backdrop-filter:saturate(140%) blur(6px)}
.cai-header{display:flex;align-items:center;gap:.6rem;padding:.8rem 1rem;border-bottom:1px solid rgba(0,0,0,.06)}
.cai-logo{height:22px;width:auto;object-fit:contain}
.cai-title{font-weight:800}
.cai-close{margin-left:auto;border:0;background:transparent;cursor:pointer;font-size:1.1rem;line-height:1;color:inherit;opacity:.7}
.cai-close:hover{opacity:1}
.cai-log{padding:12px;overflow:auto;height:44vh;font-size:.95rem;line-height:1.5}
.cai-msg{margin:.5rem 0}
.cai-msg .who{font-weight:700;margin-bottom:.15rem;opacity:.8}
.cai-msg .bubble{background:rgba(0,0,0,.04);padding:.6rem .7rem;border-radius:12px}
.cai-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 12px 8px}
.cai-actions a{display:inline-block;text-decoration:none;padding:.5rem .65rem;border:1px solid rgba(0,0,0,.12);border-radius:10px}
.cai-inputbar{display:flex;gap:.5rem;padding:12px;border-top:1px solid rgba(0,0,0,.06)}
.cai-input{flex:1;padding:.6rem .7rem;border:1px solid rgba(0,0,0,.12);border-radius:10px;background:#fff;color:#111827}
.cai-send{padding:.6rem .9rem;border:0;border-radius:10px;background:var(--cai-primary);color:#fff;font-weight:700;cursor:pointer}
#cai-root[dir="rtl"] .cai-btn-text{order:-1}
@media (max-width:480px){
  .cai-panel{right:12px;left:12px;width:auto}
}
