/* 7/24 müşteri asistanı: sağ altta, WhatsApp düğmesinin üstünde */
.asistan-btn { position: fixed; right: 20px; bottom: 88px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(145deg, #f3d36b, #d4af37 55%, #a8862a); color: #141414; box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 0 rgba(212,175,55,.5); transition: transform .2s, box-shadow .2s; }
.asistan-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.asistan-btn:hover { transform: translateY(-2px) scale(1.04); }
.asistan:not(.gordu):not(.acik) .asistan-btn { animation: asistan-nabiz 2.6s ease-out 1.5s 3; }
@keyframes asistan-nabiz { 0% { box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 0 rgba(212,175,55,.55); } 70% { box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 16px rgba(212,175,55,0); } 100% { box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 0 rgba(212,175,55,0); } }
.asistan-nokta { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid #141414; }
.asistan.acik .asistan-nokta { display: none; }
.asistan-pencere { position: fixed; right: 20px; bottom: 156px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 190px)); display: flex; flex-direction: column;
  background: #171717; border: 1px solid #2c2c2c; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; animation: asistan-ac .2s ease-out; }
.asistan-pencere[hidden] { display: none; }
@keyframes asistan-ac { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.asistan-pencere header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: linear-gradient(135deg, #2a2412, #1c1c1c); border-bottom: 1px solid #2c2c2c; }
.asistan-pencere header b { display: block; color: #f3d36b; font-size: 15px; }
.asistan-pencere header small { color: #9aa0a8; font-size: 12px; }
.asistan-araclar { display: flex; align-items: center; gap: 4px; }
.asistan-sifirla { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid #353535; color: #c9cdd3; cursor: pointer; padding: 5px 9px; border-radius: 999px; font: 500 12px inherit; font-family: inherit; }
.asistan-sifirla[hidden] { display: none; }
.asistan-sifirla:hover { border-color: #d4af37; color: #f3d36b; }
.asistan-sifirla svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asistan-kapat { background: none; border: 0; color: #aeb3bb; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.asistan-kapat:hover { background: #262626; color: #fff; }
.asistan-kapat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.asistan-akis { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.asistan-msj { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.asistan-msj.bot { align-self: flex-start; background: #232323; color: #e6e8eb; border-bottom-left-radius: 4px; }
.asistan-msj.ben { align-self: flex-end; background: #d4af37; color: #141414; border-bottom-right-radius: 4px; font-weight: 500; }
.asistan-msj a { color: #f3d36b; font-weight: 600; }
.asistan-urunler { display: grid; gap: 6px; margin-top: 8px; }
.asistan-urun { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: #1a1a1a; border: 1px solid #2f2f2f; color: #e6e8eb !important; font-weight: 400 !important; text-decoration: none; }
.asistan-urun:hover { border-color: rgba(255,255,255,.4); }
.asistan-urun img, .asistan-urun > span:first-child { width: 44px; height: 44px; border-radius: 7px; object-fit: contain; background: #fff; }
.asistan-urun b { display: block; font-size: 13px; line-height: 1.25; }
.asistan-urun small { color: #9aa0a8; font-size: 12px; }
.asistan-yaziyor { display: flex; gap: 4px; padding: 12px 14px; }
.asistan-yaziyor i { width: 7px; height: 7px; border-radius: 50%; background: #8a8f98; animation: asistan-yaz 1s infinite; }
.asistan-yaziyor i:nth-child(2) { animation-delay: .15s; } .asistan-yaziyor i:nth-child(3) { animation-delay: .3s; }
@keyframes asistan-yaz { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.asistan-hizli { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.asistan-hizli:empty { display: none; }
.asistan-hizli button { background: #1f1f1f; color: #d9dce0; border: 1px solid #353535; border-radius: 999px; padding: 6px 11px; font: 500 12.5px inherit; font-family: inherit; cursor: pointer; }
.asistan-hizli button:hover { border-color: #d4af37; color: #f3d36b; }
.asistan-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #2c2c2c; }
.asistan-form input { flex: 1; min-width: 0; background: #101010; color: #eceef1; border: 1px solid #333; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; outline: none; }
.asistan-form input:focus { border-color: #d4af37; }
.asistan-form button { width: 42px; border: 0; border-radius: 10px; background: #d4af37; color: #141414; cursor: pointer; display: grid; place-items: center; }
.asistan-form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asistan-wa { display: block; text-align: center; padding: 8px 12px 12px; font-size: 12.5px; color: #25d366; text-decoration: none; }
.asistan-wa:hover { text-decoration: underline; }
.has-cartbar .asistan-btn { bottom: 152px; } .has-cartbar .asistan-pencere { bottom: 220px; }
@media (max-width: 760px) {
  .mm .asistan-btn { bottom: calc(150px + env(safe-area-inset-bottom)) !important; right: 18px; width: 52px; height: 52px; }
  .mm .asistan-pencere { right: 8px; left: 8px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); height: min(70vh, calc(100vh - 150px)); }
}
@media (prefers-reduced-motion: reduce) { .asistan-btn, .asistan-pencere, .asistan-yaziyor i { animation: none !important; } }
