﻿/*
    VibeCards Modals Styles
*/

/* Wrapper styles */
.vc-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overscroll-behavior: contain;
    overflow: hidden;
    z-index: 11000;
}

    .vc-modal-wrapper.backdrop:last-child {
        background-color: rgba(0, 0, 0, 0.5);
    }

/* Modal Container Styles */
.vc-modal {
    display: none;
    flex-direction: column;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-width: 100dvw;
    max-height: 100vh;
    max-height: 100dvh;
    margin: auto;
    background-color: #fff;
    border: 1px solid #eee;
}

.vc-modal-wrapper > .vc-modal {
    display: flex;
}

.vc-modal.rounded {
    border-radius: 10px;
}

.vc-modal.w-sm {
    width: 300px;
}
.vc-modal.w-md {
    width: 500px;
}
.vc-modal.w-lg {
    width: 800px;
}
.vc-modal.w-xl {
    width: 1000px;
}
.vc-modal.w-xxl {
    width: 1200px;
}
.vc-modal.w-full {
    width: 100vw;
    width: 100dvw;
}
.vc-modal.h-sm {
    height: 200px;
}
.vc-modal.h-md {
    height: 400px;
}
.vc-modal.h-lg {
    height: 600px;
}
.vc-modal.h-xl {
    height: 800px;
}
.vc-modal.h-xl-90 {
    height: 90%;
}
.vc-modal.h-full {
    height: 100vh;
    height: 100dvh;
}
.vc-modal.fullscreen {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
}
.vc-modal .dx-list.dx-list-with-search .dx-scrollable-wrapper {
    height: calc(100% - 50px);
}


/* Modal Content Styles */
.vc-modal-header {
    padding: 20px 40px;
}
    .vc-modal-header.with-border {
        border-bottom: 1px solid #eee;
    }

.vc-modal-body {
    flex-grow: 1;
    padding: 20px; /* If you need to remove it use a css class */
    overflow-x: hidden;
    overflow-y: auto;
}

    .vc-modal-body .dx-list-search .dx-texteditor-input {
        min-height: 40px;
    }
    .vc-modal-body .dx-list-item-content{
        padding: 5px;
    }
    .vc-modal-body .dx-list-item {
        border-top: 0px;
    }
    .vc-modal-footer {
        padding: 10px 20px 20px 20px;
    }
    .vc-modal-footer.with-border {
        border-top: 1px solid #eee;
    }


@media only screen and (max-width: 768px) {
    .vc-modal-header {
        padding: 8px 20px;
    }

    .vc-modal .m-size-16 {
        font-size: 16px !important;
    }

    .vc-modal .dx-list.dx-list-with-search .dx-scrollable-wrapper {
        padding-bottom: 60px;
    }

    .vc-modal.mobile-bottom {
        margin-bottom: 0;
    }

    .vc-modal.w-mobile-full {
        width: 100vw !important;
        width: 100dvw !important;
    }

    .vc-modal.h-mobile-full {
        height: 100vh !important;
        height: 100dvh !important;
    }

    .vc-modal.mobile-fullscreen {
        border-radius: 0 !important;
        width: 100vw !important;
        width: 100dvw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }
}