/* ── Base ──────────────────────────────────────────────────────────────────── */
#tbm-app { font-family: 'Segoe UI', Arial, sans-serif; direction: rtl; color: #1f2937; }

/* ── Search Box ─────────────────────────────────────────────────────────────── */
.tbm-search-wrap { background: linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%); padding: 48px 20px; text-align: center; }
.tbm-search-inner { max-width: 680px; margin: 0 auto; }
.tbm-search-box { display: flex; align-items: center; background: #fff; border-radius: 50px; padding: 6px 6px 6px 20px; box-shadow: 0 4px 24px rgba(0,0,0,.18); gap: 8px; }
.tbm-search-icon { width: 20px; height: 20px; color: #6b7280; flex-shrink: 0; }
#tbm-query { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; direction: ltr; text-align: left; }
#tbm-search-btn { background: #2563eb; color: #fff; border: none; border-radius: 40px; padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; }
#tbm-search-btn:hover { background: #1d4ed8; }
.tbm-search-hint { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 12px; }

/* ── Stats counter ──────────────────────────────────────────────────────────── */
.tbm-stats-bar { display: flex; justify-content: center; align-items: center; margin-bottom: 28px; }
.tbm-stat { text-align: center; padding: 0 28px; }
.tbm-stat-num { display: block; font-size: 28px; font-weight: 600; color: #fff; line-height: 1; }
.tbm-stat-label { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 5px; letter-spacing: .02em; }
.tbm-stat-div { width: 1px; height: 38px; background: rgba(255,255,255,.22); flex-shrink: 0; }

/* ── Results count ──────────────────────────────────────────────────────────── */
#tbm-results { max-width: 900px; margin: 30px auto; padding: 0 16px; }
.tbm-results-count { color: #6b7280; font-size: 14px; margin-bottom: 16px; }
.tbm-results-count strong { color: #1f2937; }

/* ── Part Chips ─────────────────────────────────────────────────────────────── */
.tbm-chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.tbm-part-chip {
    display: inline-block;
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    user-select: none;
    direction: ltr;
}
.tbm-part-chip:hover { background: #dbeafe; border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(37,99,235,.15); }
.tbm-part-chip.tbm-chip-active { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 2px 10px rgba(37,99,235,.35); }

/* ── Part Detail Panel ──────────────────────────────────────────────────────── */
#tbm-part-detail {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.tbm-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tbm-detail-title { font-size: 18px; font-weight: 700; color: #1e3a5f; direction: ltr; }
.tbm-detail-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 20px; }
.tbm-detail-close { background: none; border: none; font-size: 18px; color: #9ca3af; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.tbm-detail-close:hover { background: #f3f4f6; color: #374151; }

/* ── Manufacturer Block ──────────────────────────────────────────────────────── */
.tbm-mfr-list { display: flex; flex-direction: column; gap: 16px; }
.tbm-mfr-block { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; }
.tbm-mfr-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.tbm-mfr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbm-mfr-name { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.tbm-mfr-name-link { cursor: pointer; border-bottom: 1px dashed #3b82f6; }
.tbm-mfr-name-link:hover { color: #2563eb; border-bottom-style: solid; }
.tbm-mfr-flag { font-size: 18px; }
.tbm-mfr-country { font-size: 12px; color: #6b7280; background: #e5e7eb; border-radius: 10px; padding: 2px 8px; }
.tbm-mfr-website { font-size: 13px; color: #2563eb; text-decoration: none; }
.tbm-mfr-website:hover { text-decoration: underline; }
.tbm-mfr-catalogue { font-size: 13px; color: #059669; text-decoration: none; }
.tbm-mfr-catalogue:hover { text-decoration: underline; }
.tbm-catalogue-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fdf4; color: #059669 !important; text-decoration: none !important;
    border: 1.5px solid #6ee7b7; border-radius: 8px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; transition: all .15s;
}
.tbm-catalogue-btn:hover { background: #dcfce7; border-color: #34d399; }
.tbm-bc-catalogue {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #059669 !important; text-decoration: none !important;
    background: #f0fdf4; border: 1px solid #6ee7b7; border-radius: 6px; padding: 3px 8px;
    transition: all .15s;
}
.tbm-bc-catalogue:hover { background: #dcfce7; }
.tbm-no-imp { font-size: 13px; color: #9ca3af; margin: 6px 0 0; }

/* ── Importers ───────────────────────────────────────────────────────────────── */
.tbm-imp-label { font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.tbm-imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; align-items: stretch; }
.tbm-imp-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; transition: box-shadow .18s; }
.tbm-imp-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.tbm-imp-card.tier-premium { border-color: #f59e0b; background: #fffbeb; }
.tbm-imp-card.tier-standard { border-color: #10b981; background: #f0fdf4; }
.tbm-imp-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.tbm-imp-contacts { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tbm-imp-contact { font-size: 12px; color: #4b5563; }
.tbm-imp-contact a { color: #2563eb; text-decoration: none; }
.tbm-imp-contact a:hover { text-decoration: underline; }
.tbm-tier-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #10b981; color: #fff; display: inline-block; margin-bottom: 4px; }
.tbm-tier-badge.premium { background: #f59e0b; }
.tbm-rfq-btn { margin-top: auto; background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; }
.tbm-rfq-btn:hover { background: #1d4ed8; }

/* ── Loading / Empty ────────────────────────────────────────────────────────── */
.tbm-loading { text-align: center; padding: 48px; }
.tbm-spinner { width: 36px; height: 36px; border: 3px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%; animation: tbm-spin .7s linear infinite; margin: 0 auto 12px; }
@keyframes tbm-spin { to { transform: rotate(360deg); } }
.tbm-empty { text-align: center; padding: 60px 20px; color: #6b7280; }
.tbm-empty h3 { font-size: 18px; color: #374151; margin: 12px 0 6px; }

/* ── Modal ───────────────────────────────────────────────────────────────────── */
#tbm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
#tbm-modal { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 500px; position: relative; max-height: 90vh; overflow-y: auto; }
#tbm-modal h3 { margin: 0 0 6px; font-size: 20px; color: #1e3a5f; }
#tbm-modal-part-label { color: #6b7280; font-size: 13px; margin-bottom: 20px; direction: ltr; }
#tbm-modal-close { position: absolute; top: 16px; left: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; }
.tbm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tbm-field { display: flex; flex-direction: column; gap: 5px; }
.tbm-field-full { grid-column: 1 / -1; }
.tbm-field label { font-size: 13px; font-weight: 600; color: #374151; }
.tbm-field input, .tbm-field textarea { border: 1.5px solid #d1d5db; border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; transition: border-color .15s; }
.tbm-field input:focus, .tbm-field textarea:focus { border-color: #2563eb; }
#tbm-lead-submit { width: 100%; background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 18px; transition: background .2s; }
#tbm-lead-submit:hover { background: #1d4ed8; }
#tbm-lead-msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
#tbm-lead-msg.ok { background: #d1fae5; color: #065f46; }
#tbm-lead-msg.err { background: #fee2e2; color: #991b1b; }

@media (max-width: 600px) {
    .tbm-form-grid { grid-template-columns: 1fr; }
    .tbm-imp-grid { grid-template-columns: 1fr; }
    .tbm-search-box { border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
    #tbm-search-btn { width: 100%; border-radius: 8px; }
}

/* ── Live Suggestions Dropdown ──────────────────────────────────────────────── */
.tbm-search-box-wrap { position: relative; }
#tbm-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: #fff; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden; text-align: right; max-height: 380px; overflow-y: auto;
}
.tbm-sug-item {
    padding: 11px 18px; cursor: pointer; border-bottom: 1px solid #f3f4f6;
    display: flex; flex-direction: column; gap: 2px; transition: background .12s;
}
.tbm-sug-item:last-child { border-bottom: none; }
.tbm-sug-item:hover, .tbm-sug-item.active { background: #eff6ff; }
.tbm-sug-label { font-size: 14px; color: #1f2937; direction: ltr; text-align: left; }
.tbm-sug-label b { color: #2563eb; }
.tbm-sug-via  { font-size: 11.5px; color: #059669; }
.tbm-sug-swap { font-size: 11.5px; color: #b45309; direction: rtl; }
.tbm-swap-note {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #92400e; margin-bottom: 14px;
}

/* ── Synonyms row in part detail ────────────────────────────────────────────── */
.tbm-syn-row { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.tbm-syn-link { color: #2563eb; cursor: pointer; direction: ltr; display: inline-block; }
.tbm-syn-link:hover { text-decoration: underline; }

/* ── Logos ──────────────────────────────────────────────────────────────────── */
.tbm-mfr-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; padding: 2px; }
.tbm-imp-top  { display: flex; align-items: center; gap: 8px; }
.tbm-imp-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 5px; background: #fff; border: 1px solid #e5e7eb; padding: 2px; flex-shrink: 0; }
.tbm-imp-link { cursor: pointer; color: #1d4ed8; }
.tbm-imp-link:hover { text-decoration: underline; }

/* ── Importer Profile ───────────────────────────────────────────────────────── */
.tbm-back-btn {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 7px 16px; font-size: 13px; cursor: pointer; margin-bottom: 14px;
    color: #374151; transition: all .15s;
}
.tbm-back-btn:hover { border-color: #2563eb; color: #2563eb; }
.tbm-profile {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px;
    padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.tbm-profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.tbm-profile-logo { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 6px; }
.tbm-profile-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 36px; background: #f3f4f6; }
.tbm-profile-name { font-size: 22px; font-weight: 800; color: #1e3a5f; margin-bottom: 6px; }
.tbm-profile-contacts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #4b5563; }
.tbm-profile-contacts a { color: #2563eb; text-decoration: none; }
.tbm-profile-contacts a:hover { text-decoration: underline; }
.tbm-profile-about {
    background: #f9fafb; border-right: 3px solid #2563eb; border-radius: 8px;
    padding: 14px 18px; font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 20px;
}
.tbm-profile-section-title { font-size: 14px; font-weight: 700; color: #1e3a5f; margin: 20px 0 12px; }
.tbm-mfr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; }
.tbm-mfr-tile {
    background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 14px 10px; text-align: center; cursor: pointer; transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tbm-mfr-tile:hover { border-color: #2563eb; box-shadow: 0 3px 12px rgba(37,99,235,.15); transform: translateY(-2px); }
.tbm-mfr-tile img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; }
.tbm-mfr-tile-ph { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fff; border-radius: 8px; border: 1px dashed #d1d5db; }
.tbm-mfr-tile-name { font-size: 12.5px; font-weight: 600; color: #1f2937; }
.tbm-mfr-tile-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tbm-mfr-page-link { display: inline-block; font-size: 11.5px; font-weight: 600; color: #2563eb; text-decoration: none; padding: 3px 10px; border: 1.5px solid #2563eb; border-radius: 20px; line-height: 1.4; white-space: nowrap; transition: all .15s; }
.tbm-mfr-page-link:hover { background: #2563eb; color: #fff; }
.tbm-mfr-page-link-parts { font-size: 12px; margin-right: 10px; vertical-align: middle; }
#tbm-profile-parts { margin-top: 8px; }
/* Multi-select hint */
.tbm-multiselect-hint { font-size: 12px; color: #6b7280; margin: 2px 0 8px; text-align: center; }
/* Matched parts row inside manufacturer block */
.tbm-matched-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 12px 4px; border-bottom: 1px solid #f3f4f6; }
.tbm-matched-label { font-size: 11.5px; color: #6b7280; font-weight: 600; margin-left: 4px; }
.tbm-matched-chip { font-size: 11.5px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.tbm-matched-more { font-size: 11.5px; color: #9ca3af; padding: 2px 4px; }
.tbm-mini-chip { font-size: 12.5px; padding: 5px 12px; }

/* ── Grouped suggestions (v2.2) ─────────────────────────────────────────────── */
.tbm-sug-group {
    padding: 7px 16px 5px; font-size: 11.5px; font-weight: 700; color: #6b7280;
    background: #f9fafb; border-bottom: 1px solid #f3f4f6; letter-spacing: .02em;
}
.tbm-sug-row { display: flex; align-items: center; gap: 8px; }
.tbm-sug-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid #e5e7eb; flex-shrink: 0; }
.tbm-sug-logo-ph { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: #f3f4f6; border-radius: 4px; flex-shrink: 0; }
.tbm-sug-label-he { font-size: 14px; color: #1f2937; }

/* ── Category accordion (v2.2) ──────────────────────────────────────────────── */
.tbm-acc { border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.tbm-acc summary {
    cursor: pointer; padding: 12px 16px; font-weight: 700; color: #1e3a5f;
    background: #f9fafb; list-style: none; display: flex; align-items: center; gap: 6px;
    transition: background .15s; user-select: none;
}
.tbm-acc summary::-webkit-details-marker { display: none; }
.tbm-acc summary::after { content: '▾'; margin-right: auto; color: #9ca3af; transition: transform .2s; }
.tbm-acc[open] summary::after { transform: rotate(180deg); }
.tbm-acc summary:hover { background: #eff6ff; }
.tbm-acc-count { color: #6b7280; font-weight: 500; font-size: 13px; }
.tbm-acc-body { padding: 12px 16px; }
.tbm-acc-sub { font-size: 12.5px; font-weight: 600; color: #6b7280; margin: 8px 0 6px; }

/* ── Manufacturer logo placeholder (v2.2) ───────────────────────────────────── */
.tbm-mfr-logo-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: #f3f4f6; border: 1px dashed #d1d5db !important; }

/* ── Address + Map block (v2.3) ─────────────────────────────────────────────── */
.tbm-address-block { background: #f8faff; border: 1px solid #dbeafe; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.tbm-address-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tbm-address-text { color: #374151; font-size: 14px; flex: 1; min-width: 180px; }
.tbm-nav-btn { display: inline-flex; align-items: center; gap: 6px; background: #2563eb; color: #fff !important; text-decoration: none !important; border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.tbm-nav-btn:hover { background: #1d4ed8; }
.tbm-map-wrap { border-radius: 10px; overflow: hidden; line-height: 0; }

/* ── Feedback button + modal ─────────────────────────────────────────────────── */
.tbm-feedback-bar { text-align: center; margin-top: 12px; }
.tbm-feedback-link {
    background: none; border: none; color: rgba(255,255,255,.7);
    font-size: 13px; cursor: pointer; text-decoration: underline;
    text-underline-offset: 3px; padding: 0; transition: color .2s;
}
.tbm-feedback-link:hover { color: #fff; }

#tbm-feedback-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
#tbm-feedback-modal {
    background: #fff; border-radius: 18px; padding: 32px 28px;
    max-width: 500px; width: 100%; position: relative; direction: rtl;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
#tbm-feedback-modal h3 { font-size: 20px; font-weight: 800; color: #1e3a5f; margin: 0 0 4px; }
.tbm-feedback-sub { color: #6b7280; font-size: 13px; margin: 0 0 20px; }
.tbm-feedback-close {
    position: absolute; top: 14px; left: 16px;
    background: none; border: none; font-size: 18px; color: #9ca3af; cursor: pointer;
}
.tbm-feedback-close:hover { color: #374151; }
.tbm-feedback-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tbm-feedback-cats label {
    display: flex; align-items: center; gap: 5px;
    background: #f3f4f6; border-radius: 20px; padding: 6px 14px;
    font-size: 13px; cursor: pointer; transition: background .15s;
}
.tbm-feedback-cats label:has(input:checked) { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
#tbm-fb-submit {
    margin-top: 18px; width: 100%; padding: 12px;
    background: #2563eb; color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .2s;
}
#tbm-fb-submit:hover { background: #1d4ed8; }
#tbm-fb-submit:disabled { background: #93c5fd; cursor: default; }
.tbm-msg-ok  { color: #059669; background: #d1fae5; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 12px; }
.tbm-msg-err { color: #dc2626; background: #fee2e2; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 12px; }

/* ── Browse buttons (below search bar) ──────────────────────────────────────── */
.tbm-browse-btns { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.tbm-browse-btn {
    background: rgba(255,255,255,.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 30px; padding: 9px 22px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
}
.tbm-browse-btn:hover { background: rgba(255,255,255,.28); border-color: #fff; transform: translateY(-1px); }

/* ── Browse panel wrapper ────────────────────────────────────────────────────── */
.tbm-browse-panel { }
.tbm-browse-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tbm-browse-title { font-size: 20px; font-weight: 800; color: #1e3a5f; }
.tbm-browse-close {
    background: none; border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 6px 14px; font-size: 13px; color: #6b7280; cursor: pointer; transition: all .15s;
}
.tbm-browse-close:hover { border-color: #ef4444; color: #ef4444; }

/* ── Filter bar ─────────────────────────────────────────────────────────────── */
.tbm-browse-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tbm-browse-filter {
    flex: 1; min-width: 180px; border: 1.5px solid #d1d5db;
    border-radius: 8px; padding: 9px 14px; font-size: 14px; outline: none; transition: border-color .15s;
}
.tbm-browse-filter:focus { border-color: #2563eb; }
.tbm-browse-country-filter {
    border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 9px 12px; font-size: 14px; outline: none; background: #fff; cursor: pointer;
}
.tbm-browse-count { font-size: 13px; color: #6b7280; white-space: nowrap; margin-right: auto; }

/* ── Browse panel rating filter row ────────────────────────────────────────── */
.tbm-browse-rating-row {
    background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 9px 14px; margin-top: 0; flex-wrap: wrap; align-items: center;
}
.tbm-browse-star-btn {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 20px;
    padding: 5px 14px; font-size: 13px; color: #374151;
    cursor: pointer; transition: all .15s; letter-spacing: .02em;
}
.tbm-browse-star-btn:hover  { border-color: #f59e0b; color: #92400e; }
.tbm-browse-star-btn.active { background: #fef3c7; border-color: #f59e0b; color: #92400e; font-weight: 700; }

/* ── Cards grid ─────────────────────────────────────────────────────────────── */
.tbm-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; width: 100%; align-items: stretch; }

.tbm-browse-card {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 16px; cursor: pointer; transition: all .18s;
    display: flex; flex-direction: column; 
    height: 100%; box-sizing: border-box; min-height: 148px; box-sizing: border-box;
}
.tbm-browse-card:hover { border-color: #2563eb; box-shadow: 0 4px 18px rgba(37,99,235,.15); transform: translateY(-2px); }

/* card top row: logo + info */
.tbm-bc-top  { display: flex; align-items: center; gap: 12px; }
.tbm-bc-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f9fafb; border: 1px solid #e5e7eb; padding: 4px; flex-shrink: 0; }
.tbm-bc-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 24px; background: #f3f4f6; border: 1px dashed #d1d5db; }
.tbm-bc-info { flex: 1; min-width: 0; }
.tbm-bc-name { font-size: 14px; font-weight: 700; color: #1e3a5f; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.tbm-bc-country { font-size: 12px; color: #6b7280; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbm-bc-site { font-size: 16px; text-decoration: none; flex-shrink: 0; align-self: flex-start; }

/* contact lines */
.tbm-bc-contacts { display: flex; flex-direction: column; gap: 3px; }
.tbm-bc-contact { font-size: 12px; color: #4b5563; }
.tbm-bc-contact a { color: #2563eb; text-decoration: none; }
.tbm-bc-contact a:hover { text-decoration: underline; }

/* mini logos rows */
.tbm-bc-mfrs, .tbm-bc-imps-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tbm-bc-mfr-logo, .tbm-bc-imp-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; background: #fff; border: 1px solid #e5e7eb; padding: 2px; }
.tbm-bc-mfr-ph, .tbm-bc-imp-ph { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #f3f4f6; border-radius: 5px; border: 1px dashed #d1d5db; }
.tbm-bc-more { font-size: 11px; color: #6b7280; background: #f3f4f6; border-radius: 10px; padding: 2px 7px; }
.tbm-bc-mfr-count { font-size: 12px; color: #9ca3af; }
.tbm-bc-no-imp { font-size: 12px; color: #9ca3af; }

/* category chips */
.tbm-bc-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.tbm-bc-cat { font-size: 11px; background: #eff6ff; color: #1e40af; border-radius: 10px; padding: 2px 8px; }
.tbm-bc-cat-more { background: #f3f4f6; color: #6b7280; }

@media (max-width: 600px) {
    .tbm-browse-grid { grid-template-columns: 1fr; }
    .tbm-browse-btns { gap: 8px; }
    .tbm-browse-btn  { padding: 8px 16px; font-size: 13px; }
}

/* ── Part-detail filter bar (v2.5) ──────────────────────────────────────────── */
#tbm-filter-bar {
    max-width: 900px; margin: 14px auto 0; padding: 12px 16px;
    background: #f0f7ff; border: 1.5px solid #bfdbfe; border-radius: 12px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
#tbm-filter-countries { display: flex; flex-wrap: wrap; gap: 6px; }
#tbm-filter-rating    { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-right: auto; }
.tbm-filter-label { font-size: 12px; color: #6b7280; font-weight: 600; white-space: nowrap; }

.tbm-filter-chip {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 20px;
    padding: 5px 13px; font-size: 12.5px; color: #374151; cursor: pointer; transition: all .15s;
}
.tbm-filter-chip:hover  { border-color: #93c5fd; }
.tbm-filter-chip.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }

.tbm-filter-star {
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 20px;
    padding: 5px 11px; font-size: 12.5px; color: #374151; cursor: pointer; transition: all .15s;
}
.tbm-filter-star:hover  { border-color: #fcd34d; }
.tbm-filter-star.active { background: #fef9c3; border-color: #fcd34d; color: #92400e; font-weight: 600; }

/* ── Manufacturer rating badge (v2.5) ───────────────────────────────────────── */
.tbm-mfr-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Score badge — colored square */
.tbm-score-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    font-size: 15px; font-weight: 800; flex-shrink: 0; letter-spacing: -.5px;
}
.tbm-score-badge.tbm-score-green { background: #d1fae5; color: #065f46; }
.tbm-score-badge.tbm-score-amber { background: #fef3c7; color: #92400e; }
.tbm-score-badge.tbm-score-red   { background: #fee2e2; color: #991b1b; }
.tbm-score-badge.tbm-score-gray  { background: #f3f4f6; color: #9ca3af; border: 1.5px solid #e5e7eb; }

/* Smaller variant for browse cards */
.tbm-score-badge.tbm-score-sm { width: 34px; height: 34px; font-size: 13px; border-radius: 7px; }

/* Rating wrap: badge + stars side by side */
.tbm-rating-wrap { display: flex; align-items: center; gap: 8px; }
.tbm-rating-detail { display: flex; flex-direction: column; gap: 2px; }

/* "Rate this" prompt when no rating yet */
.tbm-rating-unrated { }
.tbm-rate-prompt {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: #f8faff; border: 1.5px dashed #93c5fd; border-radius: 10px;
    padding: 6px 12px; cursor: default;
}
.tbm-rate-label { font-size: 11px; color: #3b82f6; font-weight: 600; white-space: nowrap; }

/* Clickable stars (voting) */
.tbm-stars-row { display: flex; gap: 2px; }
.tbm-star-pick {
    font-size: 20px; color: #93c5fd; cursor: pointer;
    transition: color .1s; line-height: 1; user-select: none;
}
.tbm-star-pick.filled  { color: #f59e0b; }
.tbm-star-pick.hovered { color: #fbbf24; }
.tbm-rating-count { font-size: 11px; color: #9ca3af; }
.tbm-rating-msg   { font-size: 11px; color: #059669; }

/* ── Rating in manufacturer profile header ─────────────────────────────────── */
.tbm-profile-rating { margin-top: 10px; }

/* ── Inline review form (appears after star click) ────────────────────────── */
.tbm-rate-inline-form {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8faff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tbm-review-text {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    font-size: 13px;
    color: #374151;
    font-family: inherit;
    resize: vertical;
    outline: none;
    direction: rtl;
}
.tbm-review-text:focus { border-color: #2563eb; }

.tbm-rate-form-row { display: flex; gap: 8px; align-items: center; }

.tbm-rate-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.tbm-rate-submit:hover { background: #1d4ed8; }

.tbm-rate-cancel {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.tbm-rate-cancel:hover { color: #374151; }

/* ── Reviews toggle button ─────────────────────────────────────────────────── */
.tbm-reviews-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.tbm-reviews-toggle:hover { border-color: #2563eb; color: #2563eb; }

/* ── Reviews list ──────────────────────────────────────────────────────────── */
.tbm-reviews-list { margin-top: 4px; }

.tbm-reviews-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 4px;
}

.tbm-review-item {
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.tbm-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.tbm-review-author {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.tbm-rv-star        { font-size: 14px; color: #d1d5db; }
.tbm-rv-star.filled { color: #f59e0b; }

.tbm-review-date {
    font-size: 11px;
    color: #9ca3af;
    margin-right: auto;
}

.tbm-review-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}


/* ── Contact pill buttons (v2.9.7) ───────────────────────────────────────────── */
.tbm-contact-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tbm-imp-contacts.tbm-contact-pills { flex-direction: row; }

.tbm-contact-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
    text-decoration: none !important; white-space: nowrap;
    transition: filter .15s, transform .1s; line-height: 1.3;
    border: 1.5px solid transparent;
}
.tbm-contact-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.tbm-contact-btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none !important; }

.tbm-btn-phone  { background: #eff6ff; color: #1d4ed8 !important; border-color: #bfdbfe; }
.tbm-btn-phone:hover  { background: #dbeafe; }
.tbm-btn-wa     { background: #f0fdf4; color: #15803d !important; border-color: #bbf7d0; }
.tbm-btn-wa:hover     { background: #dcfce7; }
.tbm-btn-email  { background: #fffbeb; color: #b45309 !important; border-color: #fde68a; }
.tbm-btn-email:hover  { background: #fef3c7; }
.tbm-btn-web    { background: #f8fafc; color: #475569 !important; border-color: #cbd5e1; }
.tbm-btn-web:hover    { background: #f1f5f9; }

/* legacy — keep so old cached HTML still looks ok */
.tbm-wa-link { color: #059669 !important; font-weight: 600; }
.tbm-wa-link:hover { text-decoration: underline; color: #047857 !important; }
.tbm-wa-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #059669; color: #fff !important; text-decoration: none !important;
    border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600;
    white-space: nowrap; transition: background .15s;
}
.tbm-wa-btn:hover { background: #047857; }

/* ── CAD download buttons (v2.9) ─────────────────────────────────────────────── */
.tbm-cad-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.tbm-cad-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0f7ff; color: #1e40af !important; text-decoration: none !important;
    border: 1.5px solid #bfdbfe; border-radius: 8px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; transition: all .15s;
}
.tbm-cad-btn:hover { background: #dbeafe; border-color: #93c5fd; }

/* ── Browse card extras (v2.9) ──────────────────────────────────────────────── */
.tbm-bc-desc {
    font-size: 12px; color: #6b7280; line-height: 1.5;
    direction: rtl; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tbm-bc-cad-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.tbm-bc-cad {
    font-size: 11px; color: #1e40af !important; text-decoration: none !important;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px;
    padding: 3px 9px; font-weight: 600; white-space: nowrap; transition: all .15s;
}
.tbm-bc-cad:hover { background: #dbeafe; }

/* ── CAD logo button ──────────────────────────────────────── */
.tbm-cad-logo-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 5px 10px;
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.tbm-cad-logo-btn:hover { background: #dbeafe; border-color: #93c5fd; }
.tbm-cad-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.tbm-cad-logo-sm {
  width: 32px;
  height: 32px;
}
.tbm-cad-n2 {
  font-size: 11px;
  color: #1e40af;
  font-weight: 700;
}

/* ── CAD badge on mfr cards ──────────────────────────────── */
.tbm-mfr-header-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tbm-cad-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}
.tbm-cad-badge-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity .15s;
}
.tbm-cad-badge:hover .tbm-cad-badge-img { opacity: 1; }
.tbm-cad-badge-txt {
  font-size: 11px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 2px 7px;
  color: #1e40af;
  font-weight: 600;
}

/* ── CAD filter button ───────────────────────────────────── */
#tbm-filter-cad-wrap { display:inline-flex; align-items:center; }
.tbm-filter-cad-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.tbm-filter-cad-btn:hover { background: #dbeafe; border-color: #93c5fd; }
.tbm-filter-cad-btn.active {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

/* ── Browse manufacturers CAD filter button ─────────────── */
.tbm-browse-cad-row { padding: 0 16px 10px; }
.tbm-browse-cad-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  cursor: pointer;
  transition: backgro
/* Cart btn */
.tbm-cart-btn{display:block;width:100%;margin-top:10px;padding:7px 0;border:1.5px solid #2563eb;border-radius:7px;background:transparent;color:#2563eb;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s;text-align:center;}
.tbm-cart-btn:hover{background:#2563eb;color:#fff;}
.tbm-cart-btn.tbm-cart-added{background:#059669;border-color:#059669;color:#fff;cursor:default;}
/* FAB */
#tbm-cart-fab{position:fixed;bottom:28px;left:28px;z-index:9990;background:#2563eb;color:#fff;border:none;border-radius:50px;padding:12px 22px;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 4px 24px rgba(37,99,235,.4);transition:all .2s;}
#tbm-cart-fab:hover{background:#1d4ed8;transform:translateY(-2px);}
.tbm-cart-fab-count{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#2563eb;border-radius:50%;width:22px;height:22px;font-size:12px;font-weight:800;margin-right:7px;}
/* Modal */
#tbm-modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:9991;}
#tbm-modal-wrap{position:fixed;inset:0;z-index:9992;overflow-y:auto;padding:24px 16px;display:flex;align-items:flex-start;justify-content:center;}
#tbm-modal{background:#fff;border-radius:16px;padding:28px 28px 24px;width:100%;max-width:500px;margin:auto;position:relative;direction:rtl;box-shadow:0 24px 64px rgba(0,0,0,.2);}
#tbm-modal-x{position:absolute;top:14px;left:16px;background:none;border:none;font-size:20px;cursor:pointer;color:#9ca3af;line-height:1;padding:4px 8px;}
#tbm-modal-x:hover{color:#374151;}
#tbm-modal-title{font-size:19px;font-weight:700;color:#1e3a5f;margin:0 0 14px;}
.tbm-cart-item{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f9fafb;border-radius:8px;margin-bottom:6px;}
.tbm-ci-name{flex:1;font-size:13px;font-weight:600;color:#1e3a5f;}
.tbm-ci-type{font-size:11px;font-weight:700;border-radius:4px;padding:2px 7px;white-space:nowrap;}
.tbm-ci-imp{background:#dbeafe;color:#1d4ed8;}
.tbm-ci-mfr{background:#d1fae5;color:#065f46;}
.tbm-ci-remove{background:none;border:none;color:#9ca3af;cursor:pointer;font-size:14px;padding:2px 6px;}
.tbm-ci-remove:hover{color:#ef4444;}
/* Form */
#tbm-inq-form{margin-top:14px;border-top:1px solid #f3f4f6;padding-top:14px;}
.tbm-f-row{margin-bottom:13px;}
.tbm-f-lbl{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:5px;}
.tbm-req{color:#ef4444;}
.tbm-f-input{width:100%;padding:9px 12px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:14px;box-sizing:border-box;font-family:inherit;transition:border .15s;direction:rtl;}
.tbm-f-input:focus{border-color:#2563eb;outline:none;}
textarea.tbm-f-input{resize:vertical;min-height:68px;}
#tbm-f-send{width:100%;padding:12px;background:#2563eb;color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;transition:background .15s;margin-top:4px;}
#tbm-f-send:hover{background:#1d4ed8;}
#tbm-f-send:disabled{background:#93c5fd;cursor:not-allowed;}
.tbm-f-close-btn{padding:10px 28px;background:#2563eb;color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;}
.tbm-f-close-btn:hover{background:#1d4ed8;}

/* ── Procurement Drawer ─────────────────────────────────────────────────── */
#tbm-drawer-overlay {
    display:none; position:fixed !important; inset:0;
    background:rgba(0,0,0,.45); z-index:999998 !important;
}
#tbm-drawer {
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    left:auto !important;
    bottom:0 !important;
    width:400px !important;
    max-width:92vw !important;
    min-width:0 !important;
    height:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
    z-index:999999 !important;
    box-shadow:-6px 0 32px rgba(0,0,0,.22) !important;
    transform:translateX(105%) !important;
    transition:transform .28s cubic-bezier(.4,0,.2,1) !important;
    display:flex !important;
    flex-direction:column !important;
    direction:rtl !important;
    overflow:hidden !important;
    visibility:hidden !important;
    box-sizing:border-box !important;
}
#tbm-drawer.tbm-open {
    transform:translateX(0) !important;
    visibility:visible !important;
}
#tbm-drawer * { box-sizing:border-box; }
/* ══ Drawer modern redesign v1.3.16 ══════════════════════════════ */
#tbm-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 22px 20px 18px !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
    border-radius: 0 !important;
}
#tbm-drawer-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
}
#tbm-drawer-close {
    background: rgba(255,255,255,.15) !important;
    border: none !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #fff !important;
    padding: 5px 9px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    transition: background .15s !important;
}
#tbm-drawer-close:hover { background: rgba(255,255,255,.28) !important; }

/* chips area */
#tbm-drawer-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 14px 16px !important;
    background: #f8faff !important;
}
.tbm-drawer-empty {
    text-align: center !important;
    padding: 32px 16px !important;
    color: #93c5fd !important;
}
.tbm-drawer-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    background: #fff !important;
    border: 1.5px solid #e0e7ff !important;
    border-radius: 14px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 4px rgba(37,99,235,.07) !important;
}
.tbm-drawer-item-l { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }

/* form area */
#tbm-drawer-form {
    padding: 18px 20px 20px !important;
    border-top: none !important;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%) !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    max-height: 55vh !important;
}
.tbm-f-row { margin-bottom: 13px !important; }
.tbm-f-lbl {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.tbm-f-input {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #dbeafe !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    transition: border .15s, box-shadow .15s !important;
    direction: rtl !important;
    background: #fff !important;
}
.tbm-f-input:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
textarea.tbm-f-input { resize: vertical !important; min-height: 68px !important; }
.tbm-f-2col { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

#tbm-f-send {
    width: 100% !important;
    padding: 13px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: all .2s !important;
    box-shadow: 0 4px 14px rgba(37,99,235,.35) !important;
    letter-spacing: 0.3px !important;
}
#tbm-f-send:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37,99,235,.45) !important;
}
#tbm-f-send:disabled {
    background: #93c5fd !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
/* FAB */
#tbm-cart-fab {
    position:fixed; bottom:24px; left:24px; z-index:9990;
    background:#2563eb; color:#fff; border:none; border-radius:50px;
    padding:11px 20px; font-size:14px; font-weight:700; cursor:pointer;
    box-shadow:0 4px 20px rgba(37,99,235,.4); transition:all .2s;
}
#tbm-cart-fab:hover { background:#1d4ed8; transform:translateY(-2px); }
.tbm-fab-count {
    display:inline-flex; align-items:center; justify-content:center;
    background:#fff; color:#2563eb; border-radius:50%;
    width:20px; height:20px; font-size:12px; font-weight:800; margin-right:6px;
}
@media (max-width:480px) {
    @media(max-width:480px){#tbm-drawer{width:100vw !important;max-width:100vw !important;}}
}
/* hide old modal elements if they exist */
#tbm-modal-wrap, #tbm-modal-bg, #tbm-inq-form, #tbm-inq-ok { display:none !important; }

/* ── RTL Modal overrides (v1.2.3) ────────────────────────────── */
#tbm-modal { text-align: right; direction: rtl; }
#tbm-modal h3 { text-align: right; margin-bottom: 4px; }
#tbm-modal-close { position: absolute; top: 16px; left: 20px; right: auto; }
#tbm-modal-imp-name {
    font-size: 17px; font-weight: 700; color: #1e3a5f;
    margin: 0 0 4px; line-height: 1.3; text-align: right;
}
#tbm-modal-part-label {
    font-size: 13px; color: #6b7280; margin: 0 0 16px; text-align: right;
}
.tbm-form-grid { text-align: right; }
.tbm-field label { text-align: right; display: block; }
.tbm-field input, .tbm-field textarea { text-align: right; }
/* ── Multi-select chips (v1.2.3) ─────────────────────────────── */
#tbm-filter-countries { display: flex; flex-wrap: wrap; gap: 6px; }
.tbm-filter-chip.active {
    background: #2563eb; color: #fff; border-color: #2563eb;
}


.tbm-browse-card { display:flex !important; flex-direction:column !important; height:100% !important; }
.tbm-browse-grid  { align-items:stretch !important; }

/* ── Drawer toggle arrow (v1.2.8) ─────────────────────────────────────── */
#tbm-drawer-arrow {
    position:absolute !important;
    top:50% !important;
    left:-28px !important;
    transform:translateY(-50%) !important;
    width:28px !important; height:56px !important;
    background:#2563eb !important; color:#fff !important;
    border:none !important; border-radius:8px 0 0 8px !important;
    font-size:14px !important; cursor:pointer !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    box-shadow:-3px 0 10px rgba(0,0,0,.15) !important;
    z-index:999998 !important;
    transition:background .15s !important;
}
#tbm-drawer-arrow:hover { background:#1d4ed8 !important; }



/* ── Drawer tab (v1.2.9) ──────────────────────────────────────── */
#tbm-drawer-tab {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px 0 0 10px !important;
    padding: 14px 10px !important;
    cursor: pointer !important;
    z-index: 999997 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: -3px 0 14px rgba(37,99,235,.35) !important;
    transition: background .15s, right .28s cubic-bezier(.4,0,.2,1) !important;
    min-width: 36px !important;
}
#tbm-drawer-tab:hover { background: #1d4ed8 !important; }
#tbm-drawer-tab.tbm-tab-open { right: 400px !important; }
.tbm-tab-icon { font-size: 18px !important; line-height: 1 !important; }
.tbm-tab-text {
    font-size: 11px !important;
    font-weight: 700 !important;
    writing-mode: vertical-rl !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    color: #fff !important;
}
@media(max-width:480px){
    #tbm-drawer-tab.tbm-tab-open { right: 100vw !important; }
}

/* ── Drawer cart chips (v1.3.0) ─────────────────────────────── */
/* flex:none removed v1.3.21 */
.tbm-cart-chips-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    direction: rtl !important;
}
.tbm-cart-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 20px !important;
    padding: 5px 10px 5px 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
    white-space: nowrap !important;
    direction: rtl !important;
}
.tbm-chip-dot {
    width: 8px !important; height: 8px !important;
    border-radius: 50% !important; flex-shrink: 0 !important;
    display: inline-block !important;
}
.tbm-chip-dot-mfr { background: #2563eb !important; }
.tbm-chip-dot-imp { background: #059669 !important; }
.tbm-chip-name { max-width: 130px !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.tbm-chip-x {
    background: none !important; border: none !important;
    color: #93c5fd !important; font-size: 11px !important;
    cursor: pointer !important; padding: 0 0 0 2px !important;
    line-height: 1 !important; font-weight: 700 !important;
    flex-shrink: 0 !important;
}
.tbm-chip-x:hover { color: #ef4444 !important; }
.tbm-drawer-empty { text-align:center; padding:20px 16px; color:#9ca3af; }

/* ── Drawer tab cart icon (v1.3.1) ──────────────────────────── */
#tbm-drawer-tab {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px 0 0 12px !important;
    padding: 16px 10px !important;
    cursor: pointer !important;
    z-index: 999997 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: -4px 0 18px rgba(37,99,235,.4) !important;
    transition: background .15s, right .28s cubic-bezier(.4,0,.2,1) !important;
    width: 46px !important;
}
#tbm-drawer-tab:hover { background: #1d4ed8 !important; }
#tbm-drawer-tab.tbm-tab-open { right: 400px !important; }
.tbm-tab-cart-svg {
    width: 22px !important; height: 22px !important;
    stroke: #fff !important; flex-shrink: 0 !important;
}
.tbm-tab-arrow {
    font-size: 18px !important; color: rgba(255,255,255,.7) !important;
    line-height: 1 !important; font-weight: 300 !important;
}
#tbm-drawer-tab.tbm-tab-open .tbm-tab-arrow {
    transform: rotate(180deg) !important; display: inline-block !important;
}
#tbm-tab-badge {
    position: absolute !important;
    top: 6px !important; right: 6px !important;
    background: #ef4444 !important; color: #fff !important;
    border-radius: 10px !important; font-size: 10px !important;
    font-weight: 800 !important; padding: 1px 5px !important;
    min-width: 16px !important; text-align: center !important;
    line-height: 14px !important;
}
@media(max-width:480px){
    #tbm-drawer-tab.tbm-tab-open { right: 100vw !important; }
}

/* ── Cart chips v1.3.3 — style like country filter chips ─────── */
.tbm-cart-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: linear-gradient(135deg,#eff6ff,#dbeafe) !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 50px !important;
    padding: 6px 10px 6px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e3a5f !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(37,99,235,.12) !important;
    direction: rtl !important;
    cursor: default !important;
}
.tbm-chip-flag { font-size: 15px !important; line-height: 1 !important; flex-shrink:0 !important; }
.tbm-chip-name { max-width:140px !important; overflow:hidden !important; text-overflow:ellipsis !important; }
.tbm-chip-x {
    background: none !important; border: none !important;
    color: #9ca3af !important; font-size: 9px !important;
    cursor: pointer !important; padding: 0 0 0 1px !important;
    line-height: 1 !important; font-weight: 700 !important;
    flex-shrink: 0 !important; margin-right: 1px !important;
}
.tbm-chip-x:hover { color: #ef4444 !important; }

/* ── Browse buttons bar (below hero) v1.3.4 ──────────────────────── */
.tbm-browse-btns-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 18px 16px 6px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.tbm-browse-btn-bar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #ffffff !important;
    color: #1e3a5f !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 30px !important;
    padding: 9px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all .18s !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.07) !important;
}
.tbm-browse-btn-bar:hover {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37,99,235,.3) !important;
}

/* ── Suggest count badge v1.3.10 ─────────────────── */
.tbm-sug-part-row {
    direction: ltr !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
.tbm-sug-part-row .tbm-sug-label { flex: 1 !important; text-align: left !important; }
.tbm-sug-count {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    padding: 2px 7px !important;
    white-space: nowrap !important;
}

/* ── chip X nuclear override v1.3.12 ─────────────────────────────── */
#tbm-drawer .tbm-chip-x,
#tbm-drawer button.tbm-chip-x {
    all: unset !important;
    cursor: pointer !important;
    font-size: 9px !important;
    color: #9ca3af !important;
    line-height: 1 !important;
    padding: 0 1px !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
}
#tbm-drawer .tbm-chip-x:hover,
#tbm-drawer button.tbm-chip-x:hover { color: #ef4444 !important; }

/* ══ Mobile drawer v1.3.17 ══════════════════════════════════════ */
#tbm-drawer-minimize {
    background: rgba(255,255,255,.18) !important;
    border: 1.5px solid rgba(255,255,255,.35) !important;
    color: #fff !important; font-size: 12px !important;
    font-weight: 700 !important; cursor: pointer !important;
    border-radius: 8px !important; padding: 5px 10px !important;
    white-space: nowrap !important; flex-shrink: 0 !important;
    order: -1 !important;
}
#tbm-drawer-minimize:hover { background: rgba(255,255,255,.3) !important; }
#tbm-drawer-close-mobile { display: none !important; }
@media (max-width: 600px) {
    /* Show X button on mobile */
    #tbm-drawer-close-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,.2) !important;
        border: 1.5px solid rgba(255,255,255,.4) !important;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        border-radius: 50% !important;
        width: 34px !important;
        height: 34px !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
    }
    #tbm-drawer-close-mobile:hover {
        background: rgba(255,255,255,.35) !important;
    }
    /* Overlay more visible on mobile */
    #tbm-drawer-overlay {
        background: rgba(0,0,0,.55) !important;
    }
    /* Tab hides when drawer open on mobile */
    #tbm-drawer-tab.tbm-tab-open {
        right: 85vw !important;
    }
    /* Form max height on mobile */
    #tbm-drawer-form {
        max-height: 45vh !important;
    }
}

/* ══ Multi-item form v1.3.19 ════════════════════════════════════ */
.tbm-item-row {
    background: #f0f5ff !important;
    border: 1.5px solid #dbeafe !important;
    border-radius: 12px !important;
    padding: 10px 12px 12px !important;
    margin-bottom: 10px !important;
}
.tbm-item-row-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}
.tbm-item-num {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.tbm-item-remove {
    all: unset !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    font-size: 12px !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
}
.tbm-item-remove:hover { color: #ef4444 !important; background: #fee2e2 !important; }
.tbm-f-3col {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 8px !important;
}
#tbm-add-item {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    border: 1.5px dashed #93c5fd !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin-bottom: 2px !important;
    box-sizing: border-box !important;
    background: #f8faff !important;
}
#tbm-add-item:hover { background: #eff6ff !important; border-color: #2563eb !important; }
@media(max-width:600px) {
    .tbm-f-3col { grid-template-columns: 1fr 1fr !important; }
    .tbm-f-3col > div:first-child { grid-column: 1 / -1 !important; }
}

/* ══ Card uniform button row – v1.3.20 (authoritative, overrides all above) ══ */
.tbm-browse-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}
.tbm-browse-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
.tbm-bc-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    flex: 1 1 auto !important;
}
.tbm-browse-card > .tbm-cart-btn {
    margin-top: 10px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    align-self: stretch !important;
}

/* ══ Drawer scroll layout – v1.3.21 ══════════════════════════════════════════ */
/* List: max 38vh, own scroll — so form always stays visible at bottom */
#tbm-drawer-list {
    flex: 1 1 auto !important;
    min-height: 70px !important;
    max-height: 38vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px 16px 8px !important;
    background: #f8faff !important;
    scroll-behavior: smooth !important;
}
/* Form: own scroll when many item rows added */
#tbm-drawer-form {
    flex: 0 1 auto !important;
    overflow-y: auto !important;
    max-height: 54vh !important;
}

/* ── "הסתר" button — RIGHT side of header (visually left in RTL drawer) ────── */
#tbm-drawer-minimize {
    order: 1 !important;   /* push to LEFT in RTL flex row */
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* ── Chip X: nuke every possible theme box around it ───────────────────────── */
#tbm-drawer .tbm-chip-x,
#tbm-drawer button.tbm-chip-x,
.tbm-cart-chip button.tbm-chip-x,
.tbm-cart-chip .tbm-chip-x {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    flex-shrink: 0 !important;
}
#tbm-drawer .tbm-chip-x:hover,
#tbm-drawer button.tbm-chip-x:hover {
    color: #ef4444 !important;
    background: rgba(239,68,68,.1) !important;
}

/* ══ Rich drawer design – v1.3.22 ════════════════════════════════════════════ */

/* Drawer background */
#tbm-drawer {
    background: #f4f7ff !important;
}

/* Header: deep gradient with subtle pattern */
#tbm-drawer-header {
    background: linear-gradient(135deg, #0f2557 0%, #1e3a8a 45%, #2563eb 100%) !important;
    padding: 18px 20px 16px !important;
    box-shadow: 0 4px 20px rgba(15,37,87,.35) !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}
/* decorative circle behind header */
#tbm-drawer-header::before {
    content: '' !important;
    position: absolute !important;
    top: -30px !important; right: -30px !important;
    width: 120px !important; height: 120px !important;
    background: rgba(255,255,255,.07) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}
#tbm-drawer-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: -20px !important; left: 40px !important;
    width: 80px !important; height: 80px !important;
    background: rgba(255,255,255,.05) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}
#tbm-drawer-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
}

/* "הסתר" minimize button */
#tbm-drawer-minimize {
    order: 1 !important;
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    backdrop-filter: blur(4px) !important;
    transition: background .15s !important;
    letter-spacing: 0.3px !important;
}
#tbm-drawer-minimize:hover {
    background: rgba(255,255,255,.28) !important;
}

/* List area */
#tbm-drawer-list {
    background: linear-gradient(180deg, #e8efff 0%, #f4f7ff 100%) !important;
    border-bottom: 1.5px solid #dbeafe !important;
}

/* Chips — colorful pill style */
.tbm-cart-chip {
    background: linear-gradient(135deg, #fff 0%, #eff6ff 100%) !important;
    border: 1.5px solid #93c5fd !important;
    border-radius: 50px !important;
    padding: 5px 10px 5px 8px !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.12) !important;
    transition: box-shadow .15s !important;
}
.tbm-cart-chip:hover {
    box-shadow: 0 3px 12px rgba(37,99,235,.22) !important;
}
.tbm-chip-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
}
.tbm-chip-flag { font-size: 14px !important; }

/* Form area */
#tbm-drawer-form {
    background: #fff !important;
    border-top: 2px solid #e0e7ff !important;
    box-shadow: 0 -4px 16px rgba(37,99,235,.06) !important;
}

/* Item rows in multi-item form */
.tbm-item-row {
    background: linear-gradient(135deg, #f0f5ff 0%, #eff6ff 100%) !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.07) !important;
}
.tbm-item-num {
    color: #1d4ed8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

/* Inputs */
.tbm-f-input {
    border: 1.5px solid #c7d7f8 !important;
    border-radius: 10px !important;
    background: #f8faff !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.tbm-f-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
    outline: none !important;
    background: #fff !important;
}

/* Add item button */
#tbm-add-item {
    border: 1.5px dashed #60a5fa !important;
    color: #1d4ed8 !important;
    background: linear-gradient(135deg, #f0f5ff 0%, #eff6ff 100%) !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    transition: all .15s !important;
}
#tbm-add-item:hover {
    border-color: #2563eb !important;
    background: #dbeafe !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.15) !important;
}

/* Send button */
#tbm-f-send {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(37,99,235,.4) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    padding: 14px !important;
    transition: all .2s !important;
    border: none !important;
    color: #fff !important;
}
#tbm-f-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,.5) !important;
    transform: translateY(-1px) !important;
}
#tbm-f-send:disabled {
    opacity: .6 !important;
    cursor: not-allowed !important;
}

/* Empty state */
.tbm-drawer-empty {
    color: #93c5fd !important;
    font-size: 13px !important;
}

/* Section labels */
.tbm-f-lbl {
    color: #374151 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
}

/* Success screen */
#tbm-drawer-ok {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%) !important;
}

/* ══ Nuclear button override – v1.3.23 (html body prefix = max specificity) ══ */
html body #tbm-drawer button,
html body #tbm-drawer input[type="button"],
html body #tbm-drawer input[type="submit"] {
    font-family: inherit !important;
}
html body #tbm-drawer #tbm-f-send {
    background: linear-gradient(135deg,#1d4ed8 0%,#2563eb 60%,#3b82f6 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 13px 20px !important;
    box-shadow: 0 4px 16px rgba(37,99,235,.4) !important;
    cursor: pointer !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    outline: none !important;
    margin-top: 16px !important;
}
html body #tbm-drawer #tbm-f-send:hover:not(:disabled) {
    background: linear-gradient(135deg,#1e40af 0%,#1d4ed8 100%) !important;
    box-shadow: 0 6px 22px rgba(37,99,235,.5) !important;
    transform: translateY(-1px) !important;
}
html body #tbm-drawer #tbm-add-item {
    background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%) !important;
    border: 1.5px dashed #60a5fa !important;
    border-radius: 10px !important;
    color: #1d4ed8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px !important;
    cursor: pointer !important;
    width: 100% !important;
    box-shadow: none !important;
    display: block !important;
    text-align: center !important;
    outline: none !important;
}
html body #tbm-drawer .tbm-item-remove {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 11px !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}
html body #tbm-drawer .tbm-item-remove:hover {
    color: #ef4444 !important;
    background: rgba(239,68,68,.1) !important;
}
html body #tbm-drawer #tbm-drawer-minimize {
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ══ v1.3.24 header + X fixes ══════════════════════════════════ */
#tbm-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: rtl !important;
}
/* title on RIGHT (first in RTL), minimize on LEFT (last in RTL) */
#tbm-drawer-title  { order: 0 !important; flex: 1 !important; }
#tbm-drawer-minimize { order: 2 !important; flex-shrink: 0 !important; }

#tbm-drawer-header::before,#tbm-drawer-header::after{display:none!important;}

/* v1.3.28 — item-remove X: gray circle, no red */
html body #tbm-drawer .tbm-item-remove,
html body #tbm-drawer button.tbm-item-remove {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    background: rgba(107,114,128,.1) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
html body #tbm-drawer .tbm-item-remove:hover,
html body #tbm-drawer button.tbm-item-remove:hover {
    background: rgba(107,114,128,.2) !important;
    color: #374151 !important;
}

/* v1.3.29 — list height = content only */
#tbm-drawer-list {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: 38vh !important;
}
#tbm-drawer-form {
    flex: 1 1 auto !important;
    max-height: none !important;
    overflow-y: auto !important;
}

/* v1.3.30 — span X (not button, immune to theme) */
span.tbm-item-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    background: rgba(107,114,128,.1) !important;
    flex-shrink: 0 !important;
}
span.tbm-item-remove:hover {
    background: rgba(107,114,128,.2) !important;
    color: #374151 !important;
}

/* ══ v1.3.31: Card grid layout + button style ═══════════════════════════════ */

/* Grid cells stretch to row height */
.tbm-browse-grid {
    align-items: stretch !important;
}

/* Card: CSS GRID (2 rows: content=1fr, button=auto) — most reliable alignment */
.tbm-browse-card {
    display: grid !important;
    grid-template-rows: 1fr auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
    align-content: start !important;
}

/* Body fills row 1 */
.tbm-bc-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    min-height: 0 !important;
}

/* Button: always in row 2 = always at same height */
.tbm-cart-btn,
.tbm-browse-card > .tbm-cart-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 8px 0 !important;
    border: 1.5px dashed #1e3a5f !important;
    border-radius: 8px !important;
    background: #f8faff !important;
    color: #1e3a5f !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background .15s, color .15s !important;
    box-shadow: none !important;
    align-self: end !important;
}
.tbm-cart-btn:hover {
    background: #1e3a5f !important;
    color: #fff !important;
    border-style: solid !important;
}
.tbm-cart-btn.tbm-cart-added {
    background: #ecfdf5 !important;
    border: 1.5px solid #059669 !important;
    border-style: solid !important;
    color: #059669 !important;
    cursor: default !important;
}
.tbm-cart-btn.tbm-cart-added:hover {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

/* v1.3.33 — long importer names: wrap 2 lines, no horizontal overflow */
.tbm-bc-name {
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
    text-overflow: unset !important;
}
/* Ensure bc-top doesn't overflow card */
.tbm-bc-top {
    overflow: hidden !important;
    min-width: 0 !important;
}
.tbm-bc-info {
    min-width: 0 !important;
    overflow: hidden !important;
    flex: 1 !important;
}

/* v1.3.34 — button styles: mfr=navy dashed, imp=original */
/* Manufacturer button */
.tbm-browse-mfr-card .tbm-cart-btn,
button.tbm-mfr-btn {
    border: 1.5px dashed #1e3a5f !important;
    background: #f8faff !important;
    color: #1e3a5f !important;
    box-shadow: none !important;
}
.tbm-browse-mfr-card .tbm-cart-btn:hover,
button.tbm-mfr-btn:hover {
    background: #1e3a5f !important;
    color: #fff !important;
    border-style: solid !important;
}
.tbm-browse-mfr-card .tbm-cart-btn.tbm-cart-added {
    background: #ecfdf5 !important;
    border: 1.5px solid #059669 !important;
    color: #059669 !important;
}
/* Importer button — restore original (override the generic dashed rule) */
.tbm-browse-imp-card .tbm-cart-btn {
    border: 1.5px solid #2563eb !important;
    border-style: solid !important;
    background: transparent !important;
    color: #2563eb !important;
}
.tbm-browse-imp-card .tbm-cart-btn:hover {
    background: #2563eb !important;
    color: #fff !important;
}
.tbm-browse-imp-card .tbm-cart-btn.tbm-cart-added {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

/* v1.3.36 — mfr card button: navy dashed (CSS only, no inline) */
.tbm-browse-mfr-card .tbm-cart-btn {
    border: 1.5px dashed #1e3a5f !important;
    background: #f8faff !important;
    color: #1e3a5f !important;
    border-style: dashed !important;
    box-shadow: none !important;
}
.tbm-browse-mfr-card .tbm-cart-btn:hover {
    background: #1e3a5f !important;
    color: #fff !important;
    border-style: solid !important;
}
.tbm-browse-mfr-card .tbm-cart-btn.tbm-cart-added {
    background: #ecfdf5 !important;
    border: 1.5px solid #059669 !important;
    color: #059669 !important;
    cursor: default !important;
}

/* v1.3.37 — mfr button: ultra-high specificity as fallback */
html body .tbm-browse-mfr-card button.tbm-cart-btn,
html body .tbm-browse-mfr-card .tbm-cart-btn {
    border: 1.5px dashed #1e3a5f !important;
    background: #f8faff !important;
    color: #1e3a5f !important;
    box-shadow: none !important;
}
html body .tbm-browse-mfr-card button.tbm-cart-btn:hover,
html body .tbm-browse-mfr-card .tbm-cart-btn:hover {
    background: #1e3a5f !important;
    color: #fff !important;
    border-style: solid !important;
}
html body .tbm-browse-mfr-card .tbm-cart-btn.tbm-cart-added {
    background: #ecfdf5 !important;
    border: 1.5px solid #059669 !important;
    color: #059669 !important;
}
