body.modal-open {
    overflow: hidden;
}

[data-modal-target] {
    cursor: pointer;
}

.modal-container {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    background: #00000075;
    overflow: auto;
    z-index: 3;
}

.modal {
    position: initial;
    display: block;
    width: 40em;
    max-width: 100%;
    height: fit-content;
    margin: 3em 0;
    background: var(--white, #eeeeee);
    border-radius: 1em;
}

.wide-modal {
    width: 65em;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2em;
    padding: 0;
    font-size: 14pt;
    font-weight: bold;
    color: var(--white, #e2e2ef);
    background: var(--tertiary, #385696);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    font-family: Arial, Helvetica, sans-serif;
}

.modal-header > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    height: 2em;
}

.modal-hide {
    border-radius: 0 0.8em;
    cursor: pointer;
}

.modal-hide:hover {
    background: var(--hover-red, #da4040);
}

.modal-content {
    padding: 1em;
    background: none;
    border: none;
    border-radius: 1em;
    box-shadow: none;
}

.modal-content.centered {
    text-align: center;
}

.modal-hide {
    cursor: pointer;
}

.modal-content {
    padding: 1em;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1em;
    background: var(--tertiary, #385696);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.modal-footer > *:not(:last-child) {
    margin-right: 1em;
}