.yandex-mail-account-modal,
.yandex-mail-apk-modal {
    position: fixed;
    inset: 0;
    z-index: 1003000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(5, 8, 14, 0.62);
}

.yandex-mail-account-modal.hidden,
.yandex-mail-apk-modal.hidden {
    display: none;
}

.yandex-mail-account-modal__sheet,
.yandex-mail-apk-modal__sheet {
    width: min(360px, 100%);
    padding: 18px;
    border: 1px solid rgba(73, 96, 125, 0.9);
    border-radius: 18px;
    background: rgba(22, 32, 46, 0.98);
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.yandex-mail-account-modal__head,
.yandex-mail-apk-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yandex-mail-account-modal__head h3,
.yandex-mail-apk-modal__head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.yandex-mail-account-modal__close,
.yandex-mail-apk-modal__close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #343c63;
    color: #fff;
    font-size: 1.35rem;
}

.yandex-mail-account-modal__text,
.yandex-mail-apk-modal__text {
    margin: 22px 0 12px;
    color: #dce7f7;
    text-align: center;
}

.yandex-mail-account-modal__test {
    display: block;
    margin: 0 auto 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9fc0ff;
    font-weight: 800;
    text-decoration: underline;
}

.yandex-mail-account-modal__actions,
.yandex-mail-apk-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.yandex-mail-account-modal__actions button,
.yandex-mail-apk-modal__actions button {
    min-height: 42px;
    border: none;
    border-radius: 12px;
    background: #343c63;
    color: #fff;
    font-weight: 900;
}

.yandex-mail-account-modal__yes {
    background: #583246 !important;
}

.yandex-mail-apk-modal__badge {
    width: max-content;
    margin: 20px auto 0;
    padding: 7px 12px;
    border: 1px solid rgba(255, 211, 119, 0.45);
    border-radius: 999px;
    background: rgba(255, 181, 52, 0.12);
    color: #ffd892;
    font-size: 0.82rem;
    font-weight: 900;
}

.yandex-mail-apk-modal__download {
    background: linear-gradient(135deg, #343c63, #43528d) !important;
}
