/* Sigortam TC Chatbot — yeni nesil */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --stc-chat-red: #e51326;
  --stc-chat-red-dark: #c40f20;
  --stc-chat-ink: #0b0b0c;
  --stc-chat-muted: #6b6b73;
  --stc-chat-line: rgba(11, 11, 12, 0.08);
  --stc-chat-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --stc-chat-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.stc-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background:
    radial-gradient(ellipse 80% 50% at 50% 45%, rgba(229, 19, 38, 0.18), transparent 55%),
    rgba(6, 6, 8, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--stc-chat-ease), visibility 0.35s;
}

.stc-chat-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stc-chat-root {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: var(--stc-chat-font);
  color: var(--stc-chat-ink);
  -webkit-font-smoothing: antialiased;
}

/* Launcher + speech bubble */
.stc-chat-launcher-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.stc-chat-hello {
  max-width: 280px;
  padding: 12px 16px 13px;
  border-radius: 18px 18px 18px 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 248, 0.96));
  color: var(--stc-chat-ink);
  border: 1px solid rgba(229, 19, 38, 0.14);
  box-shadow:
    0 18px 40px rgba(11, 11, 12, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 24px rgba(229, 19, 38, 0.12);
  position: relative;
  animation:
    stc-hello-in 0.6s var(--stc-chat-ease) both,
    stc-hello-float 3.2s ease-in-out 0.8s infinite;
  transform-origin: bottom left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.stc-chat-hello::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(229, 19, 38, 0.08) 48%, transparent 66%);
  background-size: 220% 100%;
  animation: stc-hello-shine 3.8s ease-in-out 1s infinite;
  pointer-events: none;
}

.stc-chat-hello-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stc-chat-red);
}

.stc-chat-hello-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #121216;
}

.stc-chat-typewriter {
  display: inline-block;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  animation: stc-typewriter 2.1s steps(26, end) 0.55s both;
}

.stc-chat-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  border-radius: 2px;
  background: var(--stc-chat-red);
  animation: stc-caret-blink 0.85s step-end infinite;
  transform: translateY(1px);
}

.stc-chat-hello::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(229, 19, 38, 0.14);
  border-bottom: 1px solid rgba(229, 19, 38, 0.14);
  transform: rotate(45deg);
  border-radius: 2px;
}

@keyframes stc-hello-in {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stc-hello-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes stc-hello-shine {
  0%, 100% { background-position: 140% 0; }
  50% { background-position: -40% 0; }
}

@keyframes stc-typewriter {
  from { max-width: 0; }
  to { max-width: 16.5em; }
}

@keyframes stc-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.stc-chat-launcher-wrap:has(.stc-chat-launcher.is-open) .stc-chat-hello {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.94);
  pointer-events: none;
  animation: none;
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
}

.stc-chat-launcher {
  width: 166px;
  height: 166px;
  border: 0;
  padding: 0;
  border-radius: 36px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.3s var(--stc-chat-ease);
}

.stc-chat-launcher-avatar {
  width: 166px;
  height: 166px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  position: relative;
  z-index: 1;
  /* siyah arka planı yumuşat / kaldır */
  mix-blend-mode: screen;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.42));
  transition: transform 0.3s var(--stc-chat-ease), opacity 0.2s ease;
  pointer-events: none;
  user-select: none;
  animation: none;
}

.stc-chat-launcher-close {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.88);
  color: #fff;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(11, 11, 12, 0.28);
}

.stc-chat-launcher-close svg {
  width: 26px;
  height: 26px;
  display: block;
}

.stc-chat-launcher-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 19, 38, 0.4);
  opacity: 0.65;
  animation: stc-pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes stc-pulse-ring {
  0% { transform: scale(0.86); opacity: 0.55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}

.stc-chat-launcher:hover {
  transform: translateY(-4px) scale(1.04);
}

.stc-chat-launcher:hover .stc-chat-launcher-avatar {
  transform: scale(1.03);
}

.stc-chat-launcher.is-open {
  transform: none;
}

.stc-chat-launcher.is-open .stc-chat-launcher-avatar {
  opacity: 0;
  transform: scale(0.7);
}

.stc-chat-launcher.is-open .stc-chat-launcher-close {
  display: grid;
}

.stc-chat-launcher.is-open .stc-chat-launcher-ring {
  display: none;
}

/* Panel */
.stc-chat-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(860px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 28px));
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: rgba(252, 252, 253, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(36px) saturate(1.45);
  -webkit-backdrop-filter: blur(36px) saturate(1.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -44%) scale(0.92);
  transform-origin: center center;
  transition:
    opacity 0.35s var(--stc-chat-ease),
    transform 0.4s var(--stc-chat-ease),
    visibility 0.35s;
  pointer-events: none;
  z-index: 100000;
}

