.temporary-save-modal {
    text-align: center;
}

.temporary-save-modal .temporary-save-dialog {
    display: inline-block;
    width: calc(100% - 30px);
    max-width: 650px;
    margin: 15px auto;
    text-align: left;
    vertical-align: middle;
}

.temporary-save-modal .modal-content {
    overflow: hidden;
    border: 1px solid #e4e9e3;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(28, 50, 38, .15);
    color: #17332d;
    font-family: inherit;
}

.temporary-save-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 34px 36px 0;
}

.temporary-save-header-icon {
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    height: 58px;
    border-radius: 17px;
    background: #edf5ef;
    color: #406f50;
    font-size: 24px;
}

.temporary-save-header h2 {
    flex: 1;
    margin: 0;
    color: #16342c;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
}

.temporary-save-close {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: #60766d;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
    padding: 7px;
}

.temporary-save-close:hover,
.temporary-save-close:focus {
    color: #17332d;
}

.temporary-save-body {
    padding: 27px 36px 30px;
    font-size: 18px;
    line-height: 1.6;
}

.temporary-save-body > p {
    margin: 0 0 22px;
}

.temporary-save-modal a {
    color: #32674b;
    text-decoration: none;
}

.temporary-save-modal a:hover,
.temporary-save-modal a:focus {
    color: #254f39;
    text-decoration: underline;
}

.temporary-save-body > p a {
    color: #17332d;
    font-weight: 700;
}

.temporary-save-warning {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 19px 21px;
    border-radius: 16px;
    background: #fff8e9;
    color: #5d594d;
}

.temporary-save-warning > i {
    margin-top: 5px;
    color: #946d23;
    font-size: 19px;
}

.temporary-save-warning strong {
    color: #262b25;
    font-weight: 700;
}

.temporary-save-account {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 29px;
}

.temporary-save-account > i {
    margin-top: 5px;
    color: #438060;
    font-size: 19px;
}

.temporary-save-account h3 {
    margin: 0 0 4px;
    color: #17332d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.temporary-save-account p {
    margin: 0;
    color: #5d6e62;
}

.temporary-save-account a {
    font-weight: 700;
}

.temporary-save-footer {
    padding: 24px 36px 30px;
    border-top: 1px solid #e5ebe5;
    text-align: center;
}

.temporary-save-continue {
    display: flex;
    width: 100%;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 17px;
    border: 0;
    border-radius: 12px;
    background: #3e6e4e;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.temporary-save-continue:hover,
.temporary-save-continue:focus {
    background: #315a3f;
    color: #fff;
}

.temporary-save-recovery {
    margin-top: 22px;
    color: #5b7064;
    font-size: 16px;
}

.temporary-save-recovery summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
}

.temporary-save-recovery summary::-webkit-details-marker {
    display: none;
}

.temporary-save-recovery summary:before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
}

.temporary-save-recovery[open] summary:before {
    transform: rotate(90deg);
}

.temporary-save-recovery p {
    margin: 15px 0 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .temporary-save-modal .temporary-save-dialog {
        margin: 12px auto;
    }

    .temporary-save-modal .modal-content {
        border-radius: 18px;
    }

    .temporary-save-header {
        gap: 12px;
        padding: 24px 20px 0;
    }

    .temporary-save-header-icon {
        flex-basis: 46px;
        height: 46px;
        font-size: 20px;
    }

    .temporary-save-header h2 {
        font-size: 22px;
    }

    .temporary-save-body {
        padding: 24px 20px;
        font-size: 16px;
    }

    .temporary-save-warning {
        padding: 15px;
    }

    .temporary-save-account h3 {
        font-size: 18px;
    }

    .temporary-save-footer {
        padding: 20px;
    }
}
