/* Yazı tipi sitenin kendi gövde fontundan gelir (--yc-font-body); Google Fonts'a bağlanılmaz. */

.ycd-root, .ycd-root * { box-sizing: border-box; }
.ycd-root {
  --ycd-bubble-top:auto;--ycd-bubble-right:20px;--ycd-bubble-bottom:calc(20px + var(--ycd-bottom-stack, 0px));--ycd-bubble-left:auto;
  --ycd-invite-top:auto;--ycd-invite-right:20px;--ycd-invite-bottom:calc(90px + var(--ycd-bottom-stack, 0px));--ycd-invite-left:auto;
  --ycd-panel-top:auto;--ycd-panel-right:20px;--ycd-panel-bottom:calc(92px + var(--ycd-bottom-stack, 0px));--ycd-panel-left:auto;
  --ycd-accent: #0f8a6c;
  --ycd-accent-ink: #0a6a52;
  --ycd-on-accent: #ffffff;
  --ycd-bg: #ffffff;
  --ycd-panel: #f7f8f6;
  --ycd-text: #1a211d;
  --ycd-muted: #6b746e;
  --ycd-faint: #98a19b;
  --ycd-line: #e7e9e4;
  --ycd-in: #ffffff;
  --ycd-out: #e3f6ec;
  --ycd-out-text: #0f2a1f;
  --ycd-radius: 20px;
  font: 400 14px/1.5 var(--yc-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ycd-text);
}
.ycd-root.left { --ycd-side: left; }
.ycd-bubble {
  position: fixed; z-index: 2147483000; inset:var(--ycd-bubble-top) var(--ycd-bubble-right) var(--ycd-bubble-bottom) var(--ycd-bubble-left);
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: var(--ycd-accent); color: var(--ycd-on-accent);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 30, 24, .28), 0 2px 8px rgba(15, 30, 24, .14);
  transition: transform .15s ease;
}
.ycd-bubble:hover { transform: scale(1.05); }
.ycd-bubble::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #16a34a; border: 2.5px solid #fff; box-sizing: border-box; transform: scale(0); transition: transform .2s ease; pointer-events: none; }
.ycd-bubble.is-online::after { transform: scale(1); }
.ycd-bubble.is-open::after { transform: scale(0); }
.ycd-bubble svg { width: 26px; height: 26px; }
.ycd-bubble .ycd-close-icon { display: none; }
.ycd-bubble.is-open .ycd-chat-icon { display: none; }
.ycd-bubble.is-open .ycd-close-icon { display: block; }
.ycd-dot {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #e5484d; color: #fff; border: 2px solid #fff;
  font: 700 11px/1 var(--yc-font-body, -apple-system, BlinkMacSystemFont, sans-serif); letter-spacing: -.02em;
  display: none; align-items: center; justify-content: center; box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(229,72,77,.45); transform: scale(.5); transition: transform .16s cubic-bezier(.34,1.56,.64,1);
}
.ycd-dot.on { display: flex; transform: scale(1); }
.ycd-invite {
  position: fixed; z-index: 2147482999; inset:var(--ycd-invite-top) var(--ycd-invite-right) var(--ycd-invite-bottom) var(--ycd-invite-left); max-width: 240px;
  background: #fff; color: var(--ycd-text); padding: 11px 15px; border-radius: 16px; border-bottom-right-radius: 4px;
  box-shadow: 0 10px 28px rgba(15, 30, 24, .18); font-size: 13.5px; opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .18s, transform .18s; pointer-events: none;
}
.ycd-invite.show { opacity: 1; transform: none; pointer-events: auto; }
.ycd-root.left .ycd-invite { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.ycd-invite button { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--ycd-line); color: var(--ycd-muted); font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
/* IBAN gönderildi: pencere kapalıyken balonun üstünde "Ödeme bekleniyor" çubuğu. */
.ycd-pay-alert {
  position: fixed; z-index: 2147482999; inset:var(--ycd-invite-top) var(--ycd-invite-right) var(--ycd-invite-bottom) var(--ycd-invite-left);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(330px, calc(100vw - 40px));
  padding: 10px 34px 10px 10px; background: #fff; color: var(--ycd-text); border: 1px solid var(--ycd-line); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 30, 24, .18); cursor: pointer; font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .18s, transform .18s; pointer-events: none;
}
.ycd-pay-alert.show { opacity: 1; transform: none; pointer-events: auto; }
.ycd-pay-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff3dc; color: #b45309; }
.ycd-pay-ico svg { width: 18px; height: 18px; }
.ycd-pay-text { display: grid; gap: 2px; min-width: 0; }
.ycd-pay-text strong { font-size: 13.5px; font-weight: 650; }
.ycd-pay-text small { font-size: 12px; color: #b45309; font-variant-numeric: tabular-nums; }
.ycd-pay-text small span { white-space: nowrap; }
.ycd-pay-go { flex: none; font-size: 12.5px; font-weight: 650; color: var(--ycd-accent); }
.ycd-pay-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ycd-faint); cursor: pointer; display: grid; place-items: center; }
.ycd-pay-x:hover { background: var(--ycd-panel); color: var(--ycd-text); }
@media (max-width: 640px) { .ycd-pay-go { display: none; } }

