.font-size-control {
    margin-bottom: 20px;
}

.font-size-control label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.font-size-slider {
    height: 9px;
    background: #f7f8fb;
    border-radius: 4px;
    border: 1px solid #ccc;
    position: relative;
}

.font-size-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #3f51b5;
    border-radius: 4px;
    top: -5px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.font-size-slider .ui-slider-handle:hover {
    background: #f5f5f5;
    border-color: #303f9f;
}


.design_constructor {
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #EAEDF7;
}

.konva-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.konva-actions .edit-btn,
.modal-dialog .button,
.design_constructor .button {
    display: flex;
    align-items: center;
    padding-left: 1px;
    align-content: center;
    padding-right: 2px;
    color: #303d6e;
    background: #ffffff !important;
    cursor: pointer;
    height: 38px;
    font-size: 12px;
    background: none;
    font-weight: 700;
    line-height: 100%;
    border-color: #303c6f;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.konva-actions .edit-btn:hover,
.modal-dialog .button:hover,
.design_constructor .button:hover {
    opacity: 1;
    background: #303c6f !important;
    color: #ffffff;
}

.konva-actions .edit-btn .icon,
.modal-dialog .icon,
.design_constructor .icon {
    display: flex;
    align-items: center;
    align-content: center;
    color: #FFF;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1px;
}

.konva-actions .edit-btn .text,
.modal-dialog .text,
.design_constructor .text {
    text-align: center;
    color: #303c6f;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}

.konva-actions .edit-btn .text:hover,
.design_constructor button .text:hover {
    color: #ffffff;
    transition: color 0.3s;
    background: #303d6e !important;
}

.konva-actions .edit-btn .text,
.modal-dialog button .text,
.design_constructor button .text {
    color: #303c6f;
}

.modal-dialog .file{
    width: 100%;
    height: 150px;
    display: inline-block;
    position: relative;
}

.modal-dialog .file input[type="file"],
.design_constructor .file input[type="file"] {
    display: none !important;
}

.modal-dialog .file_block,
.design_constructor .file_block {
    width: 100%;
    cursor: pointer;
    height: 100%;
    position: relative;
    background: #FFF;
    border-color: #303c6f;
    border-style: dashed;
    border-radius: 10px;
}

.modal-dialog .file_block .icon,
.design_constructor .file_block .icon {
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) translateY(-50%);
}

.modal-dialog .file_block .title_block,
.design_constructor .file_block .title_block {
    top: 50%;
    left: 50%;
    color: #303c6f;
    position: absolute;
    font-size: 10px;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.modal-dialog .file_block .title_block .title,
.design_constructor .file_block .title_block .title {
    color: #303c6f;
    font-size: 10px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.modal-dialog .file_block .text
.design_constructor .file_block .text {
    left: 50%;
    color: #A7AAB7;
    bottom: 10%;
    position: absolute;
    font-size: 10px;
    transform: translateX(-50%);
    letter-spacing: 1.2px;
}

.modal-dialog .texts_void {
    margin-top: 30px;
}

.modal-dialog .texts_void textarea {
    font: inherit;
    color: #000000;
    width: 100%;
    display: block;
    background: none;
    height: auto;
    resize: none;
    padding: 18.5px 14px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.23);
}

.modal-dialog .texts_void textarea:hover,
.modal-dialog .texts_void textarea:focus {
    outline: 0;
    border: 2px solid #303c6f;
}

.modal-dialog .texts_void textarea::placeholder {
    color: currentColor;
    opacity: 0.42;
    transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.konva-actions .delete-btn:hover,
.modal-dialog .cancel:hover {
    opacity: 1;
}

.konva-actions .delete-btn,
.modal-dialog .cancel {
    color: #303c6f;
    cursor: pointer;
    height: 38px;
    display: inline-block;
    padding: 0 30px;
    font-size: 14px;
    background: none;
    font-weight: 500;
    line-height: 100%;
    border-color: #303c6f;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    letter-spacing: 0px;
}
.konva-actions .delete-btn:hover,
.konva-actions .next-btn:hover,
.konva-actions .save-btn:hover,
.modal-dialog .next-btn:hover,
.modal-dialog .save-btn:hover,
.modal-dialog .add:hover {
    opacity: 1;
    color: #FFF;
    background: #303c6f;
}
.konva-actions .delete-btn,
.konva-actions .next-btn,
.konva-actions .save-btn,
.modal-dialog .next-btn,
.modal-dialog .save-btn,
.modal-dialog .add {
    color: #303c6f;
    background: #FFF;
    cursor: pointer;
    height: 38px;
    display: inline-block;
    padding: 0 30px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    border-color: #303c6f;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    letter-spacing: 0;
}

.modal-dialog button:disabled {
    opacity: 1;
    cursor: default !important;
}


#upload-status {
    margin-top: 10px;
    padding: 5px;
}

.upload-progress {
    height: 5px;
    background-color: #f3f3f3;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

.upload-success {
    color: green;
}

.upload-error {
    color: red;
}

#uploaded-image-container {
    margin-top: 10px;
    max-width: 300px;
}

#uploaded-image-container img {
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 3px;
}


.image-tabs-container {
    width: 100%;
    position: relative;
}

.image-tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.image-tab-link {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-tab-link.active {
    background-color: #555;
}

.image-tab-content {
    display: none;
    width: 100%;
}

.image-tab-content.active {
    display: block;
}

.image-tab-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-tabs-content {
    position: relative;
}

#container_konva {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.konva-rotation-control {
    display: flex;
    align-items: center;
}

.rotate-text-right-btn,
.rotate-text-left-btn,
.rotate-right-btn,
.rotate-left-btn {
    color: #303c6f;
    cursor: pointer;
    height: 46px;
    width: 46px;
    background: none;
    font-weight: 700;
    line-height: 100%;
    border-color: #303c6f;
    border-style: solid;
    border-width: 2px;
    border-radius: 50px;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.rotate-text-right-btn svg,
.rotate-text-left-btn svg,
.rotate-right-btn svg,
.rotate-left-btn svg {
    width: 24px;
    height: 24px;
}

.konva-alignment {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.center-text-horizontal-btn,
.center-text-vertical-btn,
.center-vertical-btn,
.center-horizontal-btn {
    color: #FF750E;
    cursor: pointer;
    height: 46px;
    width: 46px;
    font-size: 12px;
    background: none;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1px;
    border: 0;
}

.center-text-horizontal-btn svg,
.center-text-vertical-btn svg,
.center-vertical-btn svg,
.center-horizontal-btn svg {
    width: 39px;
    height: 39px;
}


.design_constructor_form .form_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.buttons_void {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.konva-controls{
    width: 100%;
}
.konva-controls > div,
.text-formatting-group > div {
    margin-bottom: 16px;
}

.text-color-control {
    display: flex;
    align-items: center;
}

.text-formatting-group > div.d-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.konva-image-controls label,
.text-formatting-group label {
    font-size: 14px;
    color: #535D67;
    margin-right: 15px;
}


.thumbnails .general-image span.thumbnail.imagesdesign_block {

    cursor: unset !important;
}

.konvajs-content {
    pointer-events: auto;
}

.icon_modal {
    /* background-image: url("data:image/svg+xml,%3Csvg width='25' height='15' viewBox='0 0 25 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24.3215 0.796696V0H20.8958V0.796696H22.2103V14.2033H20.8958V15H24.3215V14.2033H23.007V0.796696H24.3215Z' fill='%23333E48'%3E%3C/path%3E%3Cpath d='M0.147812 11.7574L4.15725 2.70311C4.43678 2.07876 4.94601 1.70068 5.63637 1.70068H5.78425C6.47419 1.70068 6.96732 2.07869 7.24657 2.70311L11.2562 11.7574C11.3383 11.9382 11.3877 12.1024 11.3877 12.2668C11.3877 12.9405 10.8618 13.4828 10.1881 13.4828C9.59654 13.4828 9.20209 13.1378 8.97211 12.6118L8.19987 10.8044H3.13866L2.33345 12.6941C2.11978 13.187 1.69265 13.4828 1.16676 13.4828C0.509225 13.4828 0 12.957 0 12.2997C0 12.1189 0.0656464 11.9382 0.147812 11.7574ZM7.26316 8.56953L5.66912 4.77362L4.07523 8.56953H7.26316Z' fill='%231E252B'%3E%3C/path%3E%3Cpath d='M12.5867 10.8538V10.8209C12.5867 8.89836 14.0492 8.01099 16.1361 8.01099C17.0235 8.01099 17.6645 8.15888 18.2889 8.37255V8.22467C18.2889 7.18934 17.648 6.61433 16.3991 6.61433C15.709 6.61433 15.1502 6.71287 14.6737 6.86082C14.5259 6.91009 14.4272 6.92647 14.312 6.92647C13.7371 6.92647 13.277 6.48282 13.277 5.90773C13.277 5.46401 13.5562 5.08608 13.9505 4.93812C14.7393 4.64236 15.5939 4.47803 16.7606 4.47803C18.1244 4.47803 19.1104 4.83951 19.7349 5.46394C20.3922 6.12119 20.6879 7.0908 20.6879 8.27394V12.2834C20.6879 12.9572 20.1457 13.483 19.4719 13.483C18.7489 13.483 18.2724 12.9736 18.2724 12.4477V12.4313C17.6644 13.105 16.8262 13.5486 15.6103 13.5486C13.9505 13.5488 12.5867 12.5958 12.5867 10.8538ZM18.3216 10.2787V9.83501C17.8944 9.63785 17.3357 9.50635 16.7277 9.50635C15.6595 9.50635 15.0023 9.93362 15.0023 10.7223V10.7552C15.0023 11.429 15.561 11.8233 16.3661 11.8233C17.5328 11.8234 18.3216 11.1825 18.3216 10.2787Z' fill='%231E252B'%3E%3C/path%3E%3C/svg%3E"); */
    margin-right: -25px;
    width: 25px;
    height: 15px;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
}


@media (min-width: 768px) {
    #modaledittext .modal-dialog,
    #modaladdtext .modal-dialog {
        width: 800px;
    }
}

.font-family-control,
.text-color-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.font-family-select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.font-family-select:hover {
    border-color: #888;
    cursor: pointer;
}
.font-family-dropdown {
    position: relative;
    width: 100%;
}

.font-family-selected {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 200px;
}
.font-family-selected .dropdown-arrow{
    margin-left: 5px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Crect width='16' height='16' fill='url(%23pattern0_17_491)'/%3E%3Cdefs%3E%3Cpattern id='pattern0_17_491' patternContentUnits='objectBoundingBox' width='1' height='1'%3E%3Cuse xlink:href='%23image0_17_491' transform='translate(-0.0238095) scale(0.047619)'/%3E%3C/pattern%3E%3Cimage id='image0_17_491' width='22' height='21' preserveAspectRatio='none' xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAVCAIAAADNQonCAAABIElEQVQ4Ee2SQWuDMBTH+8nL2gZtB2XQXXSXSAd26CjoTuJHyMngyQ4vnoRoFQQfAc0OtraOmkt72GG55CXv5fd/+fMm4u41uZsg/hEXDx/qRVmWjGUAcOGfI845Y1me5+eLwX7qgjHm+75pmmEY1nV9XQIAh8P3bvfhOG6aptepLj4hqqryPG+1etb1N0JITwEASinGhqKo+/2+KIpRRNu2SZJYlo2Qomk6pRQAOOdRFGFszOeL7fY9juOmaUYRQoieoqpLTdMJIUEQYGwgpEjeCzGczo7iul+qulyvXzabV4QUy7LH9Ade9O01TdP9aDZbTKdPcv3bCCFER3Ec17Y/5fqjiI5yPBZZlt30r29ZhvhVJD8+dMDlUpLs3+jiB9mIMtOp02UNAAAAAElFTkSuQmCC'/%3E%3C/defs%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center right;
    height: 34px;
    width: 34px;

}

.font-family-selected:hover {
    border-color: #888;
}

.font-family-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background-color: #fff;
    overflow: hidden;
    z-index: 1000;
}
.font-family-list li {
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.font-family-list li.active,
.font-family-list li:hover {
    background-color: #f0f0f0;
}

.text-color-input {
    width: 40px;
    height: 32px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.text-color-input:hover {
    border-color: #888;
}


.design_constructor {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #EAEDF7;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dc_button {
    font-size: 13px;
    margin: 0 20px 0 0px;
}
.konva-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.konva-controls label {
    font-size: 14px;
    font-weight: 500;
}
.konva-actions .edit-btn,
.modal-dialog .button,
.design_constructor .button {
    display: flex;
    align-items: center;
    padding-left: 1px;
    align-content: center;
    padding-right: 2px;
    color: #303d6e;
    background: #ffffff !important;
    cursor: pointer;
    height: 42px;
    font-size: 12px;
    background: none;
    font-weight: 700;
    line-height: 100%;
    border-color: #303c6f;
    border-style: solid;
    border-width: 1px;
    border-radius: 7px;
    letter-spacing: 0px;
}

.konva-actions .edit-btn:hover,
.modal-dialog .button:hover,
.design_constructor .button:hover {
    opacity: 1;
    background: #303c6f !important;
    color: #ffffff;
}

.konva-actions .edit-btn .icon,
.modal-dialog .icon,
.design_constructor .icon {
    display: flex;
    align-items: center;
    align-content: center;
    color: #FFF;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1px;
}

.konva-actions .edit-btn .text,
.modal-dialog .text,
.design_constructor .text {
    text-align: center;
    color: #303c6f;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}

.konva-actions .edit-btn .text:hover, .design_constructor button .text:hover {
    color: #ffffff;
    transition: color 0.3s;
    background: #303d6e !important;
}

.modal-dialog .image-block {
    padding: 0!important;
    border: 0 !important;
}
#product.row-flex .options {
   display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
#product.row-flex .options .form-group{
    flex:0 0 100%;
}
.form-group-14{
    flex:0 0 calc(50% - 10px)!important;
}
.form-group-13{
    display: none;
}
.form-group-15{
    flex:0 0 calc(50% - 10px)!important;
}
