/*
 * 	BNE Blocks: Modal
 *
 * 	@author		Kerry Kline
 * 	@copyright	Copyright (c) Kerry Kline
 * 	@link		http://www.bnecreative.com
 *
 * 	@updated:	June 23, 2023
 *
*/


/* =============================================== */
/* BNE Block: Modals
/* =============================================== */


.wp-block-bne-modal {
    background-color: #fafafa;
    padding: 1rem;
    margin-right: 0;
    margin-left: 0;
    border: .2rem solid #f7f7f9;
    position: relative;	
}

.wp-block-bne-modal > .components-placeholder {
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.wp-block-bne-modal .trigger-class-notice {
    position: absolute;
    top: 0;
    right: 0;
    color: #999;
    background: #fff;
    padding: 0.5em 1.5em;
    border: 2px solid #eee;
}

.wp-block-bne-modal .modal {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    display: block;
    overflow: hidden;
    outline: 0;
}

.wp-block-bne-modal .modal-dialog {
    left: auto;
    margin-right: auto;
    margin-left: auto;
    max-width: 500px;
    margin: 1.75rem auto;
    position: relative;
    width: auto;
    pointer-events: none;
}

.wp-block-bne-modal .modal-dialog.modal-sm { max-width: 300px; }
.wp-block-bne-modal .modal-dialog.modal-md { max-width: 500px; }
.wp-block-bne-modal .modal-dialog.modal-lg { max-width: 800px; }

.wp-block-bne-modal .modal-content {
    position: relative;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;
}

.wp-block-bne-modal .modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
}

.wp-block-bne-modal .modal-title {
    margin: 0;
    line-height: 1.5;
}

.wp-block-bne-modal .modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background: transparent;
    border: none;
}
.wp-block-bne-modal .modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}