.ycd-panel {
  position: fixed; z-index: 2147483001; inset:var(--ycd-panel-top) var(--ycd-panel-right) var(--ycd-panel-bottom) var(--ycd-panel-left);
  width: min(380px, calc(100vw - 32px)); height: min(min(640px, 78vh), calc(100vh - 120px));
  background: var(--ycd-bg); border-radius: var(--ycd-radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(10, 20, 15, .28);
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.ycd-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.ycd-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 18px; background: var(--ycd-bg); color: var(--ycd-text); border-bottom: 1px solid var(--ycd-line); }
.ycd-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--ycd-accent); color: var(--ycd-on-accent); display: grid; place-items: center; font-weight: 600; font-size: 15px; overflow: hidden; flex: none; }
.ycd-ava img { width: 100%; height: 100%; object-fit: cover; }
.ycd-head-text { min-width: 0; flex: 1; }
.ycd-head-text strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ycd-head-text small { display: flex; align-items: center; gap: 6px; color: var(--ycd-muted); font-size: 12.5px; font-weight: 400; }
.ycd-head-text small span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Durum noktası site renginden bağımsız: koyu bir site renginde "çevrimiçi" gri/siyah görünüp kayboluyordu. */
.ycd-head-text small i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: none; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.ycd-head-text small.away i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.ycd-head-text small.off i { background: var(--ycd-faint); box-shadow: none; }
.ycd-head-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.ycd-icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--ycd-muted); display: grid; place-items: center; cursor: pointer; }
.ycd-icon-btn:hover { background: var(--ycd-panel); color: var(--ycd-text); }
.ycd-icon-btn svg { width: 18px; height: 18px; }