.stc-chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.stc-chat-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(229, 19, 38, 0.22), transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(11, 11, 12, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: stc-glow-drift 10s ease-in-out infinite alternate;
}

@keyframes stc-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.05); }
}

.stc-chat-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 11, 12, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 12, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 55%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Header */
.stc-chat-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px 22px;
  background: transparent;
}

.stc-chat-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stc-chat-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: visible;
  flex-shrink: 0;
  box-shadow:
    0 12px 28px rgba(11, 11, 12, 0.12),
    0 0 0 1px rgba(11, 11, 12, 0.04);
}

.stc-chat-avatar img {
  width: 72%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.stc-chat-live {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #fcfcfd;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: stc-live 2s ease-out infinite;
}

@keyframes stc-live {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.stc-chat-head-copy {
  min-width: 0;
}

.stc-chat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stc-chat-muted);
  margin-bottom: 3px;
}

.stc-chat-ai-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0b0b0c, #2a1014);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stc-chat-head-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--stc-chat-ink);
}

.stc-chat-status {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--stc-chat-muted);
  letter-spacing: -0.01em;
}

.stc-chat-head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.stc-chat-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(11, 11, 12, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--stc-chat-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--stc-chat-ease), border-color 0.2s;
}

.stc-chat-icon-btn:hover {
  background: var(--stc-chat-ink);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.stc-chat-icon-btn--close:hover {
  background: var(--stc-chat-red);
}

.stc-chat-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Trust strip */
.stc-chat-trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 14px;
}

.stc-chat-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 11, 12, 0.06);
  font-size: 11.5px;
  font-weight: 600;
  color: #3a3a40;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(11, 11, 12, 0.04);
}

.stc-chat-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--stc-chat-red);
  flex-shrink: 0;
}

/* Body */
.stc-chat-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
}

.stc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.stc-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.stc-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(11, 11, 12, 0.14);
  border-radius: 99px;
}

.stc-chat-msg {
  max-width: 76%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: stc-msg-in 0.35s var(--stc-chat-ease) both;
}

@keyframes stc-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stc-chat-msg.is-bot { align-self: flex-start; }
.stc-chat-msg.is-user { align-self: flex-end; }

.stc-chat-ocr-meta {
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #166534;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  width: fit-content;
  max-width: 100%;
}

.stc-chat-ocr-meta.is-fail {
  background: rgba(229, 19, 38, 0.08);
  border-color: rgba(229, 19, 38, 0.2);
  color: #9f1239;
}

.stc-chat-bubble {
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.stc-chat-msg.is-bot .stc-chat-bubble {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 11, 12, 0.05);
  color: var(--stc-chat-ink);
  border-bottom-left-radius: 6px;
  box-shadow: 0 10px 28px rgba(11, 11, 12, 0.06);
}

.stc-chat-msg.is-user .stc-chat-bubble {
  background: linear-gradient(145deg, #111113 0%, #1a1a1e 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 12px 28px rgba(11, 11, 12, 0.18);
}

.stc-chat-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 11, 12, 0.05);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  width: fit-content;
}

.stc-chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a9aa3;
  animation: stc-dot 1.1s infinite ease-in-out;
}

.stc-chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.stc-chat-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes stc-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Quotes */
.stc-chat-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stc-chat-quote {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 11, 12, 0.06);
  border-radius: 16px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  transition: transform 0.2s var(--stc-chat-ease), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.stc-chat-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 11, 12, 0.08);
  border-color: rgba(229, 19, 38, 0.28);
}

.stc-chat-quote.is-best {
  border-color: rgba(229, 19, 38, 0.28);
  background:
    linear-gradient(180deg, #fff 0%, #fff6f7 100%);
  box-shadow: 0 12px 30px rgba(229, 19, 38, 0.1);
}

.stc-chat-quote.is-selected {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(180deg, #fff 0%, #f3fdf6 100%);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.12);
}

.stc-chat-quote strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stc-chat-quote em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 11px;
  color: var(--stc-chat-muted);
}

.stc-chat-quote .price {
  font-size: 15px;
  font-weight: 800;
  color: var(--stc-chat-red);
  letter-spacing: -0.04em;
}

.stc-chat-quote .badge {
  grid-column: 1 / -1;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--stc-chat-red);
  padding: 3px 8px;
  border-radius: 999px;
}

