/* Ülke kodu açılır menüsü (site + panel) */
.er-tel { --tm-bg: #141513; --tm-line: rgba(255,255,255,.09); --tm-text: #ecede8; --tm-muted: #8f908a; --tm-accent: #d3ed31; --tm-sel: #d3ed31; --tm-hover: rgba(255,255,255,.055); --tm-input: #0c0d0b; --tm-shadow: 0 24px 60px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04); }
.er-light-mode .er-tel { --tm-bg: #ffffff; --tm-line: #e4e5df; --tm-text: #16170f; --tm-muted: #6b6c66; --tm-sel: #4d6400; --tm-hover: #f2f3ee; --tm-input: #f6f7f3; --tm-shadow: 0 24px 50px -16px rgba(20,22,10,.28), 0 0 0 1px rgba(0,0,0,.03); }
.pn-field .er-tel { --tm-bg: var(--pn-surface); --tm-line: var(--pn-line); --tm-text: var(--pn-text); --tm-muted: var(--pn-muted); --tm-accent: var(--pn-accent); --tm-sel: var(--pn-accent-text); --tm-hover: color-mix(in srgb, var(--pn-text) 6%, transparent); --tm-input: var(--pn-bg); }

.er-tel.is-enhanced .er-tel__select { display: none !important; }
.er-tel.is-enhanced .er-tel__cc { pointer-events: auto; cursor: pointer; user-select: none; z-index: 2; }
.er-tel.is-enhanced .er-tel__cc:focus-visible { outline: none; color: var(--tm-accent); }
.er-tel__cc svg { transition: transform .2s; }
.er-tel.is-open .er-tel__cc { color: var(--tm-sel); }
.er-tel.is-open .er-tel__cc svg { transform: rotate(180deg); opacity: 1; }

.er-tel__menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 50; width: min(340px, 100%); min-width: 260px; background: var(--tm-bg); border: 1px solid var(--tm-line); border-radius: 14px; box-shadow: var(--tm-shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.er-tel.is-up .er-tel__menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; transform: translateY(6px) scale(.98); }
.er-tel.is-open .er-tel__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }

.er-tel__search { position: relative; margin-bottom: 6px; }
.er-tel__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tm-muted); pointer-events: none; }
.er-tel__search input { width: 100%; height: 40px; min-height: 0 !important; padding: 0 12px 0 36px !important; border: 1px solid var(--tm-line) !important; border-radius: 10px !important; background: var(--tm-input) !important; color: var(--tm-text) !important; font-size: 14px !important; box-shadow: none !important; outline: none; }
.er-tel__search input:focus { border-color: var(--tm-accent) !important; }
.er-tel__search input::placeholder { color: var(--tm-muted); opacity: 1; }

.er-tel__list { list-style: none; margin: 0; padding: 0 2px 0 0; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--tm-line) transparent; }
.er-tel__list::-webkit-scrollbar { width: 6px; }
.er-tel__list::-webkit-scrollbar-thumb { background: var(--tm-line); border-radius: 6px; }
.er-tel__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0; border-radius: 9px; cursor: pointer; color: var(--tm-text); font-size: 14px; line-height: 1.3; transition: background-color .1s; }
.er-tel__opt.is-active { background: var(--tm-hover); }
.er-tel__iso { flex: 0 0 auto; width: 30px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--tm-line); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--tm-muted); }
.er-tel__name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-tel__code { flex: 0 0 auto; color: var(--tm-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.er-tel__check { flex: 0 0 16px; color: var(--tm-sel); opacity: 0; }
.er-tel__opt.is-selected { color: var(--tm-sel); font-weight: 600; }
.er-tel__opt.is-selected .er-tel__iso { border-color: var(--tm-sel); color: var(--tm-sel); }
.er-tel__opt.is-selected .er-tel__check { opacity: 1; }
.er-tel__sep { height: 1px; margin: 6px 4px; background: var(--tm-line); }
.er-tel__empty { padding: 14px 10px; color: var(--tm-muted); font-size: 13.5px; text-align: center; }