.ycd-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ycd-panel); }
.ycd-log { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 3px; }
.ycd-day { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--ycd-muted); background: #fff; padding: 3px 11px; border-radius: 99px; margin: 8px 0 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ycd-row { display: flex; align-items: flex-end; gap: 6px; margin-top: 5px; max-width: 88%; }
.ycd-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.ycd-row.theirs { align-self: flex-start; }
.ycd-row.system { align-self: center; max-width: 92%; }
.ycd-avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; overflow: hidden; background: var(--ycd-accent); color: #fff; display: grid; place-items: center; }
.ycd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ycd-avatar svg { width: 14px; height: 14px; }
.ycd-row.mine .ycd-avatar { background: color-mix(in srgb, var(--ycd-text) 25%, transparent); }
.ycd-bub {
  padding: 8px 11px 6px; border-radius: 15px; background: var(--ycd-in); color: var(--ycd-text);
  box-shadow: 0 1px 2px rgba(15,30,24,.06); overflow-wrap: anywhere; white-space: pre-wrap; min-width: 40px;
}
.ycd-row.theirs .ycd-bub { border-bottom-left-radius: 4px; }
.ycd-row.mine .ycd-bub { background: var(--ycd-out); color: var(--ycd-out-text); border-bottom-right-radius: 4px; }
.ycd-row.system .ycd-bub { background: transparent; box-shadow: none; color: var(--ycd-muted); font-size: 12.5px; text-align: center; padding: 2px 8px; }
.ycd-meta { display: block; text-align: right; font-size: 10.5px; color: var(--ycd-muted); margin-top: 3px; }
.ycd-row.mine .ycd-meta { color: color-mix(in srgb, var(--ycd-out-text) 55%, transparent); }
.ycd-tick { display: inline-block; margin-left: 2px; }
.ycd-tick.read { color: #2f8df5; }
.ycd-label { font-size: 11px; font-weight: 700; color: var(--ycd-accent); margin-bottom: 2px; }
.ycd-card { min-width: 220px; }
.ycd-card-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.ycd-card-sub { color: var(--ycd-muted); font-size: 12.5px; margin-bottom: 6px; }
.ycd-iban-text { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
/* IBAN kartı: Alıcı / IBAN / Tutar ayrı kutular, her birinde kopyala düğmesi. */
.ycd-iban-rows { display: grid; gap: 6px; margin: 6px 0 4px; }
.ycd-iban-row { display: flex; align-items: center; gap: 8px; background: rgba(15,30,24,.05); border-radius: 9px; padding: 7px 7px 7px 10px; }
.ycd-iban-row-info { display: grid; gap: 1px; min-width: 0; flex: 1; }
.ycd-iban-label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ycd-muted); }
.ycd-iban-value { font-size: 14px; font-weight: 700; color: var(--ycd-text); overflow-wrap: anywhere; }
.ycd-iban-row.is-code .ycd-iban-value { font: 700 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .01em; word-break: break-all; }
.ycd-iban-row-copy { flex: none; border: 1px solid var(--ycd-line); background: #fff; color: var(--ycd-text); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 5px 9px; cursor: pointer; white-space: nowrap; }
.ycd-iban-row-copy:hover { background: var(--ycd-panel); }
.ycd-iban-bank { font-size: 12px; color: var(--ycd-muted); margin: 0 0 4px 2px; }
.ycd-iban-timer { font-size: 12px; font-weight: 650; color: var(--ycd-accent); margin-top: 2px; }
.ycd-map { border-radius: 10px; overflow: hidden; margin-bottom: 8px; aspect-ratio: 16/10; min-width: 220px; }
.ycd-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ycd-iban-loading { display: flex; align-items: center; gap: 10px; padding: 6px 2px; min-width: 200px; }
.ycd-iban-loading-text { font-size: 13.5px; color: var(--ycd-muted); }
.ycd-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(15,30,24,.12); border-top-color: var(--ycd-accent); flex: none; animation: ycd-spin .8s linear infinite; }
@keyframes ycd-spin { to { transform: rotate(360deg); } }
.ycd-copy { border: 1px solid var(--ycd-line); background: #fff; color: var(--ycd-text); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 5px 10px; cursor: pointer; margin-top: 4px; }
.ycd-copy:hover { background: var(--ycd-panel); }
.ycd-link-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--ycd-accent); font-weight: 700; font-size: 13px; text-decoration: none; margin-top: 4px; }
.ycd-link-btn + .ycd-link-btn { margin-left: 16px; }
.ycd-img { display: block; border-radius: 12px; overflow: hidden; max-width: 220px; cursor: zoom-in; }
.ycd-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.ycd-file { display: flex; align-items: center; gap: 9px; min-width: 190px; color: inherit; text-decoration: none; }
.ycd-file-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--ycd-accent); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.ycd-file strong { display: block; font-size: 13px; }
.ycd-file small { color: var(--ycd-muted); }

.ycd-typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: var(--ycd-in); border-radius: 14px; border-bottom-left-radius: 4px; padding: 9px 12px; margin-top: 6px; box-shadow: 0 1px 2px rgba(15,30,24,.06); }
.ycd-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ycd-muted); animation: ycd-blink 1.2s infinite both; }
.ycd-typing i:nth-child(2) { animation-delay: .2s; }
.ycd-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ycd-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ycd-empty { margin: auto; text-align: center; color: var(--ycd-muted); padding: 20px; font-size: 13.5px; }

.ycd-gate { padding: 16px; display: grid; gap: 10px; overflow-y: auto; }
.ycd-gate p { margin: 0; color: var(--ycd-muted); font-size: 13px; }
.ycd-gate input[type="text"], .ycd-gate input[type="email"], .ycd-gate input[type="tel"],
.ycd-form input[type="text"], .ycd-form input[type="email"], .ycd-form input[type="tel"] {
  width: 100%; border: 1px solid var(--ycd-line); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit;
}
.ycd-gate input:focus { outline: none; border-color: var(--ycd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ycd-accent) 16%, transparent); }
.ycd-kvkk { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ycd-muted); cursor: pointer; }
.ycd-kvkk input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--ycd-accent); }
.ycd-kvkk a { color: var(--ycd-accent); }
.ycd-error { color: #d23b3b; font-size: 12.5px; }
.ycd-primary { border: 0; background: var(--ycd-accent); color: var(--ycd-on-accent); font: inherit; font-weight: 700; padding: 11px; border-radius: 11px; cursor: pointer; }
.ycd-primary:hover { filter: brightness(1.04); }
.ycd-primary:disabled { opacity: .55; cursor: default; }

.ycd-form { padding: 16px; display: grid; gap: 10px; overflow-y: auto; }
.ycd-form textarea { width: 100%; min-height: 90px; border: 1px solid var(--ycd-line); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.ycd-form textarea:focus, .ycd-form input:focus { outline: none; border-color: var(--ycd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ycd-accent) 16%, transparent); }

.ycd-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; flex: none; }
.ycd-quick::-webkit-scrollbar { display: none; }
.ycd-quick button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--ycd-line); background: #fff; color: var(--ycd-text); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ycd-quick button:hover { background: var(--ycd-panel); }

