/* df.WebSquireEditor (cWebSquireEditor.pkg) */
.WebSquire_Box {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 120px;
    height: 300px;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
}

.WebCon_Focus .WebSquire_Box {
    border-color: #4285f4;
}

.WebSquire_Toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    padding: 3px 4px;
    border-bottom: 1px solid #e0e0e0;
    background: #f7f7f7;
    flex: 0 0 auto;
}

.WebSquire_Group {
    display: inline-flex;
    gap: 1px;
}

.WebSquire_Group + .WebSquire_Group {
    padding-left: 6px;
    border-left: 1px solid #dcdcdc;
}

.WebSquire_Btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.WebSquire_Btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.WebSquire_Btn:hover:not(:disabled) {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.WebSquire_Btn.WebSquire_Active {
    background: #dbe8ff;
    border-color: #6c9be8;
}

.WebSquire_Btn:disabled {
    opacity: .35;
    cursor: default;
}

.WebSquire_Frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    margin: 0 auto;
    background: #fff;
}

.WebSquire_Phone .WebSquire_Frame {
    width: 375px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.WebSquire_ReadOnly .WebSquire_Toolbar {
    display: none;
}

.WebSquire_Box {
    position: relative;
}

.WebSquire_Images {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    background: #fff;
    outline: none;
}

.WebSquire_ImagesHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 4px 3px 10px;
    border-bottom: 1px solid #e0e0e0;
    background: #f7f7f7;
    font-weight: bold;
}

.WebSquire_ImagesGrid {
    flex: 1 1 auto;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 8px;
    align-content: start;
}

.WebSquire_ImagesItem {
    height: 110px;
    padding: 4px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #fafafa;
    cursor: pointer;
}

.WebSquire_ImagesItem:hover,
.WebSquire_ImagesItem:focus {
    border-color: #4285f4;
    background: #eef4ff;
}

.WebSquire_ImagesItem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.WebSquire_ImagesInfo {
    grid-column: 1 / -1;
    color: #666;
}
