/* Bayraklı telefon alanı (03.11.2026) — public/js/telefon-bayrak.js. Alanın kendi stili korunur;
   bayrak düğmesi alanın içinde solda durur, alana o kadar sol boşluk verilir. */
.tb-kutu { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.tb-kutu > input { width: 100%; box-sizing: border-box; }
.tb-dugme {
    position: absolute; left: 6px; top: 50%; transform: translateY(-50%); z-index: 2;
    display: inline-flex; align-items: center; gap: 5px; height: calc(100% - 8px); max-height: 34px;
    padding: 0 7px 0 6px; margin: 0; border: 0; border-right: 1px solid var(--border, #e2e2dc); border-radius: 6px 0 0 6px;
    background: transparent; color: var(--text, #1a1a1a); font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
    cursor: pointer; font-variant-numeric: tabular-nums;
}
.tb-dugme:hover { background: var(--bg-subtle, rgba(0, 0, 0, .04)); }
.tb-dugme:focus-visible { outline: 2px solid var(--brand, #b8b62e); outline-offset: 1px; }
.tb-dugme:disabled { cursor: default; opacity: .6; }
.tb-dugme::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; }
.tb-bayrak { width: 20px; height: 15px; flex: 0 0 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.tb-secili-kod { min-width: 26px; }

.tel-ulke .tb-gizli-secim { display: none !important; }

.tb-panel {
    position: fixed; inset: auto; z-index: 99990; box-sizing: border-box; width: 300px; margin: 0; padding: 8px;
    background: var(--bg-elevated, var(--surface, #fff)); color: var(--text, #1a1a1a);
    border: 1px solid var(--border, #e2e2dc); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}
.tb-panel[hidden] { display: none; }
.tb-ara {
    width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 8px 10px; font: inherit; font-size: 14px;
    border: 1px solid var(--border, #e2e2dc); border-radius: 8px; background: var(--bg, #fff); color: inherit;
}
.tb-ara:focus { outline: 2px solid var(--brand, #b8b62e); outline-offset: 0; }
.tb-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 268px; }
.tb-liste li {
    display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px;
}
.tb-liste li[hidden] { display: none; }
.tb-liste li:hover, .tb-liste li:focus { background: var(--bg-subtle, rgba(0, 0, 0, .05)); outline: none; }
.tb-liste li[aria-selected="true"] { background: var(--brand-soft, rgba(184, 182, 46, .14)); font-weight: 600; }
.tb-liste li.tb-ayrac { border-bottom: 1px solid var(--border, #e2e2dc); border-radius: 7px 7px 0 0; margin-bottom: 4px; padding-bottom: 9px; }
.tb-ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-kod { color: var(--text-secondary, #666); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }   /* Arapça sayfada "+971" ters çıkmasın */

@media (prefers-reduced-motion: no-preference) {
    .tb-panel:not([hidden]) { animation: tbAc .12s ease-out; }
    @keyframes tbAc { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