.ycd-composer { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid var(--ycd-line); }
.ycd-input-wrap { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--ycd-panel); border-radius: 20px; padding: 3px 4px 3px 13px; }
.ycd-input-wrap textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; font: inherit; color: inherit; max-height: 100px; min-height: 22px; padding: 8px 2px; }
.ycd-input-wrap textarea:focus { outline: none; }
.ycd-attach-btn, .ycd-send-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
.ycd-attach-btn { background: transparent; color: var(--ycd-muted); }
.ycd-attach-btn:hover { background: rgba(0,0,0,.05); }
.ycd-send-btn { background: var(--ycd-accent); color: var(--ycd-on-accent); }
.ycd-send-btn:disabled { background: var(--ycd-line); color: var(--ycd-muted); }
.ycd-composer-note { flex: none; padding: 0 12px 8px; font-size: 11px; color: #d23b3b; display: none; }
.ycd-composer-note.show { display: block; }
.ycd-attach-chip { flex: none; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--ycd-line); border-radius: 10px; padding: 8px 10px; margin: 0 10px 8px; font-size: 12.5px; }
.ycd-attach-chip button { border: 0; background: transparent; color: var(--ycd-muted); cursor: pointer; margin-left: auto; }

.ycd-rate { padding: 22px 18px; text-align: center; display: grid; gap: 12px; justify-items: center; margin: auto; }
.ycd-rate strong { font-size: 15px; }
.ycd-stars { display: flex; gap: 6px; }
.ycd-stars button { border: 0; background: transparent; padding: 2px; cursor: pointer; color: #d8dbd4; }
.ycd-stars button.on, .ycd-stars button:hover, .ycd-stars button:hover ~ button { color: #f5b83d; }
.ycd-stars svg { width: 30px; height: 30px; }
.ycd-rate label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ycd-muted); cursor: pointer; }
.ycd-rate-done { color: var(--ycd-accent); font-weight: 700; }

@media (max-width: 640px) {
  /* Telefonda panel tam ekran: küçük ekranlara her zaman sığar. Yükseklik, klavye
     açılınca küçülsün diye visualViewport'tan (--ycd-vvh) beslenir; yoksa 100dvh. */
  .ycd-panel {
    inset: 0 !important;
    width: 100vw !important; width: 100dvw !important;
    height: 100dvh !important; height: var(--ycd-vvh, 100dvh) !important;
    max-height: none !important; border-radius: 0 !important;
    transform: translateY(100%);
  }
  .ycd-panel.open { transform: none; }
  /* Davet balonu dar ve kısa: sayfadaki düğmelerin üstüne yayılmasın. */
  .ycd-invite { max-width: min(210px, calc(100vw - 112px)); font-size: 13px; padding: 9px 13px; }
  /* Görünür alanın başladığı yerde dur (iOS klavyesi sayfayı kaydırınca yazma alanı ekranda kalsın). */
  .ycd-panel { top: var(--ycd-vvt, 0px) !important; bottom: auto !important; left: 0 !important; right: 0 !important; overscroll-behavior: contain; }
  .ycd-body, .ycd-messages { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .ycd-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .ycd-composer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .ycd-gate, .ycd-form { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  /* iOS Safari: font-size < 16px olan alana odaklanınca sayfayı zoom'lar. 16px bunu keser. */
  .ycd-input-wrap textarea,
  .ycd-gate input[type="text"], .ycd-gate input[type="email"], .ycd-gate input[type="tel"],
  .ycd-form input[type="text"], .ycd-form input[type="email"], .ycd-form input[type="tel"], .ycd-form textarea {
    font-size: 16px !important;
  }
}

/* Mobilde sohbet açıkken arka sayfa kilitli (widget.js lockPage). */
html.ycd-lock, html.ycd-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.ycd-lock body { position: fixed !important; left: 0; right: 0; width: 100%; }
