fluent-dialog.dialoog {
    width: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    --dialog-width: 520px;
    --dialog-height: auto;
}

fluent-dialog.dialoog::part(control) {
    --dialog-padding: 0px;
    width: min(520px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px #00000038, 0 2px 8px #0000001f;
}

.dialoog-inhoud {
    display: flex;
    width: 100%;
    max-height: calc(100dvh - 42px);
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 24px 0;
    color: #242424;
    background: #fff;
}

.dialoog-inhoud h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
}

fluent-dialog.dialoog .dialoog-uitleg {
    margin: 10px 0 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.55;
}

fluent-dialog.dialoog .dialoog-details {
    display: grid;
    grid-template-columns: none;
    gap: 0;
    margin: 22px 0 0;
    padding: 8px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #f7f7f7;
}

.dialoog-details > div {
    display: grid;
    min-width: 0;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 7px 0;
}

.dialoog-details > div + div {
    border-top: 1px solid #e5e5e5;
}

.dialoog-details dt {
    color: #616161;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.dialoog-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

fluent-dialog.dialoog .dialoog-melding {
    margin: 20px 0 0;
    border-left: 3px solid #0f6cbd;
    padding: 9px 12px;
    color: #424242;
    background: #eff6fc;
    line-height: 1.45;
}

fluent-dialog.dialoog .dialoog-acties {
    display: flex;
    position: sticky;
    z-index: 1;
    bottom: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
    margin: 24px -24px 0;
    border-top: 1px solid #e1e1e1;
    padding: 16px 24px 20px;
    background: #fafafa;
}

.dialoog-acties fluent-button {
    min-width: 96px;
}

@media (max-width: 480px) {
    fluent-dialog.dialoog::part(control) {
        width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 20px);
    }

    .dialoog-inhoud {
        max-height: calc(100dvh - 22px);
        padding-inline: 16px;
    }

    .dialoog-details > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    fluent-dialog.dialoog .dialoog-acties {
        flex-direction: column-reverse;
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .dialoog-acties fluent-button {
        width: 100%;
    }
}
