#iqos-chatorder{position:fixed;z-index:99999;font-family:'Inter',Arial,sans-serif;--chat-color:#00838f;--chat-color-2:#7c3aed}
.position-bottomright{right:20px;bottom:20px}
.position-bottomleft{left:20px;bottom:20px}
.position-topright{right:20px;top:20px}
.position-topleft{left:20px;top:20px}

/* Tetikleyici buton */
.co-button{width:66px;height:66px;border:0;border-radius:50%;color:#fff;cursor:pointer;position:relative;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);
    box-shadow:0 10px 25px -5px rgba(0,0,0,.35);
    transition:transform .3s cubic-bezier(.175,.885,.32,1.275),box-shadow .3s ease}
.co-button:hover{transform:scale(1.08);box-shadow:0 15px 30px -5px rgba(0,0,0,.45)}
.co-button span{font-size:28px}
.co-badge{display:none;position:absolute;top:-4px;right:-4px;background:#e11d48;border:2px solid #fff;border-radius:50%;
    min-width:22px;height:22px;font-size:11px;align-items:center;justify-content:center;
    animation:coPulse 2s infinite}
@keyframes coPulse{0%{box-shadow:0 0 0 0 rgba(225,29,72,.45)}70%{box-shadow:0 0 0 8px rgba(225,29,72,0)}100%{box-shadow:0 0 0 0 rgba(225,29,72,0)}}

/* Sohbet penceresi (glassmorphism) */
.co-window{position:absolute;right:0;bottom:80px;width:390px;height:610px;
    background:rgba(255,255,255,.9);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.5);border-radius:22px;overflow:hidden;
    box-shadow:0 25px 50px -12px rgba(0,0,0,.25);
    display:flex;flex-direction:column;
    transform:translateY(20px) scale(.95);transform-origin:bottom right;
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .35s cubic-bezier(.16,1,.3,1),transform .35s cubic-bezier(.16,1,.3,1),visibility .35s}
.position-bottomleft .co-window,.position-topleft .co-window{left:0;right:auto;transform-origin:bottom left}
.position-topright .co-window,.position-topleft .co-window{top:80px;bottom:auto;transform-origin:top right}
.co-window.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}

/* Başlık */
.co-header{background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);color:#fff;padding:16px;
    display:flex;justify-content:space-between;align-items:center;flex:none}
.co-header strong,.co-header small{display:block}
.co-header small{font-size:11px;opacity:.85;margin-top:3px}
.co-head-actions{display:flex;gap:6px}
.co-head-actions button{border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer;transition:background .2s}
.co-head-actions button:hover{background:rgba(255,255,255,.3)}

/* Mesaj alanı */
.co-messages{flex:1;overflow:auto;background:#f8fafc;padding:15px}
.co-messages::-webkit-scrollbar{width:5px}
.co-messages::-webkit-scrollbar-track{background:transparent}
.co-messages::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}

.co-message{display:flex;gap:9px;margin-bottom:14px;animation:coFadeIn .25s ease}
@keyframes coFadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.co-message.user{flex-direction:row-reverse}
.co-avatar{width:32px;height:32px;border-radius:50%;background:#eef2ff;color:var(--chat-color);
    display:flex;align-items:center;justify-content:center;flex:none;font-size:15px}
.co-bubble{background:#fff;border-radius:16px;border-bottom-left-radius:4px;padding:11px 13px;
    box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f1f1f4;line-height:1.5;max-width:280px;font-size:13px}
.co-message.user .co-bubble{background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);
    color:#fff;border:none;border-bottom-left-radius:16px;border-bottom-right-radius:4px}
