﻿.modal {
    --bs-modal-header-padding: 1.5em 2em;
    --bs-modal-padding: 1.25em 2em 2.5em;
    --bs-modal-border-radius: 1em;
    --bs-modal-footer-gap: 0;
    height: unset;
}

.modal-content {
    border: none;
    /*height:100%;*/
}

.modal-title {
    font-size: 1.5em;
}

.split-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    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);
    padding: 1.25em 2em 1.5em;
    column-gap: 1em;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.remove-top-border-and-padding {
    border-top: 0;
    padding: 0;
}

.btn-close {
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
    --size: 1.5em;
    width: var(--size);
    height: var(--size);
    background-image: url("../../img/close.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0.25em;
    padding: 0 !important;
    margin: 0 !important;
}

.btn-close:focus {
    --bs-btn-close-focus-shadow: var(--box-shadow);
}

img.close {
    width: 1.5em;
    cursor: pointer;
}

.modal-header {
    padding: 1.25em 2.375em 1.25em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-grey2);
}

.modal-header-dark {
    background-color: var(--light-grey2);
}

.modal-body {
    padding: 1.25em 2em 1.875em;
    display: flex;
    flex-direction:column;
    row-gap: 1em;
    height: auto;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25em 2em 1.25em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 1em;
    border-top: 1px solid var(--light-grey2);
}

.overflow-initial {
    overflow: initial;
}

body.modal-open {
    height: 100vh;
    overflow-y: hidden;
    /*padding-right: 1em;*/
}

.modal-body.big {
    max-height: 80vh;
    height: 50vh;
}


@media (min-width: 992px) {
    .modal-lg {
        --bs-modal-width: 720px;
    }
}