.tb-locale-notice {
    position: fixed;
    left: 50%;
    bottom: var(--tb-locale-notice-bottom, 1.25rem);
    transform: translate(-50%, calc(100% + 2.5rem));
    z-index: 9980;
    width: calc(100% - 2rem);
    max-width: 520px;
    pointer-events: none;
    opacity: 0;
}

.tb-locale-notice.is-open {
    animation: tbLocaleNoticeIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    pointer-events: auto;
}

.tb-locale-notice.is-closing {
    animation: tbLocaleNoticeOut 0.28s cubic-bezier(0.4, 0, 1, 1) both;
    pointer-events: none;
}

.tb-locale-notice-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem 0.9rem 1.15rem;
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    color: #fff;
}

.tb-locale-notice-title {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #fff;
}

.tb-locale-notice-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.tb-locale-notice-switch,
.tb-locale-notice-continue {
    appearance: none;
    font: inherit;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tb-locale-notice-switch {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tb-locale-notice-switch:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

.tb-locale-notice-continue {
    background: #fff;
    color: #111;
    border: 1px solid #fff;
}

.tb-locale-notice-continue:hover {
    background: #f3f3f3;
}

.tb-locale-notice-close {
    appearance: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.tb-locale-notice-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes tbLocaleNoticeIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(100% + 2.5rem));
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes tbLocaleNoticeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, calc(100% + 2.5rem));
    }
}

@media (max-width: 640px) {
    .tb-locale-notice {
        bottom: var(--tb-locale-notice-bottom, 0.85rem);
        width: calc(100% - 1.2rem);
    }

    .tb-locale-notice-inner {
        flex-wrap: wrap;
        padding: 0.95rem 0.95rem 0.85rem;
        gap: 0.7rem;
        border-radius: 16px;
    }

    .tb-locale-notice-title {
        font-size: 0.88rem;
        padding-right: 1.6rem;
    }

    .tb-locale-notice-actions {
        width: 100%;
    }

    .tb-locale-notice-switch,
    .tb-locale-notice-continue {
        flex: 1;
        text-align: center;
        justify-content: center;
        display: inline-flex;
    }

    .tb-locale-notice-close {
        position: absolute;
        top: 0.55rem;
        right: 0.55rem;
    }

    .tb-locale-notice-inner {
        position: relative;
    }
}
