/* wrapper */
.esc-wrapper {
    max-width: 720px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* select */
.esc-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #f9fafb;
    transition: .2s;
}
.esc-select:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

/* preview */
.esc-preview-wrap {
    margin-top: 16px;
    text-align: center;
}
.esc-preview {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.esc-logo-label {
    display: block;
    margin-top: 16px;
    font-size: 14px;
}

/* logo upload box */
.esc-logo-box {
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    padding: 18px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
    margin-bottom: 16px;
    margin-top: 16px;
    display: block;
    width: 100%;
    pointer-events: none;
    opacity: 0.8;
}

.esc-logo-box.active_box {
    pointer-events: auto;
    opacity: 1;
}

.esc-logo-box:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

/* icon */
.esc-logo-box .esc-logo-icon {
    font-size: 28px;
    color: #6366f1;
    margin-bottom: 6px;
}

/* text */
.esc-logo-box .esc-logo-text {
    font-size: 14px;
    color: #475569;
}

/* hidden input */
.esc-logo-input {
    display: none;
}

/* preview */
.esc-logo-preview {
    display: none;
    margin-top: 12px;
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

/* uploaded state */
.esc-logo-box.is-active {
    border-style: solid;
}


/* render html */
.esc-html-render {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    border: 1px dashed #ccc !important;
    outline: 0 !important;
    background: #f8fafc;
    min-height: 60px;
    cursor: text;
    /*opacity: 0;
    height: 0;
    overflow: hidden;*/
}

.esc-html-render * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* reset email signature preview */
.esc-html-render table,
.esc-html-render tr,
.esc-html-render td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.esc-html-render table {
    border-collapse: collapse !important;
}

.esc-html-render:empty::before {
    content: "Chữ ký sẽ hiển thị tại đây…";
    color: #9ca3af;
}

/* copy button */
.esc-copy {
    margin-top: 18px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}
.esc-copy:hover {
    opacity: .9;
}