.co-message time{font-size:10px;color:#94a3b8;margin-top:4px;display:block}
.co-message.user time{text-align:right}

/* Kartlar (ürün / sepet / iban / sipariş / checkout) */
.co-products,.co-cart,.co-iban,.co-order,.co-checkout{background:#fff;border-radius:15px;padding:12px;margin:8px 0;
    box-shadow:0 2px 8px rgba(0,0,0,.06);border:1px solid #f1f1f4;animation:coFadeIn .25s ease}
.co-product{display:flex;gap:9px;border-bottom:1px solid #f1f1f4;padding:8px 0}
.co-product:last-child{border-bottom:0}
.co-product img{width:55px;height:55px;object-fit:cover;border-radius:10px;background:#eee}
.co-product strong{display:block;font-size:12px}
.co-product span{display:block;font-size:12px;margin:4px 0}
.co-product button,.co-cart button,.co-iban button,.co-checkout button,.co-checkout-btn{
    border:0;background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);
    color:#fff;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer}

.co-cat-wrap{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.co-cat-btn{border:0;background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);
    color:#fff;border-radius:18px;padding:8px 12px;font-size:11px;font-weight:700;cursor:pointer}

/* Teslimat bilgi formu */
.co-checkout{display:flex;flex-direction:column;gap:8px}
.co-checkout input{border:1px solid #d7dfe1;border-radius:10px;padding:9px 10px;font-size:12px;outline:none;
    width:100%;box-sizing:border-box;transition:border-color .15s}
.co-checkout input:focus{border-color:var(--chat-color)}
.co-checkout input.co-invalid{border-color:#e11d48}
.co-checkout-err{color:#e11d48;font-size:11px;margin:0}
.co-checkout button{margin-top:2px}

/* Alt aksiyon çubuğu */
.co-actions{display:flex;gap:6px;flex-wrap:wrap;padding:9px;border-top:1px solid #f1f1f4;flex:none}
.co-actions button{border:1px solid #e2e8f0;background:#f8fafc;color:#334155;border-radius:18px;padding:7px 10px;
    font-size:11px;font-weight:700;cursor:pointer;transition:background .15s}
.co-actions button:hover{background:#eef2ff}

/* Mesaj girişi */
.co-input{display:flex;gap:8px;padding:12px;border-top:1px solid #f1f1f4;flex:none}
.co-input input{flex:1;border:1px solid #d7dfe1;border-radius:12px;padding:11px;font-size:13px;outline:none;transition:border-color .15s}
.co-input input:focus{border-color:var(--chat-color)}
.co-input button{width:42px;border:0;border-radius:12px;
    background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);color:#fff;font-size:18px;cursor:pointer}

/* Yazıyor göstergesi */
.co-typing{display:flex;align-items:center;gap:4px;background:#fff;border:1px solid #f1f1f4;
    box-shadow:0 1px 3px rgba(0,0,0,.06);border-radius:16px;border-bottom-left-radius:4px;
    padding:12px 14px;width:fit-content}
.co-typing span{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:coBounce 1.4s infinite ease-in-out both}
.co-typing span:nth-child(2){animation-delay:-.16s}
.co-typing span:nth-child(3){animation-delay:-.32s}
@keyframes coBounce{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}

/* Dekont yükleme */
.co-upload{padding:12px;border-top:1px solid #f1f1f4;background:#fff;flex:none}
.co-upload>div{display:flex;justify-content:space-between;margin-bottom:10px}
.co-upload button{border:0;background:linear-gradient(135deg,var(--chat-color) 0%,var(--chat-color-2) 100%);
    color:#fff;border-radius:9px;padding:8px 12px;font-weight:700;cursor:pointer}
.co-upload>div button{background:#f1f5f9;color:#334155}
.co-upload-btn{margin-top:8px;width:100%}

@media(max-width:600px){
    .co-window{position:fixed;inset:0;width:100%;height:100%;border-radius:0}
    .position-bottomright .co-window,.position-bottomleft .co-window{right:0;left:0;bottom:0}
    .co-button{width:60px;height:60px}
    .position-bottomright,.position-bottomleft{bottom:14px}
    .position-bottomright{right:14px}
    .position-bottomleft{left:14px}
}
