.account-unlink-modal[hidden] {
    display: none;
}

.account-unlink-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 31, 40, 0.62);
}

.account-unlink-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    padding: 32px;
    border: 1px solid #d8e4ea;
    border-radius: 16px;
    background: #fff;
    color: #263238;
    box-shadow: 0 18px 55px rgba(9, 35, 48, 0.28);
}

.account-unlink-modal__close {
    position: absolute;
    top: 10px;
    right: 13px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #71838d;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.account-unlink-modal__close:hover,
.account-unlink-modal__close:focus-visible {
    background: #edf4f7;
    color: #263238;
}

.account-unlink-modal__title {
    margin: 0 28px 12px 0;
    font-size: 22px;
    line-height: 1.25;
}

.account-unlink-modal__text {
    margin: 0;
    color: #61747e;
    font-size: 15px;
    line-height: 1.5;
}

.account-unlink-modal__error {
    margin: 16px 0 0;
    color: #b42318;
    font-size: 14px;
    line-height: 1.4;
}

.account-unlink-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}

.account-unlink-modal__button {
    min-width: 110px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.account-unlink-modal__button:disabled,
.account-unlink-modal__close:disabled {
    cursor: wait;
    opacity: 0.6;
}

.account-unlink-modal__button--cancel {
    border-color: #ccd9df;
    background: #fff;
    color: #52646d;
}

.account-unlink-modal__button--cancel:hover,
.account-unlink-modal__button--cancel:focus-visible {
    background: #f3f7f9;
}

.account-unlink-modal__button--confirm {
    background: #c9362b;
    color: #fff;
}

.account-unlink-modal__button--confirm:hover,
.account-unlink-modal__button--confirm:focus-visible {
    background: #a92b22;
}

body.account-unlink-modal-open {
    overflow: hidden;
}

body.dark .account-unlink-modal__dialog {
    border-color: #3c5865;
    background: #1e3038;
    color: #edf6f9;
}

body.dark .account-unlink-modal__text {
    color: #b2c4ca;
}

body.dark .account-unlink-modal__close {
    color: #a9c0c8;
}

body.dark .account-unlink-modal__close:hover,
body.dark .account-unlink-modal__close:focus-visible {
    background: #2b4652;
    color: #fff;
}

body.dark .account-unlink-modal__button--cancel {
    border-color: #4b6773;
    background: #263e48;
    color: #d8e8ed;
}

body.dark .account-unlink-modal__button--cancel:hover,
body.dark .account-unlink-modal__button--cancel:focus-visible {
    background: #315361;
}

@media (max-width: 520px) {
    .account-unlink-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .account-unlink-modal__dialog {
        padding: 26px 22px 22px;
        border-radius: 14px;
    }

    .account-unlink-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .account-unlink-modal__button {
        width: 100%;
    }
}
