.tx247-customize-wrap {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fafafa;
}
.tx247-open-designer {
    font-weight: 700;
}
.tx247-customize-note {
    margin: 8px 0 0;
    font-size: 13px;
    opacity: .75;
}
.tx247-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
}
.tx247-modal.is-open {
    display: block;
}
.tx247-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.tx247-modal-panel {
    position: relative;
    width: min(1100px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    overflow: auto;
    margin: 15px auto;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.tx247-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.tx247-designer-header h2 {
    margin: 0 0 4px;
    font-size: 28px;
}
.tx247-designer-header p {
    margin: 0 0 20px;
    opacity: .75;
}
.tx247-designer-grid {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 24px;
    align-items: start;
}
.tx247-preview-wrap {
    background: linear-gradient(135deg, #f4f4f4, #ffffff);
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}
#tx247-canvas {
    max-width: 100%;
    height: auto;
    background: transparent;
    cursor: move;
}
.tx247-controls {
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}
.tx247-label,
.tx247-control-row label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}
.tx247-controls input[type="text"],
.tx247-controls input[type="file"],
.tx247-controls select,
.tx247-controls textarea {
    width: 100%;
    max-width: 100%;
}
.tx247-help {
    font-size: 12px;
    opacity: .7;
    margin: 5px 0 0;
}
.tx247-status {
    margin: 14px 0;
    min-height: 22px;
    font-weight: 600;
}
.tx247-status.is-error {
    color: #b32d2e;
}
.tx247-status.is-success {
    color: #008a20;
}
.tx247-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
@media (max-width: 850px) {
    .tx247-designer-grid {
        grid-template-columns: 1fr;
    }
    .tx247-modal-panel {
        padding: 18px;
    }
}

body.tx247-modal-open {
    overflow: hidden;
}
#tx247-open-designer,
.tx247-open-designer {
    position: relative;
    z-index: 2;
    cursor: pointer;
    user-select: none;
}


.tx247-product-locked-box{border:1px solid #d9d9d9;background:#fafafa;border-radius:10px;padding:14px 16px;margin-bottom:18px;}
.tx247-product-locked-box strong{display:block;font-size:18px;line-height:1.3;margin:4px 0;color:#111;}
.tx247-product-locked-box small{display:block;color:#666;font-size:12px;}
.tx247-small-label{display:block;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:700;color:#555;}

.tx247-quality-result{margin:8px 0 12px;padding:10px;border-radius:8px;font-weight:700;font-size:13px;background:#f6f7f7;border:1px solid #dcdcde;}
.tx247-quality-result:empty{display:none;}
.tx247-quality-result.is-good{background:#edfaef;border-color:#8ed49b;color:#006b1b;}
.tx247-quality-result.is-regular{background:#fff8e5;border-color:#f0c36a;color:#7a4d00;}
.tx247-quality-result.is-low{background:#fdeeee;border-color:#dba5a5;color:#9b1c1c;}
.tx247-print-area-note{margin:12px 0;padding:10px;border-left:4px solid #2271b1;background:#f0f6fc;font-size:13px;}

.tx247-mini-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px;}
.tx247-mini-actions .button{font-size:12px;line-height:1.2;min-height:32px;}
#tx247-area-quality-note{display:block;margin-top:4px;color:#555;font-weight:400;}