.stc-chat-quote .badge.is-selected-badge {
  background: #16a34a;
}

.stc-chat-quote-pick {
  grid-column: 1 / -1;
  margin-top: 4px;
  height: 36px;
  border: 1px solid rgba(11, 11, 12, 0.1);
  border-radius: 11px;
  background: var(--stc-chat-ink);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.stc-chat-quote-pick:hover {
  background: var(--stc-chat-red);
}

.stc-chat-quote-pick:disabled {
  background: #16a34a;
  cursor: default;
  opacity: 1;
}

.stc-chat-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--stc-chat-red) 0%, #b40f1d 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 28px rgba(229, 19, 38, 0.28);
  transition: transform 0.2s var(--stc-chat-ease), box-shadow 0.2s ease;
  width: fit-content;
}

.stc-chat-cta:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(229, 19, 38, 0.35);
}

/* Quick chips */
.stc-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 16px 14px;
  flex-shrink: 0;
}

.stc-chat-chip {
  border: 1px solid rgba(11, 11, 12, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--stc-chat-ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--stc-chat-ease), border-color 0.2s, color 0.2s, background 0.2s;
  font-family: inherit;
  letter-spacing: -0.015em;
}

.stc-chat-chip:hover {
  border-color: rgba(229, 19, 38, 0.35);
  color: var(--stc-chat-red);
  background: #fff;
  transform: translateY(-2px);
}

/* Payment screen */
.stc-chat-pay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(248, 248, 250, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px;
}

.stc-chat-pay[hidden] {
  display: none !important;
}

.stc-chat-pay-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 11, 12, 0.08);
  box-shadow: 0 20px 50px rgba(11, 11, 12, 0.12);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stc-chat-pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stc-chat-pay-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stc-chat-muted);
  margin-bottom: 4px;
}

.stc-chat-pay-head strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stc-chat-pay-summary {
  border-radius: 16px;
  background: linear-gradient(145deg, #111113 0%, #1c1214 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stc-chat-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.stc-chat-pay-row span {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.stc-chat-pay-row strong {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
}

.stc-chat-pay-total {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stc-chat-pay-total strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.stc-chat-pay-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stc-chat-pay-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #3a3a40;
}

.stc-chat-pay-field span {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stc-chat-pay-field input {
  height: 48px;
  border: 1px solid rgba(11, 11, 12, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  outline: none;
  background: #fff;
  color: var(--stc-chat-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stc-chat-pay-field input:focus {
  border-color: rgba(229, 19, 38, 0.4);
  box-shadow: 0 0 0 4px rgba(229, 19, 38, 0.08);
}

.stc-chat-pay-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.stc-chat-pay-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--stc-chat-muted);
  line-height: 1.4;
}

.stc-chat-pay-submit {
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--stc-chat-red) 0%, #b40f1d 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(229, 19, 38, 0.28);
  transition: transform 0.2s var(--stc-chat-ease), box-shadow 0.2s ease;
}

.stc-chat-pay-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(229, 19, 38, 0.34);
}

.stc-chat-pay-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.stc-chat-panel.is-paying .stc-chat-body,
.stc-chat-panel.is-paying .stc-chat-footer-bar,
.stc-chat-panel.is-paying .stc-chat-trust {
  visibility: hidden;
}

/* Composer */
.stc-chat-footer-bar {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 14px 18px 14px;
}

.stc-chat-composer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stc-chat-attach {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(11, 11, 12, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--stc-chat-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--stc-chat-ease), border-color 0.2s;
}

.stc-chat-attach:hover {
  background: var(--stc-chat-ink);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.stc-chat-attach:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.stc-chat-attach svg {
  width: 20px;
  height: 20px;
}

.stc-chat-msg-image {
  max-width: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 11, 12, 0.08);
  box-shadow: 0 10px 24px rgba(11, 11, 12, 0.1);
  background: #fff;
}

.stc-chat-msg-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
}

.stc-chat-msg-image span {
  display: block;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--stc-chat-muted);
  background: rgba(255, 255, 255, 0.92);
}

.stc-chat-input-wrap {
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 11, 12, 0.08);
  box-shadow: 0 10px 30px rgba(11, 11, 12, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stc-chat-input-wrap:focus-within {
  border-color: rgba(229, 19, 38, 0.35);
  box-shadow:
    0 0 0 4px rgba(229, 19, 38, 0.08),
    0 10px 30px rgba(11, 11, 12, 0.05);
}

.stc-chat-composer input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  background: transparent;
  color: var(--stc-chat-ink);
  letter-spacing: -0.015em;
}

