:root {
	--bs-border-radius-lg: 0.5rem;
    --bs-border-width: 1px;
	--bs-modal-padding: 1rem;
	--bs-modal-width: 500px;
	--bs-modal-footer-gap: 0.5rem;
	--bs-modal-footer-bg: ;
	--bs-modal-footer-border-color: #dee2e6;
	--bs-modal-footer-border-width: var(--bs-border-width);
	--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));
}

dialog.dialog-modal {
	display: flex;
	flex-direction: column;
	border: none;
	border-radius: 8px;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	background: white;
	width: 100%;
	overflow: hidden;
    max-height: calc(100% - 192px);
}
dialog.dialog-modal:focus {
	outline: none;
}
/* Header */
dialog.dialog-modal .dialog-header {
	flex: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #0178D6;
	color: rgb(227, 227, 227);
	padding: 0.5em 1em;
	border-bottom: 1px solid #ddd;
	font-family: sans-serif;
	font-size: 1em;
}
dialog.dialog-modal .dialog-content {
	flex: 1;         
	overflow: auto;
	padding: 0 16px;
	margin: 16px 0;
	position: relative;
}
dialog.dialog-modal .dialog-header .dialog-close {
	color: rgb(227, 227, 227);
	background: none;
	border: none;
	font-size: 2em;
	line-height: 1;
	cursor: pointer;
}
dialog.dialog-modal .dialog-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);
    background-color: var(--bs-modal-footer-bg);
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    border-bottom-right-radius: var(--bs-modal-inner-border-radius);
    border-bottom-left-radius: var(--bs-modal-inner-border-radius);
}
dialog.dialog-modal .dialog-footer {
	background-color: #f2f2f2;
	display: none;
}
dialog.dialog-modal .dialog-footer > * {
    margin: calc(var(--bs-modal-footer-gap) * .5);
}
dialog.dialog-modal .dialog-footer:has(> *) {
	display: flex;
}

@media (min-width: 576px) {
    dialog.dialog-modal {
        max-width: calc(var(--bs-modal-width) - 64px);
    }
}


