.lang-switch {
    position: relative;
}

.lang-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    flex-shrink: 0;
}

.lang-script {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 18px;
    padding: 0 5px;
    margin-left: 2px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    background: rgba(0, 0, 0, .08);
    color: inherit;
}

.lang-switch-current {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lang-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 44px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus {
    border-color: #4680ff;
    box-shadow: 0 0 0 3px rgba(70, 128, 255, .15);
    color: #2c3e50;
    text-decoration: none;
}

.lang-switch-btn:after,
.lang-switch-btn.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.lang-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    opacity: .55;
    flex-shrink: 0;
}

.lang-switch-menu {
    min-width: 100%;
    padding: 6px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
    margin-top: 6px;
    z-index: 2000;
}

.lang-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 10px !important;
    border-radius: 8px;
    color: #1f2d3d !important;
    font-weight: 600;
    font-size: 13px;
}

.lang-item:hover {
    background: #f3f6fb !important;
}

.lang-item.active {
    background: #eef4ff !important;
    color: #2f6fed !important;
}

.lang-item-check {
    margin-left: auto;
    font-size: 14px;
    color: #2f6fed;
    opacity: 0;
}

.lang-item.active .lang-item-check {
    opacity: 1;
}

/* Login */
.lang-switch-login {
    margin-top: 16px;
}

.lang-switch-login .lang-switch-menu {
    width: 100%;
}

/* Header / iç sayfa */
.lang-switch-header .lang-switch-btn {
    width: auto;
    min-height: 36px;
    padding: 4px 12px 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    box-shadow: none;
}

.lang-switch-header .lang-switch-btn:hover,
.lang-switch-header .lang-switch-btn:focus {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    box-shadow: none;
}

.lang-switch-header .lang-flag {
    width: 24px;
    height: 16px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.lang-switch-header .lang-script {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.lang-switch-header .lang-name {
    max-width: 130px;
    font-size: 12px;
}

.lang-switch-header .lang-switch-menu {
    min-width: 240px;
    right: 0;
    left: auto;
}

.header-language {
    display: flex;
    align-items: center;
    padding: 0 8px;
    overflow: visible;
}

.pcoded-header .navbar-wrapper,
.pcoded-header .navbar-container,
.pcoded-header .nav-right {
    overflow: visible !important;
}
