.site-version-switch {
    position: relative;
    z-index: 1040;
    width: 100%;
    min-width: 320px;
    color: #202124;
    background: linear-gradient(96deg, #fffaf2 0%, #fff5eb 52%, #fff0e8 100%);
    border-bottom: 1px solid #f7e3d3;
    box-shadow: 0 2px 10px rgba(129, 76, 28, 0.06);
}

.site-version-switch[hidden] {
    display: none !important;
}

.site-version-switch__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    width: 100%;
    max-width: 920px;
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 0;
    box-sizing: border-box;
}

.site-version-switch__sparkles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 24px;
    line-height: 1;
}

.site-version-switch__copy {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 20px;
    white-space: nowrap;
}

.site-version-switch__title {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.site-version-switch__description {
    overflow: hidden;
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.5;
    text-overflow: ellipsis;
}

.site-version-switch__description--mobile,
.site-version-switch__action-text--mobile {
    display: none;
}

.site-version-switch__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 166px;
    height: 44px;
    padding: 0 22px;
    box-sizing: border-box;
    border-radius: 24px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff9818 0%, #ff7800 100%);
    box-shadow: 0 7px 16px rgba(255, 126, 0, 0.24);
    font-size: 16px;
    font-weight: 600;
    line-height: 44px;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-version-switch__action:hover,
.site-version-switch__action:focus {
    color: #fff !important;
    box-shadow: 0 9px 20px rgba(255, 126, 0, 0.32);
    transform: translateY(-1px);
}

.site-version-switch__arrow {
    margin-left: 10px;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

.site-version-switch__close {
    position: absolute;
    top: 50%;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 16px;
    padding: 0;
    color: #343434;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.site-version-switch__close span {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.site-version-switch__close:hover,
.site-version-switch__close:focus {
    color: #ff7d00;
    background: rgba(255, 125, 0, 0.08);
    outline: none;
}

@media (max-width: 1120px) {
    .site-version-switch__inner {
        padding-right: 24px;
        padding-left: 24px;
    }

    .site-version-switch__copy {
        gap: 12px;
    }

    .site-version-switch__description {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .site-version-switch {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1040;
    }

    .site-version-switch__inner {
        grid-template-columns: 22px minmax(0, 1fr) auto 24px;
        column-gap: 7px;
        min-height: 72px;
        padding: 9px 10px;
    }

    .site-version-switch__sparkles {
        width: 22px;
        height: 22px;
        font-size: 19px;
    }

    .site-version-switch__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
        overflow: hidden;
    }

    .site-version-switch__title {
        max-width: 100%;
        overflow: hidden;
        font-size: 13px;
        line-height: 20px;
        text-overflow: ellipsis;
    }

    .site-version-switch__description--desktop,
    .site-version-switch__action-text--desktop {
        display: none;
    }

    .site-version-switch__description--mobile,
    .site-version-switch__action-text--mobile {
        display: inline;
    }

    .site-version-switch__description {
        max-width: 100%;
        font-size: 10px;
        line-height: 17px;
        text-overflow: ellipsis;
    }

    .site-version-switch__action {
        min-width: 101px;
        height: 38px;
        padding: 0 13px;
        border-radius: 21px;
        font-size: 13px;
        line-height: 38px;
    }

    .site-version-switch__arrow {
        margin-left: 7px;
        font-size: 17px;
    }

    .site-version-switch__close {
        position: static;
        width: 24px;
        height: 32px;
        margin-left: 0;
        transform: none;
    }

    .site-version-switch__close span {
        font-size: 24px;
    }

    html.has-site-version-switch .mui-bar-nav {
        top: 72px;
    }
}

@media (max-width: 374px) {
    .site-version-switch__inner {
        grid-template-columns: 18px minmax(0, 1fr) auto 20px;
        column-gap: 5px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .site-version-switch__sparkles {
        width: 18px;
        font-size: 16px;
    }

    .site-version-switch__title {
        font-size: 12px;
    }

    .site-version-switch__action {
        min-width: 88px;
        padding: 0 10px;
        font-size: 12px;
    }
}
