/* Site içi destek sohbeti. Kaynak: sohbet-merkezi/magaza/public/css/sohbet.css — mağazalara yama.js dağıtır.
   Sitenin renk değişkenlerini kullanır (--red = ana marka rengi); yoksa nötr yedekler devreye girer. */
.sb-dugme { position: fixed; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 151; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 13px; border: 0; border-radius: 99px; background: var(--red, #0b63a8); color: #fff; font: 700 14px/1 var(--sans, system-ui, sans-serif); cursor: pointer; box-shadow: 0 10px 28px -10px rgba(14, 17, 22, .55); transition: bottom .3s ease, background .2s; }
.sb-dugme:hover { background: var(--red-d, #084b80); }
.sb-dugme:focus-visible, .sb-kapat:focus-visible, .sb-gonder:focus-visible { outline: 3px solid var(--red-light, #8cc3ec); outline-offset: 2px; }
.sb-ic { width: 22px; height: 22px; flex: none; }
body.mbuy-on .sb-dugme, body.sbuy-on .sb-dugme { bottom: calc(100px + env(safe-area-inset-bottom)); }
body.page-product .sb-dugme { bottom: calc(22px + env(safe-area-inset-bottom)); }
body.page-product.mbuy-on .sb-dugme, body.page-product.sbuy-on .sb-dugme { bottom: calc(100px + env(safe-area-inset-bottom)); }
/* Sepet, ödeme ve PayTR adımlarında dikkat dağıtmasın (WhatsApp düğmesiyle aynı kural) */
body.page-basket .sb-dugme, body.page-checkout .sb-dugme, body.page-pay .sb-dugme, body.page-basket .sb-kutu, body.page-checkout .sb-kutu, body.page-pay .sb-kutu { display: none; }
body.sb-acik .sb-dugme { display: none; }
@media (max-width: 420px) { .sb-dugme-y { display: none; } .sb-dugme { width: 52px; height: 52px; padding: 0; justify-content: center; } }
/* Geniş ekran: WhatsApp düğmesinin (sağ alt, 60 px) üstünde */
@media (min-width: 900px) {
  .sb-dugme, body.page-product .sb-dugme { right: 22px; bottom: 94px; }
  body.mbuy-on .sb-dugme, body.sbuy-on .sb-dugme, body.page-product.mbuy-on .sb-dugme, body.page-product.sbuy-on .sb-dugme { bottom: 168px; }
}

.sb-kutu { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: var(--card, #fff); color: var(--ink, #0e1116); font: 400 14.5px/1.5 var(--sans, system-ui, sans-serif); }
.sb-kutu[hidden] { display: none; }
@media (min-width: 640px) {
  .sb-kutu { inset: auto 22px 22px auto; width: 384px; height: min(620px, calc(100vh - 44px)); border: 1px solid var(--line, #e3e8ee); border-radius: var(--r-lg, 20px); overflow: hidden; box-shadow: 0 24px 64px -20px rgba(14, 17, 22, .45); }
}
.sb-bas { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--red-deep, #052f52); color: #fff; }
.sb-bas-y { flex: 1; min-width: 0; display: grid; }
.sb-bas-y strong { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-bas-y span { font-size: 12px; opacity: .82; }
.sb-kapat { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.sb-kapat:hover { background: rgba(255, 255, 255, .22); }

.sb-akis { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper, #f5f7fa); }
.sb-m { max-width: 86%; padding: 9px 12px; border-radius: 14px; overflow-wrap: anywhere; }
.sb-m p { margin: 0; }
.sb-m p + p { margin-top: 7px; }
.sb-o { align-self: flex-start; background: var(--card, #fff); border: 1px solid var(--line, #e3e8ee); border-bottom-left-radius: 4px; }
.sb-ben { align-self: flex-end; background: var(--red, #0b63a8); color: #fff; border-bottom-right-radius: 4px; }
.sb-urun { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 7px; border: 1px solid var(--line, #e3e8ee); border-radius: 10px; background: var(--paper, #f5f7fa); color: inherit; text-decoration: none; }
.sb-urun:hover { border-color: var(--red, #0b63a8); }
.sb-urun img { width: 56px; height: 56px; object-fit: contain; border-radius: 7px; background: #fff; flex: none; }
.sb-urun-y { display: grid; gap: 2px; min-width: 0; }
.sb-urun-y b { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-urun-y i { font-style: normal; font-size: 13.5px; font-weight: 800; color: var(--red-d, #084b80); }
.sb-yaziyor { display: inline-flex; gap: 5px; padding: 13px 14px; }
.sb-yaziyor i { width: 7px; height: 7px; border-radius: 99px; background: var(--mut, #626975); animation: sb-nokta 1.2s ease-in-out infinite; }
.sb-yaziyor i:nth-child(2) { animation-delay: .18s; }
.sb-yaziyor i:nth-child(3) { animation-delay: .36s; }
@keyframes sb-nokta { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sb-yaziyor i { animation: none; opacity: .6; } .sb-dugme { transition: none; } }

.sb-ts:empty { display: none; }
.sb-ts { padding: 6px 12px 0; background: var(--card, #fff); }
.sb-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line, #e3e8ee); background: var(--card, #fff); }
.sb-alan { flex: 1; min-height: 44px; max-height: 96px; padding: 10px 12px; border: 1px solid var(--line-2, #d5dde6); border-radius: 12px; resize: none; font: inherit; font-size: 16px; color: inherit; background: #fff; }
.sb-alan:focus { outline: 2px solid var(--red, #0b63a8); outline-offset: 0; border-color: transparent; }
.sb-gonder { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--red, #0b63a8); color: #fff; cursor: pointer; }
.sb-gonder:disabled { opacity: .5; cursor: default; }
.sb-alt { padding: 0 12px 6px; font-size: 12.5px; color: var(--ink-2, #3f4650); background: var(--card, #fff); }
.sb-alt a, .sb-not a { color: var(--red-d, #084b80); font-weight: 700; text-decoration: underline; }
.sb-not { margin: 0; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); font-size: 11px; line-height: 1.4; color: var(--mut, #626975); background: var(--card, #fff); }
@media print { .sb-dugme, .sb-kutu { display: none !important; } }
