.lm-modal {
    position: fixed;
    min-width: 200px;
    min-height: 200px;
    border-radius: 5px;
    z-index: 15;
    background-color: var(--lm-background-color-input, #fff);
    box-sizing: border-box;
    box-shadow: 0 0 12px rgb(0 0 0 / 22%);
    opacity: 1;
    border: 1px solid var(--lm-border-color, #ccc);
    outline: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, top 0.4s ease, left 0.4s ease, width 0.4s ease, height 0.4s ease;
    color: var(--lm-font-color, #000);
}

.lm-modal[closed="true"] {
    display: none;
}

.lm-modal.action {
    user-select: none;
}

.lm-modal-title {
    width: 100%;
    border-bottom: 1px solid  var(--lm-border-color, #ccc);
    padding: 12px;
    box-sizing: border-box;
    font-size: 1.3em;
    line-height: 24px;
    user-select: none;
    display: flex;
    border-radius: 5px 5px 0 0;
}

.lm-modal-focus {
    z-index: 999;
}

.lm-modal > .lm-modal-title {
    display: none;
}

.lm-modal > .lm-modal-title[data-icon],
.lm-modal > .lm-modal-title[data-title],
.lm-modal[closable="true"] > .lm-modal-title,
.lm-modal[minimizable="true"] > .lm-modal-title {
    display: inherit;
}

.lm-modal > .lm-modal-title > div:nth-child(2) {
    flex: 1;
}

.lm-modal > .lm-modal-title > .lm-modal-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    cursor: pointer;
    font-family: "Material Symbols Outlined", "Material Icons";
    text-align: center;
    margin-right: 8px;
    display: none;
}

.lm-modal > .lm-modal-title > .lm-modal-icon:not(:empty) {
    display: inherit;
}

.lm-modal > .lm-modal-title > .lm-modal-close::before {
    content: 'close';
}

.lm-modal > .lm-modal-title > .lm-modal-minimize::before {
    content: '\2500';
}

.lm-modal[minimized="true"] > .lm-modal-title > .lm-modal-minimize::before {
    content: '\e5d7';
}

.lm-modal[minimizable="true"] > .lm-modal-title > .lm-modal-minimize {
    display: block;
}

.lm-modal[closable="true"] > .lm-modal-title > .lm-modal-close {
    margin-right: 0;
    display: block;
}

.lm-modal.hide {
    opacity: 0;
}

.lm-modal[animation="false"] {
    transition: initial;
}

.lm-modal.action {
    transition: initial;
}

.lm-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000020;
    z-index: 15;
}

.lm-modal > div:last-child {
    width: 100%;
    height: 100%;
}

.lm-modal[overflow="true"] > div:last-child {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.lm-modal > div:last-child::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.lm-modal > div:last-child::-webkit-scrollbar-track {
    background: #eee;
}

.lm-modal > div:last-child::-webkit-scrollbar-thumb {
    background: #888;
}

.lm-modal[position="absolute"] {
    position: absolute;
    transition: initial;
}

.lm-modal[position="left"] {
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh !important;
    border-width: 0;
    border-radius: initial;
}

.lm-modal[position="right"] {
    top: 0;
    left: auto;
    right: 0;
    width: 280px;
    height: 100vh !important;
    border-width: 0;
    border-radius: initial;
}

.lm-modal[position="bottom"] {
    top: initial;
    left: 0;
    bottom: 0;
    width: 100vw !important;
    height: 280px;
    border-width: 0;
    border-radius: initial;
}

.lm-modal[minimized="true"] {
    position: fixed;
    width: 200px !important;
    height: 45px !important;
    min-width: initial;
    min-height: initial;
    overflow: hidden;
}
