﻿.blazored-modal.formobile {
    max-height: calc(100vh - 0.5rem);
    height: calc(100vh - 0.5rem);
    max-width: calc(100vw - 0.5rem);
    width: calc(100vw - 0.5rem);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

    .blazored-modal.formobile > .bm-header, .blazored-modal.formobile > bm-header-copy {
        padding: 0.5rem;
    }

.blazored-modal.maxheight {
    height: calc(100vh - 3.5rem);
    margin-left: auto !important;
    margin-right: auto !important;
}

.blazored-modal.fullscreen {
    height: calc(100vh - 3.5rem);
    width: calc(100vw - 5rem);
    margin-left: auto !important;
    margin-right: auto !important;
}

    .blazored-modal.maxheight > .bm-content, .blazored-modal.formobile > .bm-content, .blazored-modal.fullscreen > .bm-content {
        overflow: hidden;
        flex-grow: 1;
    }

.blazored-modal.autowidth {
    min-width: 800px;
    min-width: max(50vw, 800px); /* we want 50% width - at least 800px */
    max-width: 100vw; /* 2025-06-20 DNF-SaS: never exceed display width*/
    width: -moz-fit-content;
    width: fit-content;
}

.blazored-modal.autowidthwithoutminwidth {
    width: -moz-fit-content;
    width: fit-content;
}

.blazored-modal.minwidth {
    width: min-content;
}

/* 2023-09-16 DNF-SaS: copied from https://github.com/Blazored/Modal/blob/main/src/Blazored.Modal/BlazoredModalInstance.razor.css */
.bm-header-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 2rem 0;
}

.bm-title-copy {
    margin-bottom: 0;
}

.bm-close-copy {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}
