:root {
    --dialog-background-color: white;
}
:root.high-contrast {
    --dialog-background-color: var(--main-background-color);
}

.sm-modal-dialog {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    user-select: none;
}

.sm-modal-dialog .modal-dialog-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.sm-modal-dialog .modal-dialog-content {
    background-color: var(--dialog-background-color);
    padding: var(--main-dialog-padding);
    margin: var(--main-dialog-margin);
    box-shadow: var(--main-dialog-box-shadow);
    border: var(--main-dialog-border);
    border-radius: var(--main-dialog-border-radius);
    max-width: var(--main-dialog-width);
    width: 100%;
}

.sm-modal-dialog .modal-dialog-main {
    text-align: center;
}

.sm-modal-dialog .message {
    text-align: center;
}

.sm-modal-dialog .message div:not(:first-child){
    margin-top: 0.5em;
}

.sm-modal-dialog .header {
    text-align: left;
    font-family: Montserrat;
    font-size: 1.5em;
    font-weight: 500;
    padding-bottom: 0.5em;
    color: var(--main-accent-color);
}

.sm-modal-dialog .buttons-panel-center {
    margin-top: 1em;
}

.sm-modal-dialog ul {
    list-style-type: disc;
    margin: 0;
    padding: 0;
    padding-left: var(--main-dialog-padding);
}

.sm-modal-dialog .icon {
    padding-bottom: 0.33em;
}

.sm-modal-dialog .button {
    min-width: var(--button-min-width);
}