/**
 * Canlı destek widget — tema ile uyumlu iskelet (site genelinde).
 */
#bh-livechat-root {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  /* templates/bihosting-v2 form-control + dark-theme ile aynı semantik tokenlar */
  --bh-lc-accent: var(--indigo, #4f39f6);
  --bh-lc-accent-hover: var(--indigo-hover, #4129d9);
  --bh-lc-bg: var(--popover, var(--card, #171717));
  --bh-lc-text: var(--foreground-text, var(--foreground, #d1d5dc));
  --bh-lc-muted: var(--muted-foreground, #a3a3a3);
  --bh-lc-border: var(--border, rgba(255, 255, 255, 0.12));
  --bh-lc-input-bg: var(--input, color-mix(in oklab, rgba(255, 255, 255, 0.12) 28%, transparent));
  --bh-lc-msg-area: var(--secondary-bg, #171717);
  --bh-lc-radius: var(--radius-lg, 1rem);
  --bh-lc-input-radius: var(--theme-radius, 0.5rem);
  --bh-lc-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  /* Ana sayfa "Kayıt Ol" ile aynı yüzey */
  --bh-lc-light-surface: #fafafa;
  --bh-lc-light-on-surface: var(--primary-foreground, #262626);
  font-family: var(--font-family-base, "Geist", system-ui, sans-serif);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.45;
  position: fixed;
  z-index: 99998;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}

#bh-livechat-root * {
  box-sizing: border-box;
}

.bh-lc-launcher {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full, 50%);
  border: none;
  background: linear-gradient(145deg, var(--bh-lc-accent), #7c6cf0);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--bh-lc-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.2s var(--transition-function-1, ease);
}
.bh-lc-launcher:hover {
  transform: scale(1.04);
  background: linear-gradient(145deg, var(--bh-lc-accent-hover), var(--bh-lc-accent));
}

/* Site favicon.svg — degradeyi kaldırıp beyaz silüet (sekmedeki beyaz kullanım gibi) */
.bh-lc-launcher-icon {
  width: 30px;
  height: auto;
  max-height: 22px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.bh-lc-panel {
  position: relative;
  pointer-events: auto;
  display: none;
  width: min(100vw - 32px, 380px);
  height: min(72vh, 520px);
  background: var(--bh-lc-bg);
  color: var(--bh-lc-text);
  border: 1px solid var(--bh-lc-border);
  border-radius: var(--bh-lc-radius);
  box-shadow: var(--bh-lc-shadow);
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  min-width: 280px;
  min-height: 320px;
  max-width: calc(100vw - 32px);
  max-height: min(90vh, 720px);
}

/* Başlık satırında — sol üst köşede yüzen değil, yerleşik tutamak */
.bh-lc-resize {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm, 0.5rem);
  background: rgba(255, 255, 255, 0.08);
  cursor: nwse-resize;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.bh-lc-resize:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}
.bh-lc-resize:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ring, #737373), transparent 35%);
  outline-offset: 2px;
}
/* Sol-üst köşe: üst + sol kenar (sağ-alt L değil) */
.bh-lc-resize::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  border-left: 2px solid rgba(255, 255, 255, 0.88);
  border-right: none;
  border-bottom: none;
  border-radius: 3px 0 0 0;
  opacity: 0.88;
}
#bh-livechat-root.bh-lc-panel--resizing,
#bh-livechat-root.bh-lc-panel--resizing * {
  -webkit-user-select: none;
  user-select: none;
}
#bh-livechat-root.bh-lc-open .bh-lc-panel {
  display: flex;
}
#bh-livechat-root.bh-lc-open .bh-lc-launcher {
  display: none;
}

.bh-lc-head {
  padding: 12px 14px;
  background: var(--topbar, var(--secondary, #171717));
  color: var(--foreground, #fafafa);
  border-bottom: 1px solid var(--bh-lc-border);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bh-lc-head-titles {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bh-lc-head-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
}
.bh-lc-head-badge.bh-lc-badge--on {
  background: rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}
.bh-lc-head-badge.bh-lc-badge--away {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}
#bh-livechat-root.bh-lc-presence-on .bh-lc-launcher {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45), var(--bh-lc-shadow, 0 10px 40px rgba(15, 23, 42, 0.12));
}
.bh-lc-head strong {
  font-weight: 600;
  font-size: var(--text-base, 1rem);
}
.bh-lc-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 0.5rem);
  cursor: pointer;
  line-height: 1;
}
.bh-lc-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bh-lc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.bh-lc-chat {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.bh-lc-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.bh-lc-online-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.bh-lc-online-gate[hidden] {
  display: none !important;
}

.bh-lc-chat-main[hidden] {
  display: none !important;
}

.bh-lc-gate-intro {
  margin: 0;
  font-size: var(--text-sm, 0.875rem);
  color: var(--muted-foreground, #737373);
  line-height: 1.5;
}

.bh-lc-online-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bh-lc-gate-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground, #737373);
}

.bh-lc-gate-label input:not(.iti__tel-input),
.bh-lc-gate-label textarea {
  font: inherit;
  font-size: var(--text-sm, 0.875rem);
  padding: 9px 11px;
  border-radius: var(--radius-sm, 0.5rem);
  border: 1px solid var(--border, #404040);
  background: var(--background, #0a0a0a);
  color: var(--foreground, #fafafa);
  width: 100%;
  box-sizing: border-box;
}

.bh-lc-gate-label textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.bh-lc-gate-submit {
  margin-top: 4px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--theme-radius, 0.5rem);
  background: var(--primary, #fafafa);
  color: var(--primary-foreground, #171717);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  cursor: pointer;
}

.bh-lc-gate-submit:hover {
  opacity: 0.92;
}

.bh-lc-msgs {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px;
  background: var(--bh-lc-msg-area);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted-foreground, #737373) 55%, transparent)
    color-mix(in srgb, var(--bh-lc-msg-area) 92%, #000 8%);
}
.bh-lc-msgs::-webkit-scrollbar {
  width: 8px;
}
.bh-lc-msgs::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--bh-lc-msg-area) 85%, transparent);
  border-radius: 8px;
}
.bh-lc-msgs::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted-foreground, #a3a3a3) 45%, transparent);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.bh-lc-msgs::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--foreground, #fafafa) 28%, transparent);
  background-clip: padding-box;
}
.bh-lc-msg {
  width: fit-content;
  max-width: min(92%, 320px);
  padding: 10px 12px;
  border-radius: var(--radius-md, 0.75rem);
  word-break: break-word;
  font-size: var(--text-sm, 0.875rem);
}
.bh-lc-msg--visitor {
  align-self: flex-end;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px 8px;
  background: var(--bh-lc-light-surface);
  color: var(--bh-lc-light-on-surface);
  border: 1px solid var(--bh-lc-border);
  border-bottom-right-radius: 4px;
}
.bh-lc-msg-text {
  flex: 1 1 auto;
  min-width: 0;
}
.bh-lc-receipt {
  flex: 0 0 auto;
  line-height: 1;
  user-select: none;
}
.bh-lc-ticks {
  display: inline-flex;
  align-items: flex-end;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}
.bh-lc-tick {
  display: inline-block;
  opacity: 0.55;
  color: color-mix(in srgb, var(--muted-foreground, #737373) 88%, transparent);
}
.bh-lc-ticks--double .bh-lc-tick--2 {
  margin-left: -0.48em;
}
.bh-lc-receipt--read .bh-lc-tick {
  opacity: 1;
  color: #53bdeb;
}
.bh-lc-msg--admin {
  align-self: flex-start;
  background: var(--card, #171717);
  color: var(--bh-lc-text);
  border: 1px solid var(--bh-lc-border);
  border-bottom-left-radius: 4px;
}
.bh-lc-blocked {
  flex-shrink: 0;
  padding: 14px 16px;
  background: rgba(248, 113, 113, 0.12);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.875rem;
  line-height: 1.45;
}
.bh-lc-blocked[hidden] {
  display: none !important;
}
.bh-lc-blocked-text {
  margin: 0;
}
.bh-lc-compose {
  flex-shrink: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--bh-lc-border);
  background: var(--card, #171717);
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.bh-lc-attach {
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--bh-lc-input-radius, 0.5rem);
  border: 1px solid var(--bh-lc-border);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  transition: background 0.15s ease;
  overflow: hidden;
}
.bh-lc-attach:hover {
  background: rgba(255, 255, 255, 0.1);
}
.bh-lc-file {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 0;
  color: transparent;
  max-width: 100%;
  max-height: 100%;
}
/* Tarayıcı "Dosya Seç" / dosya adı satırını gizle — yalnızca ataç kutusu tıklanır */
.bh-lc-file::-webkit-file-upload-button {
  display: none;
}
.bh-lc-file::file-selector-button {
  display: none;
}
.bh-lc-attach-icon {
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}
.bh-lc-msg .bh-lc-file-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.bh-lc-msg--visitor .bh-lc-file-link {
  color: #2563eb;
}
.bh-lc-msg--visitor .bh-lc-msg-text a {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-all;
}
.bh-lc-msg--admin .bh-lc-msg-text a {
  color: #93c5fd;
  text-decoration: underline;
  word-break: break-all;
}
.bh-lc-msg-cap {
  margin-bottom: 6px;
}
.bh-lc-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  padding: var(--input-padding-md, 10px 15px);
  border-radius: var(--bh-lc-input-radius);
  border: 1px solid var(--bh-lc-border);
  background-color: var(--bh-lc-input-bg);
  color: var(--foreground, #fafafa);
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}
.bh-lc-compose textarea::placeholder {
  color: var(--ring, #737373);
  opacity: 1;
}
.bh-lc-compose textarea:focus {
  outline-color: color-mix(in srgb, var(--ring, #737373), transparent 80%);
  border-color: var(--ring, #737373);
}
.bh-lc-send {
  flex-shrink: 0;
  border: 1px solid var(--bh-lc-border);
  /* Ana sayfa .btn / Kayıt Ol ile aynı köşe yuvarlaklığı (--theme-radius) */
  border-radius: var(--theme-radius, var(--bh-lc-input-radius, 0.5rem));
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bh-lc-light-surface);
  color: var(--bh-lc-light-on-surface);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 0;
  transition: filter 0.15s ease, background-color 0.15s ease;
}
.bh-lc-send:hover:not(:disabled) {
  filter: brightness(0.96);
}
.bh-lc-send:focus-visible {
  outline: 2px solid var(--ring, #737373);
  outline-offset: 2px;
}
.bh-lc-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bh-lc-offline {
  padding: 16px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  display: none;
}
.bh-lc-offline-intro {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--bh-lc-muted);
}
.bh-lc-offline-intro strong {
  color: var(--foreground, #fafafa);
  font-weight: 600;
}
#bh-lc-offline-form {
  display: flex;
  flex-direction: column;
}
.bh-lc-offline label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--bh-lc-muted);
}
/* intl-tel-input yokken ham tel alanı; init sonrası .iti__tel-input ile hariç tutulur */
.bh-lc-offline input:not(.iti__tel-input),
.bh-lc-offline textarea {
  width: 100%;
  padding: var(--input-padding-md, 10px 15px);
  border-radius: var(--bh-lc-input-radius);
  border: 1px solid var(--bh-lc-border);
  background-color: var(--bh-lc-input-bg);
  color: var(--foreground, #fafafa);
  font: inherit;
  font-weight: 500;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}
.bh-lc-offline input:not(.iti__tel-input)::placeholder,
.bh-lc-offline textarea::placeholder {
  color: var(--ring, #737373);
  opacity: 1;
}
.bh-lc-offline input:not(.iti__tel-input):focus,
.bh-lc-offline textarea:focus {
  outline-color: color-mix(in srgb, var(--ring, #737373), transparent 80%);
  border-color: var(--ring, #737373);
}
/* Gönder — ana sayfa Kayıt Ol / .bh-lc-gate-submit ile aynı primary düğüm */
.bh-lc-offline button {
  margin-top: 22px;
  margin-right: -4px;
  align-self: flex-end;
  padding: 10px 16px;
  border: none;
  border-radius: var(--theme-radius, 0.5rem);
  background: var(--primary, #fafafa);
  color: var(--primary-foreground, #171717);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.bh-lc-offline button:hover:not(:disabled) {
  opacity: 0.92;
}
.bh-lc-offline button:focus-visible {
  outline: 2px solid var(--ring, #737373);
  outline-offset: 2px;
}
.bh-lc-offline button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bh-lc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f56565;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
/* Okunmamış destek mesajı — sohbet kapalıyken */
.bh-lc-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
  z-index: 2;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
}
.bh-lc-unread.bh-lc-unread--show {
  display: flex;
}
.bh-lc-launcher-wrap {
  position: relative;
  pointer-events: auto;
}

/* intl-tel-input — ülke listesi body’de; widget z-index üstünde */
body > .iti.iti--container {
  z-index: 100001 !important;
}

/* Aynı liste #bh-livechat-root dışında render edildiği için tokenlar burada tekrar (koyu tema) */
body > .iti.iti--container .iti__dropdown-content {
  background-color: #171717 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fafafa;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body > .iti.iti--container .iti__search-input {
  background-color: #1a1a1a !important;
  color: #fafafa !important;
  caret-color: #fafafa;
  border: 0 !important;
}

body > .iti.iti--container .iti__search-input::placeholder {
  color: #737373;
  opacity: 1;
}

body > .iti.iti--container .iti__search-input + .iti__country-list {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

body > .iti.iti--container .iti__country-list {
  background-color: #171717;
}

body > .iti.iti--container .iti__country {
  color: #fafafa;
}

body > .iti.iti--container .iti__country-name {
  color: #fafafa;
}

body > .iti.iti--container .iti__dial-code {
  color: #a3a3a3 !important;
}

body > .iti.iti--container .iti__country.iti__highlight {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

body > .iti.iti--container .iti__country:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

#bh-livechat-root {
  --iti-border-color: var(--bh-lc-border);
  --iti-text-gray: var(--bh-lc-muted);
  --iti-hover-color: rgba(255, 255, 255, 0.08);
  --iti-dropdown-bg: var(--bh-lc-bg);
  --iti-arrow-color: var(--bh-lc-muted);
}

#bh-livechat-root .iti {
  width: 100%;
  display: block;
}

#bh-livechat-root .iti--allow-dropdown input.iti__tel-input,
#bh-livechat-root .iti--allow-dropdown input.iti__tel-input[type='tel'],
#bh-livechat-root .iti--allow-dropdown input.iti__tel-input[type='text'] {
  width: 100%;
  font: inherit;
  font-size: var(--text-sm, 0.875rem);
  /* Yukarıdaki tek satır padding bayrak genişliğini 11px yapıyordu; ITI --iti-* sol boşlukları koru */
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: var(--iti-selected-country-arrow-padding);
  padding-right: var(--iti-input-padding);
  border-radius: var(--radius-sm, 0.5rem);
  border: 1px solid var(--border, #404040);
  background: var(--background, #0a0a0a);
  color: var(--foreground, #fafafa);
}

/* Mesai dışı — telefon: tek çerçeve, diğer alanlarla aynı yüzey (mor/koyu blok ayrımı yok) */
#bh-livechat-root .bh-lc-offline .iti--allow-dropdown {
  position: relative;
  border: 1px solid var(--bh-lc-border);
  border-radius: var(--bh-lc-input-radius);
  background-color: var(--bh-lc-input-bg);
  overflow: hidden;
}
#bh-livechat-root .bh-lc-offline .iti--allow-dropdown input.iti__tel-input,
#bh-livechat-root .bh-lc-offline .iti--allow-dropdown input.iti__tel-input[type='tel'],
#bh-livechat-root .bh-lc-offline .iti--allow-dropdown input.iti__tel-input[type='text'] {
  margin: 0 !important;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: calc(var(--iti-selected-country-arrow-padding) + 18px);
  padding-right: var(--iti-input-padding);
  min-height: 48px;
  line-height: 1.45;
  box-sizing: border-box;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--foreground, #fafafa);
  box-shadow: none !important;
  outline: none !important;
}
#bh-livechat-root .bh-lc-offline .iti__country-container {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  padding: 0;
  display: flex;
  align-items: stretch;
}
#bh-livechat-root .bh-lc-offline .iti__selected-country {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  border: 0;
  line-height: 1;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--bh-lc-input-bg) 88%, #fff 6%);
  -webkit-appearance: none;
  appearance: none;
}
#bh-livechat-root .bh-lc-offline .iti__selected-country-primary {
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  margin: 0;
  line-height: 1;
}
#bh-livechat-root .bh-lc-offline .iti__flag {
  display: block;
  margin: 0;
  flex-shrink: 0;
}
#bh-livechat-root .bh-lc-offline
  .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly]))
  .iti__selected-country-primary:hover,
#bh-livechat-root .bh-lc-offline
  .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly]))
  .iti__selected-country:has(+ .iti__dropdown-content:hover)
  .iti__selected-country-primary {
  background-color: rgba(255, 255, 255, 0.08);
}
#bh-livechat-root .bh-lc-offline .iti--allow-dropdown:focus-within {
  outline: 2px solid color-mix(in srgb, var(--ring, #737373), transparent 65%);
  outline-offset: 0;
  border-color: var(--ring, #737373);
}

/* Sohbet öncesi form (mesai içi) — aynı telefon bloğu */
#bh-livechat-root .bh-lc-online-gate .iti--allow-dropdown {
  position: relative;
  border: 1px solid var(--bh-lc-border);
  border-radius: var(--bh-lc-input-radius);
  background-color: var(--bh-lc-input-bg);
  overflow: hidden;
}
#bh-livechat-root .bh-lc-online-gate .iti--allow-dropdown input.iti__tel-input,
#bh-livechat-root .bh-lc-online-gate .iti--allow-dropdown input.iti__tel-input[type='tel'],
#bh-livechat-root .bh-lc-online-gate .iti--allow-dropdown input.iti__tel-input[type='text'] {
  margin: 0 !important;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: calc(var(--iti-selected-country-arrow-padding) + 18px);
  padding-right: var(--iti-input-padding);
  min-height: 44px;
  line-height: 1.45;
  box-sizing: border-box;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--foreground, #fafafa);
  box-shadow: none !important;
  outline: none !important;
}
#bh-livechat-root .bh-lc-online-gate .iti__country-container {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  padding: 0;
  display: flex;
  align-items: stretch;
}
#bh-livechat-root .bh-lc-online-gate .iti__selected-country {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  border: 0;
  line-height: 1;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--bh-lc-input-bg) 88%, #fff 6%);
  -webkit-appearance: none;
  appearance: none;
}
#bh-livechat-root .bh-lc-online-gate .iti__selected-country-primary {
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  margin: 0;
  line-height: 1;
}
#bh-livechat-root .bh-lc-online-gate .iti__flag {
  display: block;
  margin: 0;
  flex-shrink: 0;
}
#bh-livechat-root .bh-lc-online-gate
  .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly]))
  .iti__selected-country-primary:hover,
#bh-livechat-root .bh-lc-online-gate
  .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly]))
  .iti__selected-country:has(+ .iti__dropdown-content:hover)
  .iti__selected-country-primary {
  background-color: rgba(255, 255, 255, 0.08);
}
#bh-livechat-root .bh-lc-online-gate .iti--allow-dropdown:focus-within {
  outline: 2px solid color-mix(in srgb, var(--ring, #737373), transparent 65%);
  outline-offset: 0;
  border-color: var(--ring, #737373);
}

#bh-livechat-root .iti__search-input {
  background: var(--bh-lc-msg-area);
  color: var(--foreground, #fafafa);
}

/* separateDialCode kapalıyken çoğunlukla boş; açıksa okunur renk */
#bh-livechat-root .iti__selected-dial-code {
  color: var(--foreground, #fafafa);
  padding: 0 2px 0 0;
  font-weight: 500;
}
