
.custom-motif-open .custom-motif-overlay {
    display: flex;
}

body.custom-motif-open {
    overflow: hidden;
}

body.admin-body.custom-motif-open {
    overflow: auto;
}

.custom-motif-overlay {
    display: none;
    content: ' ';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2b2c2ba1;
    z-index: 999;
    align-content: center;
    justify-content: center;
    align-items: center;
    /* max-height: 100vh; */
    /* overflow-y: scroll; */
}
.custom-motif-overlay-close {
    position:absolute;
    top: 5px;
    right: 7px;
    font-size: 1.5em;
    color: #999;
    /* line-height: 1em; */
    cursor: pointer;
}
.custom-motif-overlay-content {
    background: #ffffff;
    padding: 2em 2em 3em;
    width: 600px;
    max-width: 100%;
    overflow: auto;
    max-height: 92vh;
    position: relative;
}
.custom-motif-overlay-content .detailBtn {
    margin:0;
}
#dvPreview {
    position: relative;
}

#previewBackground {
    
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

#imgText {
    outline: dashed 1px #fff;
    width: 100%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    position: relative;
    z-index: 1;
    display:block;
}
#previewBackgroundContainer {
    position: absolute;
}
#previewBackgroundStitches {
    background:url(https://assets.needlepaint.com/images/stitches.png);
    content:" ";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    mix-blend-mode: multiply;
    background-position: top left;
    /* background-repeat: no-repeat; */
}

.admin-content #previewBackgroundStitches {
    display:none;
}
#dvPreviewArea::before {
    content: " ";
    position: absolute;
    z-index: 3;
    top: 2em;
    left: 2em;
    bottom: 2em;
    right: 2em;
    border: DASHED 1px;
}

#dvCustomMotif #dvPreviewArea::before {
    border: none;
}

#dvPreviewArea {
    padding: 2em;
    border: solid 1px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.75rem;
}

#txtJsonResponse {
    display: none;
}

.custom-motif-overlay-content .form-item textarea {
    width: 100%;
    resize: none;
    margin-top: 5px;
    border: solid 1px #ccc;
    line-height: 1.5em;
    text-align: center;
    margin-bottom: 0;
    /* height: min-content; */
    padding: 10px;
    /* field-sizing: content; */
}


/*font selection for custom motif*/
#ddlFonts {
    display: none;
}
.font-dropdown {
    width: 100%;
    padding: 12px;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

    .font-dropdown:focus {
        outline: none;
        border-color: #007bff;
    }

.selection-container {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    gap: 1em;
}

.font-selection {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* max-width: 250px; */
    position: relative;
}

.font-dropdown-select {
    /* width: 100%; */
    /* height: 100%; */
    /* padding: 15px; */
    /* border: none; */
    /* background-color: white; */
    /* font-size: 16px; */
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align-last: center;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

    .font-dropdown-select:focus {
        outline: none;
    }

.fontSize-selection {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 15px; */
    border: 1px solid #ccc;
    /* border-left: none; */
    border-radius: 4px;
}

.fontSize-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    width: 40px;
    /* height: 40px; */
    transition: color 0.2s, opacity 0.2s;
}

    .fontSize-btn:hover:not(:disabled) {
        color: #007bff;
    }

    .fontSize-btn:disabled {
        opacity: 0.3;
        cursor: unset;
    }

.fontSize-label {
    /* font-size: 16px; */
    color: #333;
}

.toggle-text-options:link {
    text-decoration:underline;
}
.font-selection {
    position: relative;
    width: 220px;
    font: 14px/1 Arial, sans-serif;
}

.font-select-btn {
    width: 100%;
    padding: 4px 6px;
    text-align: left;
    cursor: pointer;
    border: 1px solid #999;
    background: #fff;
    display: flex;
    overflow: hidden;
    height: 100%;
    align-items: center;
}

.font-select-btn::after {
    content:"˅";
    position:absolute;
    right: 10px;
    font-weight:bold;
    transform:scaleX(2);
    font-size:.8em;
}

    .font-select-btn img {
        height: 16px;
    }

.font-select-list {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #aaa;
    background: #fff;
    display: none;
}

.font-select-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    cursor: pointer;
}

    .font-select-item:hover,
    .font-select-item[aria-selected="true"] {
        background: #e6f0ff;
    }

    .font-select-item img {
        height: 16px;
    }

#lblKitCustomizationRequired {
    display:inline;
    font-weight:normal;
}