.bd-modal-wrapper {
    position: absolute;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
}

.bd-backdrop {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, .6);
    position: absolute;
}

.bd-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 33%;
}

.bd-modal-inner {
    background: var(--background-base-low);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: bd-modal-open ease-out;
    animation-duration: 300ms;
}

.bd-modal-wrapper.closing .bd-modal-inner {
    animation: bd-modal-close ease-in;
    animation-duration: 300ms;
}

.bd-modal .footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    background: var(--background-base-lower);
}

.bd-modal-body {
    padding: 20px 15px;
    padding-top: 0;
}

.bd-modal .header {
    padding: 15px;
}

.bd-modal .title {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
}

.bd-modal-body {
    color: #fff;
}

.bd-modal .footer .bd-button {
    min-width: 80px;
    height: 38px;
}

@keyframes bd-modal-close {
    to {transform: scale(0.7);}
}

@keyframes bd-modal-open {
    from {transform: scale(0.7);}
}

.bd-modal-root {
    display: flex;
    flex-direction: column;
    background-color: var(--modal-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-normal);
    margin: 0 auto;
    pointer-events: all;
    position: relative;
    max-height: 100%;
}

.bd-close-button {
    height: 26px;
    padding: 4px;
    transition: opacity 0.2s ease-in-out;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 3px;
    color: var(--interactive-normal);
    box-sizing: content-box;
}

.bd-close-button:hover {
    opacity: 1;
    color: var(--interactive-hover);
}

.bd-modal-small {
    width: 440px;
    max-height: 720px;
    min-height: 200px;
}

.bd-modal-standard {
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: 490px;
    max-height: min(800px, 60vh);
}

.bd-modal-medium {
    width: 600px;
    max-height: min(800px, 60vh);
    min-height: 400px;
}

.bd-modal-large {
    width: 800px;
    max-height: min(960px, 70vh);
    min-height: 400px;
}

.bd-addon-modal {
    min-height: 0;
}

.bd-modal-header,
.bd-modal-footer {
    position: relative;
    flex: 0 0 auto;
    padding: 16px;
    z-index: 1;
    overflow-x: hidden;
}

.bd-modal-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: box-shadow 0.1s ease-out;
    word-wrap: break-word;
}

.bd-modal-footer {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background-color: var(--modal-footer-background);
    overflow: hidden;
}

.bd-modal-content {
    position: relative;
    z-index: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding-left: 16px;
    /* padding-right: 16px; */
    overflow-x: hidden;
    font-size: 16px;
    line-height: 20px;
    overflow: hidden scroll;
    padding-right: 8px;
    color: var(--text-default);
}

.bd-modal-backdrop {
    position: fixed;
    top: 0;
    right: var(--devtools-sidebar-width,0);
    bottom: 0;
    left: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    pointer-events: all;
}

#bd-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    right: var(--devtools-sidebar-width,0);
    bottom: 0;
    background: none!important;
    pointer-events: none;
    z-index: 1002;
}

.bd-modal-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.bd-modal-layer {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 40px;
}