﻿.modalCustom {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    display: none;
}

    .modalCustom.modal-show {
        display: block;
    }

    .modalCustom .modal-background {
        background: rgba(135, 140, 147, 0.5);
        width: 100%;
        height: 100%;
    }

    .modalCustom .modalCustom-form {
        left: 50%!important;
        transform: translate(-50%, -50px);
        min-width: 480px;
        height: auto;
        top: 15%;
        position: absolute;
        background: #FFF;
        border-radius: 8px;
        font-family: 'muli',sans-serif;
        color: var(--theme-mode-text);
        background: var(--theme-mode-bs-400);
        box-shadow: 0 4px 8px 0 rgba(16, 25, 40, 0.1);
        border: 1px solid #d5d7da;
    }

        .modalCustom .modalCustom-form .modalCustom-header {
            border-bottom: 1px solid #e7e8e9;
            height: 64px;
            display: flex;
            padding: 16px 24px 16px 24px;
        }

            .modalCustom .modalCustom-form .modalCustom-header .modalCustom-title {
                width: calc(100% - 32px);
                font-weight: 700;
                font-size: 19px;
                display: flex;
                justify-content: space-between;
            }

            .modalCustom .modalCustom-form .modalCustom-header .modalCustom-closeModal {
                height: 100%;
                width: 32px
            }

                .modalCustom .modalCustom-form .modalCustom-header .modalCustom-closeModal .btn-close-customModal {
                    width: 100%;
                    height: 100%;
                    font-size: 30px;
                    line-height: 0;
                    border-radius: 4px;
                    text-align: center;
                    padding-top: 1px;
                }

                    .modalCustom .modalCustom-form .modalCustom-header .modalCustom-closeModal .btn-close-customModal:hover {
                        opacity: 0.6;
                        cursor: pointer;
                        background-color: #f4f2f2;
                    }

        .modalCustom .modalCustom-form .modalCustom-body {
            padding: 16px 24px 16px 24px;
            height: auto;
            max-height: calc(100svh - 230px);
            overflow: auto;
        }

        .modalCustom .modalCustom-form .modalCustom-footer {
            border-top: 1px solid #e7e8e9;
            height: 80px;
        }

            .modalCustom .modalCustom-form .modalCustom-footer .modalCustom-button-area {
                padding: 16px 24px 16px 24px;
                display: grid;
                grid-template-columns: repeat(auto-fit, 120px);
                align-items: stretch;
                align-content: stretch;
                grid-gap: 10px;
                justify-content: end;
            }

                .modalCustom .modalCustom-form .modalCustom-footer .modalCustom-button-area .modalCustom-button {
                    display: flex;
                    flex-grow: 1;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    border: 1px solid transparent;
                    border-radius: 4px;
                    position: relative;
                    transition: background 300ms, border 300ms, color 300ms;
                    box-sizing: border-box;
                    padding: 11px 15px;
                    min-height: 48px;
                    min-width: 120px;
                    font-size: 16px;
                }

                    .modalCustom .modalCustom-form .modalCustom-footer .modalCustom-button-area .modalCustom-button:hover {
                        cursor: pointer;
                    }

        .modalCustom .modalCustom-form .modalCustom-preBody {
            padding: 16px 24px 16px 24px;
            height: auto;
            border-bottom: 1px solid #e7e8e9;
        }

            .modalCustom .modalCustom-form .modalCustom-preBody input:focus {
                box-shadow: none;
                border: none !important;
            }

        .modalCustom .modalCustom-form .modalCustom-afterBody {
            padding: 16px 24px 16px 24px;
            height: auto;
            border-top: 1px solid #e7e8e9;
        }

            .modalCustom .modalCustom-form .modalCustom-afterBody input:focus {
                box-shadow: none;
                border: none !important;
            }

@media (pointer: fine) {
    .modalCustom-body::-webkit-scrollbar {
        max-width: 5px;
    }
}
