/* ============================================================
   EasyPost Shipping for WooCommerce — Admin UI v8.0
   Professional premium plugin design
   All rules scoped under .tfsep-wrap
============================================================ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    --ep-purple:     #1d6ff3;
    --ep-purple-dk:  #1558d0;
    --ep-purple-lt:  #eff5ff;
    --ep-purple-bd:  #a0bfff;
    --ep-green:      #00a651;
    --ep-green-bg:   #e8f8f0;
    --ep-red:        #cc1818;
    --ep-red-bg:     #fdf0f0;
    --ep-orange:     #d97706;
    --ep-orange-bg:  #fef9ec;
    --ep-blue:       #0073aa;
    --ep-blue-bg:    #eaf3fb;
    --ep-grey-50:    #f9fafb;
    --ep-grey-100:   #f3f4f6;
    --ep-grey-200:   #e5e7eb;
    --ep-grey-300:   #d1d5db;
    --ep-grey-500:   #6b7280;
    --ep-grey-700:   #374151;
    --ep-grey-900:   #111827;
    --ep-white:      #ffffff;
    --ep-shadow-xs:  0 1px 2px rgba(0,0,0,.06);
    --ep-shadow-sm:  0 1px 4px rgba(0,0,0,.09);
    --ep-shadow:     0 2px 10px rgba(0,0,0,.10);
    --ep-shadow-md:  0 6px 24px rgba(0,0,0,.12);
    --ep-r:          5px;
    --ep-rl:         8px;
    --ep-rxl:        12px;
    --ep-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Base ────────────────────────────────────────────────── */
.tfsep-wrap {
    max-width: 1100px;
    font-family: var(--ep-font);
    color: var(--ep-grey-900);
    line-height: 1.55;
}
.tfsep-wrap * { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER  — branded banner below WP title
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-page-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--ep-white);
    border: 1px solid var(--ep-grey-200);
    border-left: 4px solid var(--ep-purple) !important;
    border-radius: var(--ep-rl);
    margin-bottom: 20px;
    box-shadow: var(--ep-shadow-xs);
    gap: 12px;
    flex-wrap: wrap;
}
.tfsep-wrap .ep-page-header h1 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--ep-grey-900) !important;
}
.tfsep-wrap .ep-page-header p {
    margin: 3px 0 0 !important;
    font-size: 12px;
    color: var(--ep-grey-500);
}
/* standalone .ep-page-header outside .tfsep-wrap */
.ep-page-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--ep-white);
    border: 1px solid var(--ep-grey-200);
    border-left: 4px solid var(--ep-purple) !important;
    border-radius: var(--ep-rl);
    margin-bottom: 20px;
    box-shadow: var(--ep-shadow-xs);
    gap: 12px;
    flex-wrap: wrap;
}
.ep-page-header-icon {
    display: none !important;  /* hide the small emoji box */
}
.ep-page-header h1 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--ep-grey-900) !important;
}
.ep-page-header p {
    margin: 3px 0 0 !important;
    font-size: 12px;
    color: var(--ep-grey-500);
}

/* ══════════════════════════════════════════════════════════
   TABS  — solid pill-style navigation bar
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 16px;
    padding: 6px;
    background: var(--ep-grey-100);
    border: 1px solid var(--ep-grey-200);
    border-radius: var(--ep-rl);
    list-style: none;
}
.tfsep-wrap .ep-tab {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-grey-500) !important;
    background: transparent !important;
    border: none !important;
    border-radius: var(--ep-r) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .15s;
    box-shadow: none !important;
    outline: none;
    white-space: nowrap;
    line-height: 1.4;
}
.tfsep-wrap .ep-tab:hover {
    color: var(--ep-purple) !important;
    background: rgba(29,111,243,.08) !important;
}
.tfsep-wrap .ep-tab.active {
    background: var(--ep-white) !important;
    color: var(--ep-purple) !important;
    font-weight: 700;
    box-shadow: var(--ep-shadow-xs), 0 0 0 1px var(--ep-grey-200) !important;
}

/* PANELS */
.tfsep-wrap .ep-panel {
    display: none;
    padding-top: 0;
}
.tfsep-wrap .ep-panel.active {
    display: block !important;
}

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-card,
.tfsep-wrap .tfsep-card {
    background: var(--ep-white) !important;
    border: 1px solid var(--ep-grey-200) !important;
    border-radius: var(--ep-rl) !important;
    padding: 20px 22px !important;
    margin-top: 14px;
    box-shadow: var(--ep-shadow-sm);
}
.tfsep-wrap .ep-card-title,
.tfsep-wrap .tfsep-card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--ep-grey-700) !important;
    margin: 0 0 16px !important;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--ep-grey-200);
    display: flex !important;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-field { margin-bottom: 16px; }
.tfsep-wrap .ep-label {
    display: block !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-grey-700);
    margin-bottom: 5px;
}
.tfsep-wrap .ep-hint {
    font-size: 12px;
    color: var(--ep-grey-500);
    margin-top: 5px;
    line-height: 1.5;
    display: block !important;
}
.tfsep-wrap .ep-hint a { color: var(--ep-purple); text-decoration: underline; }

