.exportwerk-competitors{max-width:1100px;margin:32px auto;font-family:inherit}
.ewc-form{padding:24px;border:1px solid #dfe4e8;border-radius:12px;background:#fff}
.ewc-form h2{margin:0 0 10px;font-size:26px;color:#172b4d}
.ewc-form p{color:#526171}
.ewc-fields{display:grid;grid-template-columns:190px minmax(0,1fr) 140px;gap:12px;margin-top:20px;align-items:start}
.ewc-fields select,.ewc-fields input{width:100%;height:48px;padding:10px 14px;border:1px solid #cbd5df;border-radius:7px;background:#fff;color:#172b4d;font-size:15px}
.ewc-fields button[type=submit]{height:48px;padding:10px 18px;border:0;border-radius:7px;background:#153b68;color:white;font-weight:600;cursor:pointer}
.ewc-fields button:disabled{opacity:.55;cursor:wait}
.ewc-query-wrap{position:relative;min-width:0}
.ewc-suggestions{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:290px;overflow-y:auto;background:#fff;border:1px solid #cbd5df;border-radius:7px;box-shadow:0 8px 20px #0002}
.ewc-suggestions[hidden]{display:none}
.ewc-suggestion{display:block;width:100%;padding:11px 13px;border:0;border-bottom:1px solid #edf0f2;background:white;color:#172b4d;text-align:left;cursor:pointer;font-size:14px}
.ewc-suggestion:hover,.ewc-suggestion:focus{background:#eef5fb}
.ewc-status{margin:18px 0;color:#34495e}
.ewc-results{display:block;width:100%;min-width:0;margin-top:24px}
.ewc-market{padding:18px;border:1px solid #dfe4e8;border-radius:12px;background:#fff;min-width:0}
.ewc-market h3{margin:0 0 16px;font-size:19px;color:#172b4d}
.ewc-supplier-list{display:grid;gap:12px}
.ewc-supplier{padding:13px;border:1px solid #edf0f2;border-radius:8px;background:#fafbfc;overflow-wrap:anywhere}
.ewc-supplier h4{margin:0 0 9px;font-size:16px;color:#172b4d}
.ewc-supplier p{margin:5px 0;font-size:13px}
.ewc-muted{color:#697887;font-size:13px}
@media(max-width:850px){.ewc-results{grid-template-columns:1fr 1fr}.ewc-fields{grid-template-columns:170px minmax(0,1fr)}.ewc-fields button[type=submit]{grid-column:1/-1}}
@media(max-width:580px){.ewc-form{padding:17px}.ewc-fields,.ewc-results{grid-template-columns:1fr}.ewc-fields button[type=submit]{grid-column:auto}.ewc-form h2{font-size:22px}}

/* Unified supplier results */
.ewc-combined {
    margin-top: 28px;
    width: 100%;
}
.ewc-results-heading {
    font-size: 23px;
    font-weight: 650;
    margin-bottom: 8px;
}
.ewc-table-scroll {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
}
.ewc-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}
.ewc-results-table th {
    background: #f5f7fa;
    color: #536176;
    font-weight: 600;
    text-align: left;
    padding: 15px 18px;
    white-space: nowrap;
}
.ewc-results-table td {
    padding: 15px 18px;
    border-top: 1px solid #edf0f4;
    vertical-align: middle;
}
.ewc-results-table tbody tr:hover {
    background: #f8fafc;
}
.ewc-name {
    font-weight: 600;
    color: #18324d;
}
.ewc-number {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.ewc-rank {
    color: #8b96a5;
    width: 42px;
}
.ewc-buyer {
    color: #69788b;
    white-space: nowrap;
}
.ewc-disclaimer {
    font-size: 12px;
    color: #798697;
    margin-top: 15px;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .ewc-results-table {
        min-width: 780px;
    }
}

/* Supplier search: form alignment and full-width results */
.exportwerk-competitors,
.exportwerk-competitors * {
    box-sizing: border-box;
}

.exportwerk-competitors .ewc-form,
.exportwerk-competitors .ewc-fields,
.exportwerk-competitors .ewc-results,
.exportwerk-competitors .ewc-combined {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.exportwerk-competitors .ewc-fields {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 140px;
    align-items: start;
    gap: 12px;
}

.exportwerk-competitors .ewc-fields > select,
.exportwerk-competitors .ewc-query-wrap > input,
.exportwerk-competitors .ewc-fields > button[type="submit"] {
    display: block;
    width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    margin: 0;
    box-sizing: border-box;
    line-height: normal;
}

.exportwerk-competitors .ewc-query-wrap {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.exportwerk-competitors .ewc-results {
    display: block;
}

.exportwerk-competitors .ewc-combined {
    display: block;
    margin-top: 0;
}

.exportwerk-competitors .ewc-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.exportwerk-competitors table.ewc-results-table {
    display: table;
    width: 100%;
    min-width: 760px;
    table-layout: auto;
    border-collapse: collapse;
}

.exportwerk-competitors .ewc-results-table th,
.exportwerk-competitors .ewc-results-table td {
    text-align: left;
    vertical-align: middle;
}

.exportwerk-competitors .ewc-results-table td.ewc-name {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 850px) {
    .exportwerk-competitors .ewc-fields {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .exportwerk-competitors .ewc-fields > button[type="submit"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .exportwerk-competitors .ewc-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .exportwerk-competitors .ewc-fields > button[type="submit"] {
        grid-column: auto;
    }
}

/* Precise search control alignment */
.exportwerk-competitors .ewc-fields {
    align-items: stretch !important;
}

.exportwerk-competitors .ewc-fields > select,
.exportwerk-competitors .ewc-fields > .ewc-query-wrap,
.exportwerk-competitors .ewc-fields > button {
    align-self: start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.exportwerk-competitors .ewc-fields > select,
.exportwerk-competitors .ewc-query-wrap > input,
.exportwerk-competitors .ewc-fields > button[type="submit"] {
    height: 48px !important;
    min-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: top !important;
}

.exportwerk-competitors .ewc-fields > select {
    appearance: auto;
    -webkit-appearance: menulist;
}


/* Align the search-type dropdown with the search input */



/* Restore the native search dropdown hidden by theme styling */



/* Exportwerk: align theme-generated Select2 with search controls */
.exportwerk-competitors .ewc-fields > .fancy-select-wrap {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.exportwerk-competitors .ewc-fields .select2-container {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
}

.exportwerk-competitors .ewc-fields .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #cbd5df !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.exportwerk-competitors .ewc-fields .select2-selection__rendered {
    display: block !important;
    width: 100% !important;
    padding: 0 22px 0 0 !important;
    margin: 0 !important;
    line-height: 46px !important;
    color: #172b4d !important;
    font-size: 15px !important;
}

.exportwerk-competitors .ewc-fields .select2-selection__arrow {
    height: 46px !important;
    top: 0 !important;
    right: 8px !important;
}


/* Exportwerk Show More button */
.exportwerk-competitors .ewc-show-more {
    display: block;
    margin: 28px auto 12px;
    padding: 15px 38px;
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: var(--nectar-accent-color, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.exportwerk-competitors .ewc-show-more:hover {
    background: var(--nectar-extra-color-1, #1746a2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.exportwerk-competitors .ewc-show-more:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.exportwerk-competitors .ewc-show-more:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}


/* Prominent combined supplier count */
.exportwerk-competitors .ewc-total-summary {
    margin: 18px 0 12px;
    padding: 20px 24px;
    border: 1px solid rgba(128,128,128,.18);
    border-radius: 10px;
    text-align: center;
}
.exportwerk-competitors .ewc-total-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}
.exportwerk-competitors .ewc-total-number {
    margin-top: 6px;
    color: var(--nectar-accent-color, #2563eb);
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}


/* Buyer masking hover and information popup */
.exportwerk-competitors .ewc-buyer {
    position: relative;
    overflow: visible;
}
.exportwerk-competitors .ewc-buyer-trigger {
    background: transparent;
    border: 0;
    padding: 5px 2px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 4px;
}
.exportwerk-competitors .ewc-buyer-trigger:hover,
.exportwerk-competitors .ewc-buyer-trigger:focus-visible {
    color: var(--nectar-accent-color, #2563eb);
}
.exportwerk-competitors .ewc-buyer-popup {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    width: min(300px, 80vw);
    padding: 16px;
    border: 1px solid rgba(128,128,128,.25);
    border-radius: 9px;
    background: #fff;
    color: #263445;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    white-space: normal;
    text-align: left;
}
.exportwerk-competitors .ewc-buyer-popup[hidden] {
    display: none !important;
}
.exportwerk-competitors .ewc-buyer-popup p {
    margin: 8px 0 12px;
    font-size: 13px;
    line-height: 1.5;
}
.exportwerk-competitors .ewc-buyer-close {
    cursor: pointer;
    color: var(--nectar-accent-color, #2563eb);
    background: transparent;
    border: 0;
    padding: 0;
    font-weight: 700;
}


/* Keep buyer popup visible and position it left of the buyer column */
.exportwerk-competitors .ewc-buyer {
    position: relative;
    overflow: visible !important;
}
.exportwerk-competitors .ewc-buyer-popup {
    left: auto !important;
    right: 100% !important;
    top: 0 !important;
    width: 300px;
    max-width: 80vw;
    z-index: 99999 !important;
}
.exportwerk-competitors .ewc-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}
@media (max-width: 767px) {
    .exportwerk-competitors .ewc-buyer-popup {
        right: 0 !important;
        top: 100% !important;
        width: min(280px, 75vw);
    }
}


/* Exportwerk unified search layout - 2026-11-19 */

/* Replace the old three-column search layout */
.exportwerk-competitors .ewc-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 140px !important;
    gap: 12px !important;
    align-items: start !important;
}

/* Search field */
.exportwerk-competitors .ewc-query-wrap {
    position: relative !important;
    min-width: 0;
    z-index: 100001;
}

.exportwerk-competitors .ewc-query-wrap > input {
    width: 100% !important;
    height: 48px !important;
    box-sizing: border-box !important;
}

/* Keep suggestions above surrounding content */
.exportwerk-competitors {
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}

.exportwerk-competitors .ewc-form,
.exportwerk-competitors .ewc-fields {
    overflow: visible !important;
}

.exportwerk-competitors .ewc-suggestions {
    position: absolute !important;
    top: calc(100% + 3px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100002 !important;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.exportwerk-competitors .ewc-suggestions[hidden] {
    display: none !important;
}

/* Bring the homepage search section above adjacent content */
body.home .exportwerk-competitors {
    isolation: auto;
}

body.home .exportwerk-competitors:focus-within {
    z-index: 100003;
}

/* Responsive layout */
@media (max-width: 850px) {
    .exportwerk-competitors .ewc-fields {
        grid-template-columns: minmax(0, 1fr) 140px !important;
    }

    .exportwerk-competitors .ewc-fields > button[type="submit"] {
        grid-column: auto !important;
    }
}

@media (max-width: 580px) {
    .exportwerk-competitors .ewc-fields {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .exportwerk-competitors .ewc-fields > button[type="submit"] {
        grid-column: 1 !important;
        width: 100%;
    }
}

/* Responsive shipment information tooltips */
.ewc-shipment-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px;
    min-width: 24px;
    min-height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #245b91;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}
.ewc-shipment-info:hover,
.ewc-shipment-info:focus-visible {
    background: #e7f0f9;
    outline-offset: 2px;
}
.ewc-shipment-tooltip {
    position: fixed !important;
    z-index: 2147483647 !important;
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 13px 15px;
    border: 1px solid #d8e2ec;
    border-radius: 9px;
    background: #172b4d;
    color: #fff;
    font: 400 13px/1.5 Arial, sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    text-align: left;
}
.ewc-shipment-tooltip[hidden] {
    display: none !important;
}
@media (max-width: 767px) {
    .ewc-shipment-tooltip {
        font-size: 14px;
        padding: 14px 16px;
        border-radius: 10px;
    }
    .ewc-shipment-info {
        min-width: 32px;
        min-height: 32px;
        font-size: 18px;
    }
}

/* Arabic UI only; preserve Salient's outer LTR layout. */
.exportwerk-competitors[dir="rtl"], .ewp-profile[dir="rtl"] { direction: rtl; text-align: right; }
.exportwerk-competitors[dir="rtl"] .ewc-form,
.exportwerk-competitors[dir="rtl"] .ewc-status,
.exportwerk-competitors[dir="rtl"] .ewc-results,
.ewp-profile[dir="rtl"] .ewp-hero,
.ewp-profile[dir="rtl"] .ewp-panel,
.ewp-profile[dir="rtl"] .ewp-footer { text-align: right; }
.exportwerk-competitors[dir="rtl"] input[name="query"] { direction: rtl; text-align: right; }
.exportwerk-competitors[dir="rtl"] .ewc-results-table { direction: rtl; }
.exportwerk-competitors[dir="rtl"] .ewc-number,
.exportwerk-competitors[dir="rtl"] .ewc-rank,
.ewp-profile[dir="rtl"] .ewp-stat-value { direction: ltr; unicode-bidi: isolate; }
.exportwerk-competitors .ewc-suggestions[dir="rtl"] { direction: rtl; text-align: right; }
.exportwerk-competitors .ewc-suggestions[dir="rtl"] .ewc-suggestion { text-align: right; }
.ewc-shipment-tooltip[dir="rtl"] { direction: rtl; text-align: right; }
.ewp-profile[dir="rtl"] .ewp-chart-heading { direction: rtl; }
.ewp-profile[dir="rtl"] .ewp-row-detail { text-align: left; }

/* Arabic mobile: keep buyer popup within the screen */
@media (max-width: 767px) {
  html[lang="ar"] .exportwerk-competitors .ewc-buyer-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(300px, calc(100vw - 32px)) !important;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 99999;
  }
}


/* Stable autocomplete positioning for English and Arabic */
.exportwerk-competitors .ewc-query-wrap {
    position: relative !important;
}
.exportwerk-competitors .ewc-query-wrap > .ewc-suggestions {
    position: absolute !important;
    top: calc(100% + 3px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* ewc-arabic-table-rtl-v1 */
html[lang^="ar"] .exportwerk-competitors .ewc-results-table,
body.ew-arabic .exportwerk-competitors .ewc-results-table {
    direction: rtl !important;
    text-align: right !important;
}

html[lang^="ar"] .exportwerk-competitors .ewc-results-table th,
html[lang^="ar"] .exportwerk-competitors .ewc-results-table td,
body.ew-arabic .exportwerk-competitors .ewc-results-table th,
body.ew-arabic .exportwerk-competitors .ewc-results-table td {
    direction: rtl !important;
    text-align: right !important;
    vertical-align: middle;
}

html[lang^="ar"] .exportwerk-competitors .ewc-results-table th:first-child,
html[lang^="ar"] .exportwerk-competitors .ewc-results-table td:first-child,
body.ew-arabic .exportwerk-competitors .ewc-results-table th:first-child,
body.ew-arabic .exportwerk-competitors .ewc-results-table td:first-child {
    text-align: center !important;
}

html[lang^="ar"] .exportwerk-competitors .ewc-results-table .ewc-number,
body.ew-arabic .exportwerk-competitors .ewc-results-table .ewc-number {
    direction: rtl !important;
    text-align: right !important;
    font-variant-numeric: normal;
}
