html.ts-app-download-open {
    overflow: hidden;
}

#ts-app-download {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(440px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 44px 24px 24px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #172b80;
    text-align: center;
    box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
    overflow: auto;
}

#ts-app-download::backdrop {
    background: rgb(10 20 45 / 60%);
}

#ts-app-download .ts-app-download__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f9;
    color: #172b80;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}

#ts-app-download-title {
    margin: 0;
    color: #172b80;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: normal;
}

#ts-app-download-title::before {
    display: none;
}

#ts-app-download .ts-app-download__stores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

#ts-app-download .ts-app-download__stores a {
    display: block;
    flex: 0 1 174px;
    min-width: 0;
    border-radius: 8px;
}

#ts-app-download .ts-app-download__stores img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

#ts-app-download-help {
    margin: 0;
    color: #586b91;
    font-size: 12px;
    line-height: 1.6;
}

#ts-app-download a:focus-visible,
#ts-app-download button:focus-visible {
    outline: 3px solid #3266d4;
    outline-offset: 4px;
}

@media (max-width: 360px) {
    #ts-app-download { padding-inline: 16px; }
    #ts-app-download .ts-app-download__stores { gap: 10px; }
}
