.cfc-wrapper{max-width:720px;margin:20px auto;padding:16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}
/* 全宽：在 Elementor/OceanWP 容器内直接占满可用宽度 */
.cfc-wrapper.cfc-full{max-width:100% !important;width:100% !important;margin-left:auto;margin-right:auto;border-left:0;border-right:0;border-radius:0}
.cfc-form{display:grid;grid-template-columns:1fr;gap:12px;margin-top:8px}
.cfc-row{display:flex;flex-direction:column;gap:6px}
.cfc-actions{margin-top:8px}
/* 控件宽度定制：缩短 From/To 下拉、加宽 Weight 输入 */
.cfc-wrapper .cfc-form select#cfc_from_state,
.cfc-wrapper .cfc-form select#cfc_to_state{width:180px !important}
.cfc-wrapper .cfc-form input#cfc_weight{width:320px !important}
@media(max-width:560px){
	.cfc-wrapper .cfc-form select#cfc_from_state,
	.cfc-wrapper .cfc-form select#cfc_to_state,
	.cfc-wrapper .cfc-form input#cfc_weight{width:100% !important}
}
.cfc-error{margin-top:12px;color:#b00020;background:#fdecea;border:1px solid #f5c6c6;padding:10px;border-radius:6px}
.cfc-empty{margin-top:12px;color:#555;background:#f8fafc;border:1px solid #e2e8f0;padding:10px;border-radius:6px}
.cfc-results{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}
.cfc-card{border:1px solid #e2e8f0;border-radius:10px;padding:14px;background:#ffffff;box-shadow:0 1px 2px rgba(0,0,0,.04);display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cfc-card-line{margin:0;color:#334155;display:inline-flex;align-items:center;white-space:nowrap}
.cfc-card-price{margin-top:0;margin-left:auto;font-size:18px;font-weight:700;color:#111827;flex:0 0 auto}

/* 列表行布局 */
.cfc-list{display:block}
.cfc-list-header{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr .8fr;gap:8px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-weight:600}
.cfc-list-row{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr .8fr;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#ffffff;align-items:center}
.cfc-list-row+.cfc-list-row{margin-top:8px}
.cfc-col-price{font-weight:700;color:#111827}

@media(max-width:640px){
	.cfc-list-header{display:none}
	.cfc-list-row{grid-template-columns:1fr 1fr;grid-auto-rows:auto}
	.cfc-list-row .cfc-col-price{grid-column:2;justify-self:end}
}

/* 表格型行布局（仿票券列表） */
.cfc-table{display:block}
.cfc-table-head{display:grid;grid-template-columns:.4fr 2fr 2fr 1fr 1fr .9fr;gap:8px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-weight:600}
.cfc-table-row{display:grid;grid-template-columns:.4fr 2fr 2fr 1fr 1fr .9fr;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#ffffff;align-items:center}
.cfc-table-row+.cfc-table-row{margin-top:8px}
.cfc-logo{display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;border-radius:50%;background:#eef2ff;color:#4338ca;font-weight:700;margin-right:10px}
.cfc-company-name{vertical-align:middle}
.cfc-btn{display:inline-block;background:#f59e0b;color:#fff;padding:8px 14px;border-radius:8px;text-decoration:none;font-weight:600}
.cfc-btn:hover{background:#d97706}
.cfc-col-price{font-weight:700}

@media(max-width:700px){
	.cfc-table-head{display:none}
	.cfc-table-row{grid-template-columns:1fr 1fr;grid-auto-rows:auto}
	.cfc-col-no{grid-column:1}
	.cfc-col-company{grid-column:1 / span 2}
	.cfc-col-action{grid-column:2;justify-self:end}
}


/* 简洁五列布局（Flex 版本） */
.cfc-simple{display:block}
.cfc-simple-head{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-weight:600}
.cfc-simple-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#ffffff}
.cfc-simple-row+.cfc-simple-row{margin-top:8px}
.cfc-simple .cfc-col{min-width:0}
.cfc-col-courier{flex:2 1 0}
.cfc-col-from{flex:1 1 0}
.cfc-col-to{flex:1 1 0}
.cfc-col-weight{flex:0 0 110px}
.cfc-col-price{flex:0 0 120px;text-align:right;font-weight:700;color:#111827}

@media(max-width:700px){
	.cfc-simple-head{display:none}
	.cfc-simple-row{flex-wrap:wrap}
	.cfc-col-courier{flex:1 1 100%}
	.cfc-col-from,.cfc-col-to{flex:1 1 50%}
	.cfc-col-weight{flex:1 1 50%}
	.cfc-col-price{flex:1 1 50%;text-align:right}
}

/* 真·表格样式 */
.cfc-table-simple{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fff}
.cfc-table-simple thead th{background:#f8fafc;color:#475569;text-align:left;padding:10px 12px;border-bottom:1px solid #e2e8f0}
/* 强化表头加粗，避免主题覆盖 */
.cfc-wrapper .cfc-table-simple thead th{font-weight:700 !important}
.cfc-table-simple tbody td{padding:12px;border-bottom:1px solid #eef2f7;color:#334155;vertical-align:middle}
.cfc-table-simple tbody tr:last-child td{border-bottom:0}
.cfc-table-simple .cfc-th-price,.cfc-table-simple .cfc-td-price{text-align:right}
.cfc-table-simple .cfc-th-action,.cfc-table-simple .cfc-td-action{text-align:right}
.cfc-wrapper.cfc-full .cfc-table-simple{border-left:0;border-right:0;border-radius:0}
.cfc-courier-cell{display:flex;align-items:center;gap:10px}
.cfc-logo-img{display:inline-flex;width:22px;height:22px;border-radius:4px;overflow:hidden;background:#f1f5f9}
.cfc-logo-img img{display:block;width:100%;height:100%;object-fit:contain}
.cfc-wrapper a.cfc-btn,.cfc-wrapper .cfc-btn{display:inline-block !important;background:#0ea5e9 !important;color:#fff !important;padding:8px 12px !important;border-radius:6px !important;text-decoration:none !important;font-weight:600 !important;line-height:1.2 !important}
.cfc-wrapper a.cfc-btn:hover{background:#0284c7 !important;color:#fff !important}
.cfc-wrapper a.cfc-btn:visited{color:#fff !important}
.cfc-muted{color:#94a3b8}

