/* ================================================
   B2B Promo Order Engine — Print Options Styles
   印刷选项专用样式
   ================================================ */

/* ---------- 印刷选项容器 ---------- */
#b2b-print-options-wrap h4 {
    font-size: 1.17em;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* 修复标签换行问题 */
#b2b-print-options-wrap .form-row label {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* ---------- 文件上传区域 ---------- */
.b2b-upload-zone {
    margin-top: 4px;
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.b2b-upload-zone:hover {
    border-color: #1a73e8;
    background: #f9fbff;
}

.b2b-upload-zone.dragover {
    border-color: #1a73e8;
    background: #eef2ff;
}

.b2b-upload-desc {
    color: #555;
    font-size: 0.9rem;
}

.b2b-file-name {
    display: inline-block;
    font-size: 0.9rem;
    color: #1a3a5c;
    margin-right: 10px;
    vertical-align: middle;
}

.b2b-remove-file {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    vertical-align: middle;
}

.b2b-file-info {
    margin-top: 5px;
}

/* 错误提示框 */
.b2b-upload-error-box {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #d32f2f;
    border-radius: 4px;
    color: #d32f2f;
    font-size: 0.9rem;
}

/* ---------- 图片预览 ---------- */
.b2b-preview-img {
    max-width: 100%;
    max-height: 150px;
    margin: 10px auto 5px;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ---------- 变体不可定制提示 ---------- */
.b2b-not-customizable {
    padding: 8px 12px;
    background: #fff3e0;
    border: 1px solid #ef6c00;
    color: #e65100;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 10px 0;
}

/* ---------- 可搜索下拉（展示框 + 弹出搜索面板） ---------- */
.b2b-search-dropdown {
    position: relative;
    width: 100%;
}

/* 展示当前选中值的区域 */
.b2b-search-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.b2b-search-display:hover {
    border-color: #1a73e8;
}
.b2b-search-display-text {
    color: #1a1a2e;
    font-size: 0.95rem;
}
.b2b-search-display-arrow {
    font-size: 0.9rem;
    color: #666;
}

/* 下拉面板（包含搜索框和列表） */
.b2b-search-panel {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    width: 100%;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 搜索输入框（在面板顶部） */
.b2b-search-input {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 0.95rem;
    outline: none;
}
.b2b-search-input:focus {
    box-shadow: none;
    border-bottom-color: #1a73e8;
}

/* 选项列表 */
.b2b-search-list {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}
.b2b-search-list li {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}
.b2b-search-list li:hover,
.b2b-search-list li.active {
    background: #e3f2fd;
}