.dialog {
    position: fixed;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    height: 240px;
    bottom: 40px;
    inset-inline-start: 40px;
    background-color: var(--theme-dialog-background);
    z-index: var(--index-important);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 18px var(--color-utils-gray);
    display: none;
    font-family: var(--font-family-default);
    color: var(--theme-text-dark);
    padding: var(--content-spacing-xlarge);
    border: var(--theme-medium-border);
}

.dialog:target,
.dialog.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dialog-close-button {
    position: absolute;
    top: var(--content-spacing-medium);
    inset-inline-end: var(--content-spacing-medium);
    width: var(--icon-size-medium);
    height: var(--icon-size-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.dialog-close-button-icon {
    --animated-icon-width: 24px;
    --animated-icon-background: transparent;
    --animated-icon-color: var(--theme-icon-fill-dark);
    --animated-icon-hover: var(--theme-icon-fill-medium);
}

.dialog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: var(--font-size-medium);
    text-transform: uppercase;
    margin-bottom: var(--content-spacing-large);
    width: 100%;
}

.dialog-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.dialog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dialog-item:not(:last-child) {
    margin-bottom: var(--content-spacing-large);
}

@media (max-width: 767px) {
    .dialog {
        width: calc(100% - var(--content-spacing-xxxlarge) * 2);
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}