.tfsep-wrap .ep-input,
.tfsep-wrap .ep-select,
.tfsep-wrap .ep-textarea {
    width: 100%;
    padding: 8px 11px !important;
    border: 1px solid var(--ep-grey-300) !important;
    border-radius: var(--ep-r) !important;
    font-size: 13px !important;
    color: var(--ep-grey-900) !important;
    background: var(--ep-white) !important;
    box-shadow: var(--ep-shadow-xs) !important;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.5;
    height: auto !important;
    font-family: var(--ep-font);
}
.tfsep-wrap .ep-input:focus,
.tfsep-wrap .ep-select:focus,
.tfsep-wrap .ep-textarea:focus {
    border-color: var(--ep-purple) !important;
    box-shadow: 0 0 0 3px rgba(29,111,243,.14) !important;
    outline: none;
}
.tfsep-wrap .ep-input::placeholder { color: var(--ep-grey-300); }
.tfsep-wrap .ep-input-sm { max-width: 120px !important; }

/* Grids */
.tfsep-wrap .ep-g2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
.tfsep-wrap .ep-g3 { display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.tfsep-wrap .ep-gcol2 { grid-column: 1 / -1; }
@media (max-width: 782px) {
    .tfsep-wrap .ep-g2,
    .tfsep-wrap .ep-g3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   TOGGLE SWITCH  (.ep-sw / .ep-track)
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-sw-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}
.tfsep-wrap .ep-sw {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0;
}
.tfsep-wrap .ep-sw input { opacity: 0 !important; width: 0 !important; height: 0 !important; position: absolute; }
.tfsep-wrap .ep-track {
    position: absolute !important; inset: 0 !important;
    background: var(--ep-grey-300);
    border-radius: 24px; cursor: pointer;
    transition: background .2s; border: none !important; box-shadow: none !important;
}
.tfsep-wrap .ep-track::before {
    content: '' !important; position: absolute !important;
    width: 18px !important; height: 18px !important;
    left: 3px; top: 3px;
    background: var(--ep-white) !important; border-radius: 50%;
    transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.tfsep-wrap .ep-sw input:checked + .ep-track { background: var(--ep-green) !important; }
.tfsep-wrap .ep-sw input:checked + .ep-track::before { transform: translateX(20px) !important; }

/* Alias .ep-switch / .ep-slider */
.tfsep-wrap .ep-switch {
    position: relative !important; display: inline-block !important;
    width: 44px !important; height: 24px !important; flex-shrink: 0;
}
.tfsep-wrap .ep-switch input { opacity: 0 !important; width: 0 !important; height: 0 !important; position: absolute; }
.tfsep-wrap .ep-slider {
    position: absolute !important; inset: 0 !important; background: var(--ep-grey-300);
    border-radius: 24px; cursor: pointer; transition: background .2s; border: none !important;
}
.tfsep-wrap .ep-slider::before {
    content: '' !important; position: absolute !important;
    width: 18px !important; height: 18px !important;
    left: 3px; top: 3px;
    background: var(--ep-white) !important; border-radius: 50%;
    transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.tfsep-wrap .ep-switch input:checked + .ep-slider { background: var(--ep-green) !important; }
.tfsep-wrap .ep-switch input:checked + .ep-slider::before { transform: translateX(20px) !important; }

/* ══════════════════════════════════════════════════════════
   MODE SELECTOR  (segmented control)
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-mode-wrap {
    display: inline-flex !important;
    background: var(--ep-grey-100);
    border: 1px solid var(--ep-grey-200);
    border-radius: var(--ep-rl);
    padding: 4px;
    gap: 3px;
}
.tfsep-wrap .ep-mode-opt {
    padding: 8px 22px !important;
    cursor: pointer; font-size: 13px; font-weight: 500;
    background: transparent !important; color: var(--ep-grey-500) !important;
    border: none !important; border-radius: var(--ep-r) !important;
    transition: all .15s; display: flex !important; align-items: center; gap: 7px; margin: 0 !important;
}
.tfsep-wrap .ep-mode-opt input[type=radio] { display: none !important; }
.tfsep-wrap .ep-mode-opt.active {
    background: var(--ep-purple) !important;
    color: var(--ep-white) !important;
    font-weight: 700;
    box-shadow: var(--ep-shadow-xs);
}
.tfsep-wrap .ep-mode-opt:hover:not(.active) { background: rgba(29,111,243,.07) !important; color: var(--ep-purple) !important; }

/* ══════════════════════════════════════════════════════════
   ALGO CARDS  (packing)
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-algo-wrap { display: flex !important; gap: 12px; flex-wrap: wrap; }
.tfsep-wrap .ep-algo {
    border: 2px solid var(--ep-grey-200) !important;
    border-radius: var(--ep-rl); padding: 18px 16px; min-width: 160px; max-width: 200px;
    cursor: pointer; display: flex !important; flex-direction: column; gap: 5px;
    transition: all .15s; position: relative; background: var(--ep-white) !important;
}
.tfsep-wrap .ep-algo input { position: absolute; opacity: 0; }
.tfsep-wrap .ep-algo-icon  { font-size: 26px; line-height: 1; display: block !important; }
.tfsep-wrap .ep-algo-title { font-size: 13px; font-weight: 700; color: var(--ep-grey-900); display: block !important; }
.tfsep-wrap .ep-algo-desc  { font-size: 11px; color: var(--ep-grey-500); line-height: 1.4; display: block !important; }
.tfsep-wrap .ep-algo-check {
    position: absolute; top: 10px; right: 10px;
    width: 18px; height: 18px;
    border: 2px solid var(--ep-grey-300); border-radius: 50%;
    display: flex !important; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}
.tfsep-wrap .ep-algo:hover { border-color: var(--ep-purple-bd) !important; }
.tfsep-wrap .ep-algo.sel   { border-color: var(--ep-purple) !important; background: var(--ep-purple-lt) !important; }
.tfsep-wrap .ep-algo.sel .ep-algo-check { background: var(--ep-purple) !important; border-color: var(--ep-purple) !important; color: #fff; }
.tfsep-wrap .ep-algo.sel .ep-algo-check::after { content: '✓'; }

/* ══════════════════════════════════════════════════════════
   SERVICES — carrier blocks & pills
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-svc-bar {
    display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 10px 14px; background: var(--ep-grey-50); border: 1px solid var(--ep-grey-200);
    border-radius: var(--ep-r); margin-bottom: 12px;
}
.tfsep-wrap .ep-carrier-block {
    border: 1px solid var(--ep-grey-200) !important; border-radius: var(--ep-rl);
    margin-bottom: 6px; overflow: hidden; background: var(--ep-white) !important;
}
.tfsep-wrap .ep-carrier-hdr {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 10px 16px; background: var(--ep-grey-50) !important;
    cursor: pointer; transition: background .15s; border-bottom: 1px solid var(--ep-grey-200);
}
.tfsep-wrap .ep-carrier-hdr:hover { background: var(--ep-purple-lt) !important; }
.tfsep-wrap .ep-carrier-left { display: flex !important; align-items: center; gap: 10px; }
.tfsep-wrap .ep-carrier-cb { width: 15px !important; height: 15px !important; cursor: pointer; accent-color: var(--ep-purple); }
.tfsep-wrap .ep-carrier-name { font-weight: 700; font-size: 13px; }
.tfsep-wrap .ep-carrier-ct { font-size: 11px; color: var(--ep-grey-500); background: var(--ep-grey-200); padding: 1px 8px; border-radius: 20px; font-weight: 600; transition: background .15s, color .15s; }
.tfsep-wrap .ep-carrier-ct.ep-ct-all     { background: #d4edda; color: #1a6632; }
.tfsep-wrap .ep-carrier-ct.ep-ct-partial { background: #fff3cd; color: #7d5a00; }
.tfsep-wrap .ep-carrier-ct.ep-ct-none    { background: #f8d7da; color: #721c24; }
.tfsep-wrap .ep-carrier-hdr.ep-carrier-off { background: var(--ep-grey-100) !important; opacity: .7; }
.tfsep-wrap .ep-carrier-hdr.ep-carrier-off:hover { opacity: 1; }
.tfsep-wrap .ep-carrier-chev { color: var(--ep-grey-500); font-size: 11px; transition: transform .2s; }
.tfsep-wrap .ep-carrier-block.collapsed .ep-carrier-chev { transform: rotate(-90deg); }
.tfsep-wrap .ep-carrier-block.collapsed .ep-svc-pills { display: none !important; }

/* Carrier drag handle */
.tfsep-wrap .ep-carrier-drag {
    cursor: grab !important;
    color: var(--ep-grey-300);
    font-size: 14px;
    padding: 0 4px;
    user-select: none;
    flex-shrink: 0;
}
.tfsep-wrap .ep-carrier-drag:active { cursor: grabbing !important; }
.tfsep-wrap .ep-carrier-ghost { opacity: .45; background: var(--ep-purple-lt) !important; }

.tfsep-wrap .ep-svc-pills { display: flex !important; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.tfsep-wrap .ep-pill {
    display: inline-flex !important; align-items: center; gap: 4px;
    padding: 4px 11px; border: 1.5px solid var(--ep-grey-300) !important; border-radius: 20px;
    cursor: pointer; font-size: 12px; font-weight: 500; color: var(--ep-grey-500) !important;
    background: var(--ep-white) !important; transition: all .15s; user-select: none; text-decoration: none !important;
}
/* Pill drag handle */
.tfsep-wrap .ep-pill-hdl {
    cursor: grab !important;
    color: var(--ep-grey-300);
    font-size: 10px;
    margin-right: 3px;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}
.tfsep-wrap .ep-pill-hdl:active { cursor: grabbing !important; }
.tfsep-wrap .ep-pill-ghost { opacity: .4 !important; background: var(--ep-purple-lt) !important; border-color: var(--ep-purple-bd) !important; }
.tfsep-wrap .ep-pill input { display: none !important; }
.tfsep-wrap .ep-pill:hover { border-color: var(--ep-purple-bd) !important; color: var(--ep-purple) !important; }
.tfsep-wrap .ep-pill.on  { border-color: var(--ep-green) !important; color: #0a5c2e !important; background: var(--ep-green-bg) !important; font-weight: 600; }
.tfsep-wrap .ep-pill.on::before { content: '✓ '; font-weight: 700; }
.tfsep-wrap .ep-pill.off { color: #bbb !important; text-decoration: line-through !important; background: var(--ep-grey-50) !important; border-color: var(--ep-grey-200) !important; }

/* Priority list */
.tfsep-wrap .ep-prio-list { border: 1px solid var(--ep-grey-200) !important; border-radius: var(--ep-r); min-height: 50px; background: var(--ep-grey-50); overflow: hidden; }
.tfsep-wrap .ep-prio-item {
    display: flex !important; align-items: center; gap: 10px; padding: 9px 14px;
    background: var(--ep-white) !important; border-bottom: 1px solid var(--ep-grey-200);
    cursor: grab; font-size: 13px; transition: background .1s;
}
.tfsep-wrap .ep-prio-item:last-child { border-bottom: none; }
.tfsep-wrap .ep-prio-item:hover { background: var(--ep-purple-lt) !important; }
.tfsep-wrap .ep-prio-hdl { color: var(--ep-grey-300); font-size: 16px; }
.tfsep-wrap .ep-prio-num { width: 20px; height: 20px; background: var(--ep-purple); color: #fff; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.tfsep-wrap .ep-prio-name { flex: 1; font-size: 13px; font-weight: 600; }
.tfsep-wrap .ep-prio-rm { background: none !important; border: none !important; cursor: pointer; color: var(--ep-grey-300); font-size: 14px; padding: 2px 5px; box-shadow: none !important; }
.tfsep-wrap .ep-prio-rm:hover { color: var(--ep-red) !important; }

/* Adjustments */
.tfsep-wrap .ep-adj-row { display: flex !important; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--ep-grey-100); flex-wrap: wrap; }
.tfsep-wrap .ep-adj-row:last-child { border-bottom: none; }
.tfsep-wrap .ep-adj-sel { padding: 5px 8px !important; border: 1px solid var(--ep-grey-300) !important; border-radius: var(--ep-r) !important; font-size: 12px; background: var(--ep-white) !important; height: auto !important; }
.tfsep-wrap .ep-adj-amt { width: 88px; padding: 5px 8px !important; border: 1px solid var(--ep-grey-300) !important; border-radius: var(--ep-r) !important; font-size: 12px; height: auto !important; }

/* Mode pills */
.tfsep-wrap .ep-mode-pills { display: flex !important; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tfsep-wrap .ep-mode-pill { padding: 6px 16px; border: 1.5px solid var(--ep-grey-300) !important; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ep-grey-500) !important; background: var(--ep-white) !important; transition: all .15s; user-select: none; text-decoration: none !important; }
.tfsep-wrap .ep-mode-pill.active { border-color: var(--ep-purple) !important; color: var(--ep-purple) !important; background: var(--ep-purple-lt) !important; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-btn {
    display: inline-flex !important; align-items: center; gap: 6px;
    padding: 8px 16px !important; border-radius: var(--ep-r) !important;
    font-size: 13px !important; font-weight: 600; cursor: pointer; transition: all .12s;
    border: 1px solid transparent !important; line-height: 1.4 !important;
    text-decoration: none !important; white-space: nowrap; background: none;
    box-shadow: none !important; height: auto !important; vertical-align: middle; font-family: var(--ep-font);
}
.tfsep-wrap .ep-btn-primary {
    background: var(--ep-purple) !important; color: #fff !important; border-color: var(--ep-purple) !important;
    box-shadow: 0 1px 3px rgba(29,111,243,.35) !important;
}
.tfsep-wrap .ep-btn-primary:hover { background: var(--ep-purple-dk) !important; border-color: var(--ep-purple-dk) !important; color: #fff !important; }
.tfsep-wrap .ep-btn-outline { background: var(--ep-white) !important; color: var(--ep-purple) !important; border-color: var(--ep-purple) !important; }
.tfsep-wrap .ep-btn-outline:hover { background: var(--ep-purple-lt) !important; }
.tfsep-wrap .ep-btn-ghost { background: var(--ep-white) !important; color: var(--ep-grey-500) !important; border-color: var(--ep-grey-300) !important; }
.tfsep-wrap .ep-btn-ghost:hover { border-color: var(--ep-purple) !important; color: var(--ep-purple) !important; background: var(--ep-purple-lt) !important; }
.tfsep-wrap .ep-btn-danger { background: var(--ep-white) !important; color: var(--ep-red) !important; border-color: #f5aaaa !important; }
.tfsep-wrap .ep-btn-danger:hover { background: var(--ep-red) !important; color: #fff !important; border-color: var(--ep-red) !important; }
.tfsep-wrap .ep-btn-sm { padding: 5px 12px !important; font-size: 12px !important; }
.tfsep-wrap .ep-btn-lg { padding: 11px 26px !important; font-size: 14px !important; }
.tfsep-wrap .ep-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   SAVE BAR
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-save-bar {
    position: sticky !important; bottom: 0; z-index: 100;
    background: rgba(255,255,255,.97) !important;
    border-top: 2px solid var(--ep-purple) !important;
    padding: 14px 20px !important;
    display: flex !important; align-items: center; gap: 14px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    margin-top: 20px;
}
.tfsep-wrap .ep-save-status { font-size: 13px; font-weight: 600; }
.tfsep-wrap .ep-save-status.ok  { color: var(--ep-green); }
.tfsep-wrap .ep-save-status.err { color: var(--ep-red); }

/* ══════════════════════════════════════════════════════════
   NOTICES
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-info,
.tfsep-wrap .ep-info-box {
    background: var(--ep-blue-bg) !important;
    border-left: 4px solid var(--ep-blue) !important;
    padding: 10px 14px; border-radius: 0 var(--ep-r) var(--ep-r) 0;
    font-size: 13px; margin-bottom: 14px; display: block !important; color: #0a3d5c;
}
.tfsep-wrap .ep-warn {
    background: var(--ep-orange-bg) !important;
    border-left: 4px solid var(--ep-orange) !important;
    padding: 10px 14px; border-radius: 0 var(--ep-r) var(--ep-r) 0;
    font-size: 13px; margin-bottom: 14px; display: block !important; color: #6b3a00;
}

/* ══════════════════════════════════════════════════════════
   BADGES & CHIPS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 700; display: inline-block !important; text-transform: uppercase; letter-spacing: .3px; }
.tfsep-wrap .ep-badge-test  { background: var(--ep-orange-bg); color: var(--ep-orange); border: 1px solid #fcd88a; }
.tfsep-wrap .ep-badge-live  { background: var(--ep-green-bg);  color: var(--ep-green);  border: 1px solid #a7e8c5; }
.tfsep-wrap .ep-badge-ok    { background: var(--ep-green-bg);  color: var(--ep-green);  border: 1px solid #a7e8c5; }
.tfsep-wrap .ep-badge-free  { background: var(--ep-green-bg);  color: var(--ep-green);  border: 1px solid #a7e8c5; }
.tfsep-wrap .ep-badge-cond  { background: var(--ep-orange-bg); color: var(--ep-orange); border: 1px solid #fcd88a; }
.tfsep-wrap .ep-chip { display: inline-block !important; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.tfsep-wrap .ep-chip-cond   { background: var(--ep-blue-bg); color: #0a3d5c; }
.tfsep-wrap .ep-chip-act,
.tfsep-wrap .ep-chip-action { background: var(--ep-green-bg); color: #0a5c2e; }
.tfsep-wrap .ep-flex { display: flex !important; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   ADDRESS STATUS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-addr-status { display: flex !important; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--ep-r); font-size: 12px; font-weight: 600; margin-top: 8px; }
.tfsep-wrap .ep-addr-ok   { background: var(--ep-green-bg) !important; color: #0a5c2e; border: 1px solid #a7e8c5 !important; }
.tfsep-wrap .ep-addr-err  { background: var(--ep-red-bg) !important;   color: #7a0c0c; border: 1px solid #f5aaaa !important; }
.tfsep-wrap .ep-addr-warn { background: var(--ep-orange-bg) !important; color: #6b3a00; border: 1px solid #fcd88a !important; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD HERO
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-hero,
.tfsep-wrap .ep-dash-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1d6ff3 60%, #3b82f6 100%) !important;
    color: #fff; border-radius: var(--ep-rxl);
    padding: 28px 30px; margin: 10px 0 20px;
    display: flex !important; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
    box-shadow: 0 6px 24px rgba(29,111,243,.30);
}
.tfsep-wrap .ep-hero h1,
.tfsep-wrap .ep-dash-hero h1 { margin: 0 !important; font-size: 22px !important; font-weight: 800 !important; color: #fff !important; }
.tfsep-wrap .ep-hero p,
.tfsep-wrap .ep-dash-hero p { margin: 6px 0 0 !important; opacity: .85; font-size: 13px; }
.tfsep-wrap .ep-hero-badge,
.tfsep-wrap .ep-dash-hero-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 5px 16px; font-size: 12px; font-weight: 700; color: #fff !important; display: inline-block !important; }

/* Stat grid */
.tfsep-wrap .ep-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 22px;
}
.tfsep-wrap .ep-stat {
    background: var(--ep-white) !important; border: 1px solid var(--ep-grey-200) !important;
    border-radius: var(--ep-rl); padding: 16px 14px; text-align: center;
    border-top: 3px solid var(--ep-purple) !important; box-shadow: var(--ep-shadow-sm);
    transition: box-shadow .15s;
}
.tfsep-wrap .ep-stat:hover { box-shadow: var(--ep-shadow); }
.tfsep-wrap .ep-stat-val { font-size: 24px; font-weight: 800; color: var(--ep-purple); line-height: 1.2; display: block !important; }
.tfsep-wrap .ep-stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ep-grey-500); margin-top: 4px; font-weight: 600; display: block !important; }

/* Quick link grid */
.tfsep-wrap .ep-ql-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 10px; margin-bottom: 22px;
}
.tfsep-wrap .ep-ql-card {
    display: flex !important; flex-direction: column; gap: 4px;
    padding: 16px 14px; text-decoration: none !important;
    background: var(--ep-white) !important; border: 1px solid var(--ep-grey-200) !important;
    border-radius: var(--ep-rl); transition: all .15s; box-shadow: var(--ep-shadow-sm);
    border-left: 3px solid transparent !important;
}
.tfsep-wrap .ep-ql-card:hover { box-shadow: var(--ep-shadow); border-left-color: var(--ep-purple) !important; transform: translateY(-1px); }
.tfsep-wrap .ep-ql-icon { font-size: 22px; display: block !important; margin-bottom: 4px; }
.tfsep-wrap .ep-ql-card strong { font-size: 13px; color: var(--ep-grey-900) !important; font-weight: 700; display: block !important; }
.tfsep-wrap .ep-ql-card span   { font-size: 12px; color: var(--ep-grey-500) !important; }

/* Setup warning */
.tfsep-wrap .ep-setup-warn { background: var(--ep-orange-bg) !important; border-left: 4px solid var(--ep-orange) !important; border-radius: 0 var(--ep-r) var(--ep-r) 0; padding: 12px 16px; margin-bottom: 18px; display: flex !important; align-items: center; gap: 12px; font-size: 13px; color: #6b3a00; }

/* ══════════════════════════════════════════════════════════
   BOX CARDS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-boxes { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.tfsep-wrap .ep-box-card { background: var(--ep-white) !important; border: 1px solid var(--ep-grey-200) !important; border-radius: var(--ep-rl); padding: 16px; position: relative; box-shadow: var(--ep-shadow-sm); transition: all .15s; }
.tfsep-wrap .ep-box-card:hover { box-shadow: var(--ep-shadow); border-color: var(--ep-purple-bd) !important; }
.tfsep-wrap .ep-box-card.disabled { opacity: .45; }
.tfsep-wrap .ep-box-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding-right: 48px; display: block !important; }
.tfsep-wrap .ep-box-dims { font-size: 12px; color: var(--ep-grey-500); text-align: center; margin: 8px 0; display: block !important; }
.tfsep-wrap .ep-box-actions { display: flex !important; gap: 6px; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   FLAT RATE CARDS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-fr-card { border: 1px solid var(--ep-grey-200) !important; border-radius: var(--ep-rl); padding: 13px 16px; margin-bottom: 8px; background: var(--ep-white) !important; display: flex !important; align-items: center; gap: 12px; cursor: grab; transition: box-shadow .15s; }
.tfsep-wrap .ep-fr-card:hover { box-shadow: var(--ep-shadow); }
.tfsep-wrap .ep-fr-card .fr-hdl { color: var(--ep-grey-300); font-size: 18px; flex-shrink: 0; }
.tfsep-wrap .ep-fr-card .fr-info { flex: 1; }
.tfsep-wrap .ep-fr-card .fr-name { font-weight: 700; font-size: 14px; display: block !important; }
.tfsep-wrap .ep-fr-card .fr-meta { font-size: 11px; color: var(--ep-grey-500); margin-top: 3px; display: flex !important; gap: 8px; flex-wrap: wrap; }
.tfsep-wrap .ep-fr-card .fr-cost { font-size: 16px; font-weight: 800; color: var(--ep-purple); flex-shrink: 0; }
.tfsep-wrap .ep-fr-card .fr-btns { display: flex !important; gap: 6px; flex-shrink: 0; }
.tfsep-wrap .ep-fr-empty { text-align: center; padding: 30px; color: var(--ep-grey-500); font-size: 13px; display: block !important; }

/* ══════════════════════════════════════════════════════════
   RULES TABLE
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-rules-table { width: 100%; border-collapse: collapse; }
.tfsep-wrap .ep-rules-table th { background: var(--ep-grey-50) !important; padding: 9px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--ep-grey-200) !important; font-weight: 700; color: var(--ep-grey-500); white-space: nowrap; }
.tfsep-wrap .ep-rules-table td { padding: 10px 12px; border-bottom: 1px solid var(--ep-grey-100) !important; vertical-align: middle; }
.tfsep-wrap .ep-rules-table tbody tr:hover td { background: var(--ep-purple-lt) !important; }

.tfsep-wrap .ep-rule-builder { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
@media (max-width: 900px) { .tfsep-wrap .ep-rule-builder { grid-template-columns: 1fr; } }
.tfsep-wrap .ep-rule-section-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ep-purple); background: var(--ep-purple-lt); border-radius: 4px; padding: 6px 12px; margin-bottom: 12px; display: block !important; }
.tfsep-wrap .ep-rule-field { margin-bottom: 13px; }
.tfsep-wrap .ep-rule-field > label { display: block !important; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.tfsep-wrap .ep-rule-preview { background: var(--ep-grey-50) !important; border: 1px dashed var(--ep-purple-bd) !important; border-radius: var(--ep-r); padding: 12px; margin-top: 10px; display: block !important; }
.tfsep-wrap .ep-rule-preview-title { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--ep-purple); margin-bottom: 5px; display: block !important; letter-spacing: .4px; }
.tfsep-wrap .ep-rule-preview-body  { font-size: 12px; color: #444; line-height: 1.7; display: block !important; }

/* Lazy search */
.tfsep-wrap .ep-lazy-wrap { position: relative; }
.tfsep-wrap .ep-lazy-dd { position: absolute !important; z-index: 999; width: 100%; background: var(--ep-white) !important; border: 1px solid var(--ep-grey-300) !important; border-top: none; border-radius: 0 0 var(--ep-r) var(--ep-r); max-height: 220px; overflow-y: auto; box-shadow: var(--ep-shadow-md); }
.tfsep-wrap .ep-lazy-item { padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--ep-grey-100); display: block !important; }
.tfsep-wrap .ep-lazy-item:hover { background: var(--ep-purple-lt) !important; color: var(--ep-purple) !important; }
.tfsep-wrap .ep-tags { display: flex !important; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tfsep-wrap .ep-tag { display: inline-flex !important; align-items: center; gap: 4px; padding: 2px 9px; background: var(--ep-purple-lt) !important; border: 1px solid var(--ep-purple-bd) !important; border-radius: 20px; font-size: 11px; font-weight: 600; color: #5a3a8a !important; }
.tfsep-wrap .ep-tag button { background: none !important; border: none !important; cursor: pointer; color: var(--ep-red) !important; font-size: 12px; padding: 0; font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   ANALYTICS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-filters { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; background: var(--ep-white) !important; padding: 10px 14px; border-radius: var(--ep-r); border: 1px solid var(--ep-grey-200) !important; box-shadow: var(--ep-shadow-xs); }

/* ══════════════════════════════════════════════════════════
   PROGRESS
══════════════════════════════════════════════════════════ */
.tfsep-wrap .ep-progress-wrap { background: var(--ep-grey-200) !important; border-radius: 20px; height: 10px; overflow: hidden; margin-bottom: 6px; }
.tfsep-wrap .ep-progress-bar { background: var(--ep-purple) !important; height: 100%; border-radius: 20px; transition: width .3s ease; }

/* ══════════════════════════════════════════════════════════
   ORDER META BOX  (outside .tfsep-wrap)
══════════════════════════════════════════════════════════ */
.tfsep-panel { font-size: 12px; }
.tfsep-status-badge { display: inline-flex !important; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; background: #f0f0f0; margin-bottom: 10px; }
.tfsep-dot { width: 7px; height: 7px; border-radius: 50%; background: #ccc; display: inline-block !important; }
.tfsep-status-purchased .tfsep-dot, .tfsep-status-delivered .tfsep-dot { background: var(--ep-green); }
.tfsep-status-purchased, .tfsep-status-delivered { background: var(--ep-green-bg) !important; color: #0a5c2e; }
.tfsep-status-refunded .tfsep-dot { background: var(--ep-red); }
.tfsep-status-refunded { background: var(--ep-red-bg) !important; color: #7a0c0c; }
.tfsep-info-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.tfsep-info-item { display: flex !important; flex-direction: column; gap: 2px; }
.tfsep-info-label { font-size: 10px; text-transform: uppercase; color: var(--ep-grey-500); letter-spacing: .4px; font-weight: 600; display: block !important; }
.tfsep-info-value { font-weight: 600; color: #1e293b; font-size: 12px; display: block !important; }
.tfsep-tracking-number { color: var(--ep-purple); text-decoration: none; font-family: monospace; font-size: 11px; }
.tfsep-widget-section { padding: 8px 0; border-top: 1px solid var(--ep-grey-200); margin-top: 4px; }
.tfsep-section-header { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #555; letter-spacing: .4px; margin-bottom: 6px; display: block !important; }
.tfsep-btn-group { display: flex !important; flex-direction: column; gap: 4px; }
.tfsep-action-btn { display: inline-flex !important; align-items: center; gap: 5px; padding: 6px 10px !important; font-size: 12px !important; border-radius: var(--ep-r) !important; border: 1px solid var(--ep-grey-300) !important; background: var(--ep-white) !important; color: #333 !important; cursor: pointer; transition: all .15s; text-decoration: none; font-weight: 500 !important; height: auto !important; line-height: 1.4 !important; box-shadow: none !important; }
.tfsep-action-btn:hover { border-color: var(--ep-purple) !important; color: var(--ep-purple) !important; background: var(--ep-purple-lt) !important; }
.tfsep-action-btn.primary { background: var(--ep-purple) !important; color: #fff !important; border-color: var(--ep-purple) !important; }
.tfsep-action-btn.danger  { color: var(--ep-red) !important; border-color: #f5aaaa !important; }
.tfsep-action-btn.danger:hover { background: var(--ep-red) !important; color: #fff !important; }
.tfsep-no-label-notice { background: var(--ep-blue-bg) !important; border: 1px solid #b8d8ef; border-radius: var(--ep-r); padding: 7px 10px; color: #0a3d5c; font-size: 12px; display: flex !important; align-items: center; gap: 5px; margin-bottom: 8px; }
.tfsep-tracking-live { background: var(--ep-grey-50) !important; border: 1px solid var(--ep-grey-200); border-radius: var(--ep-r); padding: 7px 10px; font-size: 11px; margin-bottom: 8px; display: block !important; }
.tfsep-spinner { width: 22px; height: 22px; border: 3px solid var(--ep-grey-200); border-top-color: var(--ep-purple); border-radius: 50%; animation: ep-spin .7s linear infinite; display: inline-block !important; }
@keyframes ep-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
#ep-toast {
    position: fixed !important; bottom: 24px; right: 24px; z-index: 99999;
    min-width: 260px; padding: 12px 18px; border-radius: var(--ep-rl);
    font-size: 13px; font-weight: 600; box-shadow: var(--ep-shadow-md);
    transform: translateY(80px); opacity: 0;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none; display: block !important;
}
#ep-toast.show  { transform: none; opacity: 1; }
#ep-toast.ok    { background: #1a5c30 !important; color: #fff !important; }
#ep-toast.err   { background: #7a0c0c !important; color: #fff !important; }
#ep-toast.info  { background: #0a3d5c !important; color: #fff !important; }

/* Automation */
.ep-status-label { display: flex !important; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--ep-grey-300) !important; border-radius: var(--ep-r); cursor: pointer; font-size: 13px; background: var(--ep-white) !important; transition: all .15s; }
.ep-status-label:hover { border-color: var(--ep-purple) !important; background: var(--ep-purple-lt) !important; }
.ep-status-label.selected { border-color: var(--ep-purple) !important; background: var(--ep-purple-lt) !important; color: var(--ep-purple) !important; font-weight: 700; }

/* Diagnostic tests */
.tfsep-test-result { margin-top: 10px; border-radius: var(--ep-r); font-size: 12px; min-height: 0; transition: all .2s; display: block !important; }
.tfsep-test-result.running { background: var(--ep-blue-bg) !important; padding: 10px 12px; border: 1px solid #b8d8ef !important; color: #0a3d5c; }
.tfsep-test-result.pass    { background: var(--ep-green-bg) !important; padding: 10px 12px; border: 1px solid #a7e8c5 !important; color: #0a5c2e; }
.tfsep-test-result.fail    { background: var(--ep-red-bg) !important;   padding: 10px 12px; border: 1px solid #f5aaaa !important; color: #7a0c0c; }
.tfsep-test-result.info    { background: var(--ep-blue-bg) !important;  padding: 10px 12px; border: 1px solid #b8d8ef !important; color: #0a3d5c; }

/* Logs page */
.ep-log-level-row:hover { border-color: #6366f1 !important; background: #fafafa !important; }

/* ══════════════════════════════════════════════════════════
   SETUP WIZARD — full-page modal overlay
══════════════════════════════════════════════════════════ */

/* Hide WP chrome on wizard page */
body.tfsep-wizard-page { margin: 0 !important; padding: 0 !important; background: rgba(0,0,0,.55) !important; overflow: hidden; }
body.tfsep-wizard-page #wpadminbar,
body.tfsep-wizard-page #adminmenuback,
body.tfsep-wizard-page #adminmenuwrap,
body.tfsep-wizard-page #wpfooter { display: none !important; }
body.tfsep-wizard-page #wpcontent  { margin-left: 0 !important; float: none; }
body.tfsep-wizard-page #wpbody     { padding-top: 0 !important; }
body.tfsep-wizard-page #wpbody-content { padding-bottom: 0 !important; }
body.tfsep-wizard-page .update-nag,
body.tfsep-wizard-page .notice,
body.tfsep-wizard-page .error,
body.tfsep-wizard-page .updated { display: none !important; }

/* Overlay */
.tfsep-wz-overlay {
    position: fixed; inset: 0;
    display: flex; align-items: flex-start; justify-content: center;
    z-index: 99999; overflow-y: auto; padding: 48px 20px 40px;
    box-sizing: border-box;
}

/* Modal */
.tfsep-wz-modal {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 800px;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
    padding: 36px 44px;
    box-sizing: border-box; position: relative;
}

/* Header bar */
.tfsep-wz-header {
    display: flex; align-items: center; gap: 20px;
    padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; margin-bottom: 28px;
}
.tfsep-wz-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tfsep-wz-logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.tfsep-wz-logo-link:hover { opacity: .8; }
.tfsep-wz-steps { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.tfsep-wz-step {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: #9ca3af; white-space: nowrap;
}
.tfsep-wz-step.active  { color: #1d6ff3; }
.tfsep-wz-step.completed { color: #00a651; }
.tfsep-wz-dot {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d1d5db;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; background: #fff; color: #9ca3af;
}
.tfsep-wz-step.active  .tfsep-wz-dot { border-color: #1d6ff3; color: #1d6ff3; }
.tfsep-wz-step.completed .tfsep-wz-dot { border-color: #00a651; background: #00a651; color: #fff; }
.tfsep-wz-step.completed .tfsep-wz-dot::before { content: '\2713'; font-size: 12px; }
.tfsep-wz-step.completed .tfsep-wz-dot { font-size: 0; }
.tfsep-wz-divider { width: 28px; height: 1px; background: #e5e7eb; margin: 0 6px; flex-shrink: 0; }
.tfsep-wz-skip { margin-left: auto; font-size: 12px; color: #9ca3af; text-decoration: none; flex-shrink: 0; }
.tfsep-wz-skip:hover { color: #1d6ff3; }

/* Panels */
.tfsep-wz-panel { display: none; }
.tfsep-wz-panel.active { display: block; }

/* Card — no extra border/shadow inside modal */
.tfsep-wz-card { }
.tfsep-wz-card-icon { font-size: 36px; margin-bottom: 12px; }
.tfsep-wz-card-title { font-size: 20px; font-weight: 800; color: #1e293b; margin: 0 0 8px; }
.tfsep-wz-card-desc { font-size: 13px; color: #64748b; margin: 0 0 24px; line-height: 1.6; }

/* Mode pills */
.tfsep-wz-mode-row { display: flex; gap: 10px; margin-bottom: 22px; }
.tfsep-wz-mode-pill {
    flex: 1; padding: 10px 16px; border: 2px solid #e5e7eb; border-radius: 8px;
    cursor: pointer; font-size: 13px; font-weight: 600; color: #6b7280;
    display: flex; align-items: center; gap: 8px; transition: all .15s;
}
.tfsep-wz-mode-pill input { display: none; }
.tfsep-wz-mode-pill.active { border-color: #1d6ff3; color: #1d6ff3; background: #eff5ff; }

/* Fields */
.tfsep-wz-field { margin-bottom: 16px; }
.tfsep-wz-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; margin-bottom: 5px; }
.tfsep-wz-input {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; color: #1e293b; transition: border-color .15s;
}
.tfsep-wz-input:focus { border-color: #1d6ff3; outline: none; box-shadow: 0 0 0 3px rgba(29,111,243,.1); }
.tfsep-wz-input-row { display: flex; gap: 8px; }
.tfsep-wz-input-row .tfsep-wz-input { flex: 1; }
.tfsep-wz-hint { font-size: 11px; color: #9ca3af; margin: 4px 0 0; }
.tfsep-wz-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tfsep-wz-g3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }

/* Packing options */
.tfsep-wz-packing-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.tfsep-wz-packing-opt {
    display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto;
    gap: 0 12px; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 8px;
    cursor: pointer; transition: all .15s; align-items: start;
}
.tfsep-wz-packing-opt input { display: none; }
.tfsep-wz-packing-opt.selected { border-color: #1d6ff3; background: #eff5ff; }
.tfsep-wz-packing-icon { font-size: 22px; grid-row: 1 / 3; display: flex; align-items: center; padding-top: 2px; }
.tfsep-wz-packing-label { font-size: 13px; font-weight: 700; color: #1e293b; }
.tfsep-wz-packing-desc  { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Result messages */
.tfsep-wz-result { padding: 9px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 16px; }
.tfsep-wz-result.running { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.tfsep-wz-result.pass    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.tfsep-wz-result.fail    { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

/* Buttons */
.tfsep-wz-btn-ghost, .tfsep-wz-btn-primary {
    padding: 10px 22px; border-radius: 6px; font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none; border: none; display: inline-flex; align-items: center;
}
.tfsep-wz-btn-primary { background: #1d6ff3; color: #fff; }
.tfsep-wz-btn-primary:hover { background: #1558d0; color: #fff; }
.tfsep-wz-btn-ghost { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.tfsep-wz-btn-ghost:hover { background: #e5e7eb; color: #374151; }
.tfsep-wz-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

/* Zone status block */
.tfsep-wz-zone-status {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 8px;
    background: #fef9ec; border: 1px solid #fde68a;
    margin-bottom: 16px; font-size: 13px;
}
.tfsep-wz-zone-status.active { background: #f0fdf4; border-color: #bbf7d0; }
