.ber-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.ber-modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}
.ber-modal.ber-fade .ber-modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}
@media (prefers-reduced-motion: reduce) {
    .ber-modal.ber-fade .ber-modal-dialog {
        transition: none;
    }
}
.ber-modal.ber-show .ber-modal-dialog {
    transform: none;
}
.ber-modal.ber-modal-static .ber-modal-dialog {
    transform: scale(1.02);
}

.ber-modal-dialog-scrollable {
    height: calc(100% - 1rem);
}
.ber-modal-dialog-scrollable .ber-modal-content {
    max-height: 100%;
    overflow: hidden;
}
.ber-modal-dialog-scrollable .ber-modal-body {
    overflow-y: auto;
}

.ber-modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.ber-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.ber-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}
.ber-modal-backdrop.ber-fade {
    opacity: 0;
}
.ber-modal-backdrop.ber-show {
    opacity: 0.5;
}

.ber-modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}
.ber-modal-header .ber-btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.ber-modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.ber-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.ber-modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}
.ber-modal-footer > * {
    margin: 0.25rem;
}

@media (min-width: 576px) {
    .ber-modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .ber-modal-dialog-scrollable {
        height: calc(100% - 3.5rem);
    }

    .ber-modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }

    .ber-modal-sm {
        max-width: 300px;
    }
}
@media (min-width: 992px) {
    .ber-modal-lg,
    .ber-modal-xl {
        max-width: 800px;
    }
}
@media (min-width: 1200px) {
    .ber-modal-xl {
        max-width: 1140px;
    }
}
.ber-modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}
.ber-modal-fullscreen .ber-modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}
.ber-modal-fullscreen .ber-modal-header {
    border-radius: 0;
}
.ber-modal-fullscreen .ber-modal-body {
    overflow-y: auto;
}
.ber-modal-fullscreen .ber-modal-footer {
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .ber-modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ber-modal-fullscreen-sm-down .ber-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ber-modal-fullscreen-sm-down .ber-modal-header {
        border-radius: 0;
    }
    .ber-modal-fullscreen-sm-down .ber-modal-body {
        overflow-y: auto;
    }
    .ber-modal-fullscreen-sm-down .ber-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 767.98px) {
    .ber-modal-fullscreen-md-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ber-modal-fullscreen-md-down .ber-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ber-modal-fullscreen-md-down .ber-modal-header {
        border-radius: 0;
    }
    .ber-modal-fullscreen-md-down .ber-modal-body {
        overflow-y: auto;
    }
    .ber-modal-fullscreen-md-down .ber-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 991.98px) {
    .ber-modal-fullscreen-lg-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ber-modal-fullscreen-lg-down .ber-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ber-modal-fullscreen-lg-down .ber-modal-header {
        border-radius: 0;
    }
    .ber-modal-fullscreen-lg-down .ber-modal-body {
        overflow-y: auto;
    }
    .ber-modal-fullscreen-lg-down .ber-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 1199.98px) {
    .ber-modal-fullscreen-xl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ber-modal-fullscreen-xl-down .ber-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ber-modal-fullscreen-xl-down .ber-modal-header {
        border-radius: 0;
    }
    .ber-modal-fullscreen-xl-down .ber-modal-body {
        overflow-y: auto;
    }
    .ber-modal-fullscreen-xl-down .ber-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 1399.98px) {
    .ber-modal-fullscreen-xxl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ber-modal-fullscreen-xxl-down .ber-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ber-modal-fullscreen-xxl-down .ber-modal-header {
        border-radius: 0;
    }
    .ber-modal-fullscreen-xxl-down .ber-modal-body {
        overflow-y: auto;
    }
    .ber-modal-fullscreen-xxl-down .ber-modal-footer {
        border-radius: 0;
    }
}

#bertha_backend_canvas .bertha-template-description-video, .ber-offcanvas-body .bertha-template-description-video {
    position: relative; 
    padding-bottom: 56.25%; 
    padding-top: 30px; 
    height: 0; 
    overflow: hidden;
}
#bertha_backend_canvas .bertha-template-description-video iframe, .ber-offcanvas-body .bertha-template-description-video iframe {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}
#bertha_backend_canvas .bertha-template-video-container, .ber-offcanvas-body .bertha-template-video-container {
    margin-top: 25px;
}
#bertha_backend_canvas .bertha-template-video-container label, .ber-offcanvas-body .bertha-template-video-container label {
    margin-bottom: 5px;
}