dialog.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    padding: 0;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: inherit;
    z-index: 3600;
}

dialog.modal::backdrop {
    background-color: rgba(0, 0, 0, 0.55);
}

.modal__window {
    position: relative;
    padding: 4em 2em;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    overflow-y: auto;
}

.modal__window--question {
    width: auto;
    max-width: 480px;
    height: auto;
    padding: 2em 2.5em;
}

.modal__content {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1em;
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--color-primary);
}

.modal__close:focus,
.modal__close:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

dialog.modal:not(:target) {
    visibility: hidden;
    opacity: 0;
}
