[data-tim-lang-host] {
    min-width: 92px;
    min-height: 36px;
}

.tim-lang-switch {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 33, 152, 0.92);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    transition: background 0.15s ease, transform 0.15s ease;
}

.tim-lang-switch:hover {
    background: rgba(0, 33, 152, 1);
    transform: translateY(-1px);
}

.tim-lang-switch--inline {
    position: static;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.verify-top .tim-lang-switch--inline,
.otp-header .tim-lang-switch--inline,
.checkout-card-form-header .tim-lang-switch--inline {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    margin: 0;
}

.verify-top .tim-lang-switch--inline:hover,
.otp-header .tim-lang-switch--inline:hover,
.checkout-card-form-header .tim-lang-switch--inline:hover {
    transform: translateY(calc(-50% - 1px));
}

html.tim-in-iframe .tim-lang-switch:not(.tim-lang-switch--inline) {
    top: 8px;
    right: 8px;
}

.header .tim-lang-switch--inline,
.checkout-page-top .tim-lang-switch--inline {
    position: static;
    margin-inline-start: auto;
    top: auto;
    right: auto;
    transform: none;
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.header .tim-lang-switch--inline:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.2);
}

.checkout-page-top .tim-lang-switch--inline {
    border-color: rgba(0, 33, 152, 0.25);
    background: #fff;
    color: #002198;
    box-shadow: 0 2px 8px rgba(0, 33, 152, 0.08);
}

.checkout-page-top .tim-lang-switch--inline:hover {
    transform: none;
    background: #f5f7ff;
}
