/* Canlı destek balonu (site ve müşteri paneli). Renkler sitenin --navy / --orange değişkenlerinden. */
.sc { position: fixed; right: 20px; bottom: 20px; z-index: 95; font-size: 14px; --sc-navy: var(--navy, #1E4E8C); --sc-accent: var(--orange, #FF8A00); }
.sc [hidden] { display: none !important; }
.sc-launch { display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: #0B1B33; color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(11, 27, 51, .55); transition: transform .2s, box-shadow .2s; position: relative; }
.sc-launch:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(11, 27, 51, .6); }
.sc-launch [data-lucide] { width: 21px; height: 21px; }
.sc.is-open .sc-launch { opacity: 0; pointer-events: none; }
.sc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sc-accent); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.sc-panel { position: absolute; right: 0; bottom: 0; width: 380px; height: min(600px, calc(100vh - 40px)); background: #fff; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(11, 27, 51, .45), 0 0 0 1px rgba(11, 27, 51, .06); animation: sc-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: #0B1B33; color: #fff; }
.sc-head .grow { flex: 1; min-width: 0; display: grid; }
.sc-head b { font-size: 15px; }
.sc-head small { color: #93A4BF; font-size: 12.5px; }
.sc-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.sc-av [data-lucide] { width: 19px; height: 19px; }
.sc-x { border: 0; background: none; color: #93A4BF; cursor: pointer; padding: 6px; border-radius: 8px; }
.sc-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sc-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F6F8FB; }
.sc-msg { display: flex; flex-direction: column; max-width: 86%; }
.sc-msg .b { padding: 10px 13px; border-radius: 14px; line-height: 1.5; background: #fff; color: #1C2B41; box-shadow: 0 1px 2px rgba(11, 27, 51, .06); overflow-wrap: anywhere; }
.sc-msg .b a { color: var(--sc-navy); text-decoration: underline; text-underline-offset: 2px; }
.sc-msg .who { font-size: 11.5px; color: #6B7A90; margin: 0 4px 3px; }
.sc-msg .tm { font-size: 11px; color: #9AA7B8; margin: 3px 4px 0; }
.sc-msg.me { align-self: flex-end; align-items: flex-end; }
.sc-msg.me .b { background: var(--sc-navy); color: #fff; border-bottom-right-radius: 5px; }
.sc-msg.me .b a { color: #fff; }
.sc-msg.ai .b, .sc-msg.staff .b { border-bottom-left-radius: 5px; }
.sc-msg.staff .b { box-shadow: inset 3px 0 0 var(--sc-accent), 0 1px 2px rgba(11, 27, 51, .06); }
.sc-msg.system { align-self: center; max-width: 92%; }
.sc-msg.system .b { background: transparent; box-shadow: none; color: #6B7A90; font-size: 12.5px; text-align: center; padding: 4px 8px; }
.sc-msg.pending { opacity: .6; }
.sc-msg.err .b { background: #FEE2E2; color: #991B1B; }
.sc-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sc-sugg button { border: 1px solid #D5DEEA; background: #fff; color: var(--sc-navy); border-radius: 16px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.sc-sugg button:hover { border-color: var(--sc-navy); }
.sc-action { margin-top: 8px; border: 1px solid #FBD38D; background: #FFFAF0; border-radius: 12px; padding: 10px 12px; }
.sc-action .t { display: flex; gap: 8px; font-size: 13px; color: #7B4A00; }
.sc-action .t [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.sc-action .btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.sc-action .note { font-size: 12.5px; color: #6B7A90; margin-top: 6px; }
.sc-action.approved { border-color: #A7F3D0; background: #ECFDF5; }
.sc-action.rejected { border-color: #E2E8F0; background: #F8FAFC; }
.sc-typing { display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 14px; align-self: flex-start; box-shadow: 0 1px 2px rgba(11, 27, 51, .06); }
.sc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA7B8; animation: sc-dot 1.2s infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.sc-mail { padding: 10px 14px; border-top: 1px solid #EDF1F6; background: #fff; display: grid; gap: 6px; font-size: 12.5px; color: #6B7A90; }
.sc-mail .row { display: flex; gap: 6px; }
.sc-mail input { flex: 1; min-width: 0; border: 1px solid #D5DEEA; border-radius: 9px; padding: 7px 10px; font: inherit; }
.sc-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 10px; border-top: 1px solid #EDF1F6; background: #fff; }
.sc-input textarea { flex: 1; resize: none; border: 1px solid #D5DEEA; border-radius: 12px; padding: 10px 12px; font: inherit; line-height: 1.4; max-height: 120px; outline: none; }
.sc-input textarea:focus { border-color: var(--sc-navy); box-shadow: 0 0 0 3px rgba(30, 78, 140, .12); }
.sc-input button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--sc-accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.sc-input button [data-lucide] { width: 18px; height: 18px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 10px; background: #fff; font-size: 11.5px; color: #9AA7B8; }
.sc-foot button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--sc-navy); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.sc-foot button [data-lucide] { width: 13px; height: 13px; }
.sc-foot a { color: inherit; text-decoration: underline; }
@media (max-width: 520px) {
  .sc { right: 16px; bottom: 16px; }
  .sc-launch span { display: none; }
  .sc-launch { width: 54px; padding: 0; justify-content: center; }
  .sc.is-open { inset: 0; }
  .sc-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
}
/* Çerez penceresi açıkken mobilde üst üste binmesin */
@media (max-width: 520px) { body:has(.s-consent:not([hidden])) .sc { bottom: 220px; } }