.stc-chat-composer input::placeholder {
  color: #9a9aa3;
  font-weight: 500;
}

.stc-chat-send {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: var(--stc-chat-ink);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s var(--stc-chat-ease), border-radius 0.2s;
  box-shadow: 0 12px 28px rgba(11, 11, 12, 0.2);
}

.stc-chat-send:hover {
  background: var(--stc-chat-red);
  transform: translateY(-2px) scale(1.03);
  border-radius: 16px;
}

.stc-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.stc-chat-send svg {
  width: 18px;
  height: 18px;
}

.stc-chat-foot {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #94949c;
  text-align: center;
  letter-spacing: -0.01em;
}

html.stc-chat-open,
html.stc-chat-open body {
  overflow: hidden;
}

.stc-chat-sheet-handle {
  display: none;
}

@media (max-width: 860px) {
  .stc-chat-quotes {
    grid-template-columns: 1fr;
  }

  .stc-chat-msg {
    max-width: 92%;
  }
}

/* Mobil: alttan açılan sheet (yatay translate YOK — kırılmanın nedeni buydu) */
@media (max-width: 768px) {
  .stc-chat-root {
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .stc-chat-launcher,
  .stc-chat-launcher-avatar {
    width: 117px;
    height: 117px;
  }

  .stc-chat-hello {
    max-width: min(240px, calc(100vw - 130px));
    padding: 10px 13px 11px;
  }

  .stc-chat-hello-text {
    font-size: 13px;
  }

  .stc-chat-backdrop {
    background: rgba(6, 6, 8, 0.58);
  }

  .stc-chat-panel {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: min(92vh, 100dvh) !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px)) !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%) !important;
    transform-origin: bottom center;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
    transition:
      opacity 0.28s var(--stc-chat-ease),
      transform 0.38s var(--stc-chat-ease),
      visibility 0.28s;
  }

  .stc-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
  }

  .stc-chat-sheet-handle {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px 0 4px;
    position: relative;
    z-index: 3;
  }

  .stc-chat-sheet-handle span {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: rgba(11, 11, 12, 0.2);
  }

  .stc-chat-head {
    padding: 2px 14px 10px;
    gap: 10px;
    flex-shrink: 0;
  }

  .stc-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .stc-chat-head-copy strong {
    font-size: 15px;
  }

  .stc-chat-status {
    font-size: 11.5px;
  }

  .stc-chat-icon-btn {
    width: 40px;
    height: 40px;
  }

  .stc-chat-trust {
    display: none !important;
  }

  .stc-chat-body {
    margin: 0 10px;
    border-radius: 16px;
    min-height: 0;
    flex: 1 1 auto;
  }

  .stc-chat-messages {
    padding: 12px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .stc-chat-msg {
    max-width: 94%;
  }

  .stc-chat-bubble {
    font-size: 14px;
    padding: 11px 13px;
  }

  .stc-chat-quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 12px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stc-chat-quick::-webkit-scrollbar {
    display: none;
  }

  .stc-chat-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }

  .stc-chat-quotes {
    grid-template-columns: 1fr;
  }

  .stc-chat-quote-pick,
  .stc-chat-cta {
    min-height: 44px;
    width: 100%;
  }

  .stc-chat-footer-bar {
    flex-shrink: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(11, 11, 12, 0.06);
  }

  .stc-chat-attach,
  .stc-chat-send {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .stc-chat-composer input {
    height: 46px;
    font-size: 16px;
    padding: 0 12px;
  }

  .stc-chat-foot {
    display: none;
  }

  .stc-chat-pay {
    inset: 0;
    padding: 0;
  }

  .stc-chat-pay-inner {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .stc-chat-pay-field input {
    height: 48px;
    font-size: 16px;
  }

  .stc-chat-pay-submit {
    min-height: 50px;
  }

  .stc-chat-panel.is-paying .stc-chat-sheet-handle {
    display: none;
  }

  html.stc-chat-open .stc-chat-launcher-wrap {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 380px) {
  .stc-chat-launcher,
  .stc-chat-launcher-avatar {
    width: 81px;
    height: 81px;
  }

  .stc-chat-kicker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stc-chat-glow,
  .stc-chat-launcher-ring,
  .stc-chat-live,
  .stc-chat-msg,
  .stc-chat-launcher-avatar,
  .stc-chat-hello,
  .stc-chat-typewriter,
  .stc-chat-caret {
    animation: none !important;
  }
}
