.filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--es-space-1, 12px);
    padding: var(--es-space-2, 12px) 0;
    border-bottom: 1px solid var(--es-border, #e2e8f0);
    margin-bottom: var(--es-space-3, 16px);
    position: relative;
    z-index: 30;
}

.filters-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.search-wrapper {
    display: flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid var(--es-border, #e2e8f0);
    border-radius: var(--es-radius-control, 8px);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    background-color: var(--es-filter-surface, #fff);
    box-shadow: var(--es-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.04));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    gap: 8px;
    padding: 8px 12px;
    position: relative;
}

.search-wrapper:focus-within {
    border-color: var(--es-border-focus, #225aea);
    box-shadow: var(--es-control-focus-ring, 0 0 0 3px rgba(34, 90, 234, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06));
}

.explore-visual-search-camera-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.explore-visual-search-camera-btn:hover {
    color: #334155;
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    transform: none;
}

/* ── Camera-button tooltip ───────────────────────── */
.vs-camera-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.vs-camera-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* arrow pointing up — lives on the wrapper so it isn't clipped */
.vs-camera-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
    border-radius: 3px 0 0 0;
}

.vs-camera-tooltip-body {
    position: relative;
    white-space: nowrap;
    background: #ffffff;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    padding: 9px 12px 10px 11px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}


.vs-camera-tooltip-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-camera-tooltip-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: #eff6ff;
}

.vs-camera-tooltip-icon svg {
    width: 13px;
    height: 13px;
}

.vs-camera-tooltip-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 4px;
    line-height: 1.6;
    flex-shrink: 0;
}

/* progress bar that shrinks over 5 s */
.vs-camera-tooltip-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 100%;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.vs-camera-tooltip-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #93c5fd, #3b82f6);
    transform-origin: left;
    animation: vs-tooltip-shrink 2.5s linear forwards;
}

.vs-camera-tooltip-progress-bar.paused {
    animation-play-state: paused;
}

@keyframes vs-tooltip-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* hide progress bar on hover-triggered display */
.vs-camera-tooltip.hover-only .vs-camera-tooltip-progress {
    display: none;
}

.vs-modal-root {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vs-modal-root--hidden {
    display: none !important;
}

.vs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.vs-modal-panel {
    position: relative;
    z-index: 1;
    max-width: calc(100vw - 2rem);
    animation: vs-panel-in 0.12s ease-out;
}

@keyframes vs-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.visual-search-modal-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.visual-search-modal-inner.vs-modal-loading {
    padding: 1.35rem 1.5rem 1.5rem;
}

.visual-search-modal-head[hidden] {
    display: none !important;
}

.visual-search-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.visual-search-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.visual-search-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}

.visual-search-modal-hint {
    margin: 0 0 1rem;
    line-height: 1.45;
}

.explore-visual-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.explore-visual-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.explore-visual-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.visual-upload-link {
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
}

.explore-visual-preview {
    margin-top: 12px;
}

.explore-visual-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.visual-search-modal-actions[hidden] {
    display: none !important;
}

.visual-search-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1rem;
}

.visual-search-modal-actions .btn-primary,
.visual-search-modal-actions .btn-secondary {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-weight: 500;
}

.visual-search-modal-actions .btn-secondary {
    background: #fff;
    color: #374151;
}

.visual-search-modal-actions .btn-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.visual-search-modal-actions .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.visual-search-err {
    color: #b91c1c;
    margin-top: 0.75rem;
}

.visual-search-loading[hidden] {
    display: none !important;
}

.visual-search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 0 0.25rem;
}

.visual-search-loading-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.visual-search-loading-spinner {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: vs-spin 0.7s linear infinite;
}

@keyframes vs-spin {
    to { transform: rotate(360deg); }
}

.visual-search-loading-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.visual-search-skeleton-grid[hidden] {
    display: none !important;
}

.visual-search-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--vs-card-min), 1fr));
    gap: 16px;
}

.visual-search-skeleton-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.visual-search-skeleton-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: vs-shimmer 1.2s ease-in-out infinite;
}

.visual-search-skeleton-body {
    padding: 10px 12px 12px;
}

.visual-search-skeleton-line {
    height: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: vs-shimmer 1.2s ease-in-out infinite;
}

.visual-search-skeleton-line:last-child {
    width: 55%;
    margin-bottom: 0;
}

@keyframes vs-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.visual-search-grid-wrap {
    --vs-card-min: 236px;
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

@media (min-width: 1280px) {
    .visual-search-grid-wrap {
        --vs-card-min: 288px;
    }
}

@media (min-width: 1680px) {
    .visual-search-grid-wrap {
        --vs-card-min: 320px;
    }
}

@media (max-width: 640px) {
    .visual-search-grid-wrap {
        --vs-card-min: 200px;
    }
}

.visual-search-exit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.visual-search-exit-row[hidden] {
    display: none !important;
}

.visual-search-query-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.visual-search-query-thumb[hidden] {
    display: none !important;
}

.visual-search-result-count {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.visual-search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    color: #9ca3af;
}

.visual-search-empty-state[hidden] {
    display: none !important;
}

.visual-search-empty-title {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
}

.visual-search-empty-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #9ca3af;
}

#visual-search-exit-btn,
.visual-search-exit-btn-top-el {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#visual-search-exit-btn {
    margin-left: auto;
}

#visual-search-exit-btn:hover,
.visual-search-exit-btn-top-el:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.visual-search-exit-row-top {
    margin-left: 12px;
    display: flex;
    align-items: center;
}

.visual-search-exit-row-top[hidden] {
    display: none !important;
}

.visual-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--vs-card-min), 1fr));
    gap: 16px;
}

.visual-search-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}

.visual-search-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.visual-search-card-img-wrap {
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    display: block;
}

.visual-search-card-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.visual-search-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.visual-search-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visual-search-card-meta {
    font-size: 11px;
    color: #6b7280;
}

.visual-search-card-flag {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-left: 3px;
    position: relative;
    top: -1px;
}

.visual-search-rank-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visual-search-rank-label svg {
    color: #fbbf24; /* Gold star */
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4));
}

.visual-search-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.visual-search-price-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}

.visual-search-visits-stat {
    font-size: 11px;
    color: #6b7280;
}

.visual-search-card-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.visual-search-card-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: #111827;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease;
    flex: 1;
}

.visual-search-card-link:hover {
    background: #374151;
}

.visual-search-card-link--secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.visual-search-card-link--secondary:hover {
    background: #f3f4f6;
}

.visual-search-card-link--meta {
    background: #fff;
    color: #1877F2;
    border: 1px solid #1877F2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
}

.visual-search-card-link--meta:hover {
    background: #eff6ff;
    color: #145dbf;
    border-color: #145dbf;
}

.visual-search-card-link--meta img {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    object-fit: contain;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    z-index: 10050;
    overflow: hidden;
}

.search-suggestion-loading-row {
    cursor: default;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
}
.search-suggestion-loading-row:hover {
    background: #fafafa;
}
.search-suggestion-loading-text {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-suggestion-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #225aea;
    animation: explore-search-loading-pulse 1s ease-in-out infinite;
}
@keyframes explore-search-loading-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: #f9fafb; }

.search-suggestion-item.search-suggestion-track-new {
    background: #f8fafc;
}
.search-suggestion-item.search-suggestion-track-new:hover {
    background: #eef2ff;
}
.search-suggestion-item.search-suggestion-track-store {
    background: #fff8ee;
    border-left: 3px solid #f59e0b;
    padding-left: 11px;
}
.search-suggestion-item.search-suggestion-track-store:hover {
    background: #ffefd8;
}
.search-suggestion-track-label {
    font-weight: 600;
    font-size: 13px;
    color: #225aea;
}
.search-suggestion-track-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.search-suggestion-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-domain {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-visits {
    font-size: 11px;
    font-weight: 500;
    color: #6366f1;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-suggestion-track-store-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    background: #ffedd5;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    color: #374151;
    width: 100%;
    font-size: 0.8125rem;
    line-height: 1.2;
    padding: 0;
}

.search-input:focus {
    outline: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.filters-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0;
}

/* Webkit scrollbar styling */
.filters-group::-webkit-scrollbar {
    height: 4px;
}

.filters-group::-webkit-scrollbar-track {
    background: transparent;
}

.filters-group::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.filters-group::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.filter-item {
    flex: 1 1 148px;
    min-width: 132px;
    max-width: 220px;
}

.filter-item.filter-item--store-created {
    flex: 1.15 1 180px;
    min-width: 160px;
    max-width: 280px;
}

/* Store apps combobox: keep flex slot compact (main bar .search-wrapper is wide). */
#storeAppsFilterDropdown.filter-item {
    flex: 1.2 1 190px;
    width: auto;
    min-width: 0;
    max-width: 320px;
}
#storeAppsFilterDropdown .select-wrapper.es-filter-control {
    min-width: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

/* Same fixed track as other .filter-item caps (190px); button was shrinking/growing with label text. */
.filter-item.filter-item--shopify-theme {
    flex: 1.1 1 180px;
    width: auto;
    min-width: 156px;
    max-width: 260px;
}
.filter-item--shopify-theme .shopify-theme-filter-wrapper {
    width: 100%;
}
.filter-item--shopify-theme #shopifyThemeFilterTrigger {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
}
.filter-item--shopify-theme #shopifyThemeFilterTrigger img {
    flex-shrink: 0;
}

.filter-item.filter-item--explore-pixels {
    flex: 1.1 1 180px;
    width: auto;
    min-width: 156px;
    max-width: 260px;
}
.filter-item--explore-pixels .pixels-rules-filter-wrapper {
    width: 100%;
}

.filter-item.filter-item--visitors-country {
    flex: 1.1 1 180px;
    width: auto;
    min-width: 156px;
    max-width: 260px;
}
.visitors-country-filter-wrapper {
    width: 100%;
}
.visitors-country-filter-wrapper #visitorsCountryFilterTrigger {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
}
.visitors-country-filter-wrapper #visitorsCountryFilterTrigger:hover {
    border-color: #cbd5e1 !important;
}
.visitors-country-filter-wrapper #visitorsCountryFilterTrigger .visitors-country-trigger-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: block;
    color: #9ca3af;
}
.visitors-country-filter-wrapper .visitors-country-dropdown-panel.dropdown-options {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    margin-top: 0 !important;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}
.visitors-country-dropdown-panel {
    max-height: min(380px, 72vh) !important;
    width: min(328px, 95vw) !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
}
.visitors-country-dropdown-panel.show {
    display: flex !important;
    flex-direction: column;
}
.visitors-country-dropdown-panel .shopify-themes-search-wrap input {
    width: 100%;
}
.visitors-country-table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 232px;
    border-bottom: 1px solid #eaeaea;
}
.visitors-country-table-wrap::-webkit-scrollbar {
    width: 4px;
}
.visitors-country-table-wrap::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
.visitors-country-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}
.visitors-country-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.visitors-country-table col.vc-col-mode-col {
    width: 58px;
}
.visitors-country-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #000000;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eaeaea;
    line-height: 1.2;
}
.visitors-country-table thead th.vc-col-country {
    width: auto;
    white-space: nowrap;
}
.visitors-country-table thead th.vc-col-mode {
    text-align: center;
    padding: 6px 2px;
    white-space: nowrap;
    vertical-align: middle;
}
.visitors-country-table tbody td {
    padding: 5px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    background: #fff;
}
.visitors-country-table tbody td:first-child {
    min-width: 0;
}
.visitors-country-table tbody tr:hover td {
    background: #f8fafc;
}
.visitors-country-table tbody td.vc-cell-mode {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}
.visitors-country-table .vc-country-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.visitors-country-table .vc-name-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 1 1 0;
}
.visitors-country-table .vc-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.visitors-country-table .vc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475569;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}
.visitors-country-table .vc-row-count {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}
.explore-vc-footer-btn {
    font-size: 11px;
    min-height: 26px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.explore-vc-footer-btn--secondary {
    background: none;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    font-weight: 500;
}
.explore-vc-footer-btn--secondary:hover {
    color: #475569;
    border-color: #cbd5e1;
}
.explore-vc-footer-btn--primary {
    background: #225aea;
    color: #fff;
    border: none;
    padding: 4px 14px;
    font-weight: 600;
}
.explore-vc-footer-btn--primary:hover {
    background: #1d4ed8;
}
.vc-th-label {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    max-width: 100%;
    cursor: pointer;
    color: inherit;
    font: inherit;
    font-weight: 600;
}
.visitors-country-dropdown-panel .vc-th-label .tooltip-popup {
    max-width: 260px;
    text-align: left;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}
.vc-th-label .vc-help-svg {
    flex-shrink: 0;
    color: #94a3b8;
    opacity: 0.85;
}
.visitors-country-panel-summary {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
    color: #475569;
    background: #f8fafc;
    border-top: 1px solid #eaeaea;
    min-height: 2.25rem;
    box-sizing: border-box;
}
.explore-vc-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 10px;
    border-top: 1px solid #eaeaea;
    flex-shrink: 0;
    background: #fafafa;
}
.visitors-country-dropdown-panel .shopify-theme-panel-actions {
    background: #fafafa !important;
}
.visitors-country-dropdown-panel input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}
.visitors-country-dropdown-panel input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0 auto;
    cursor: pointer;
    box-sizing: border-box;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
    position: relative;
    transition: border-color 0.12s ease, background 0.12s ease;
    display: inline-block;
}
.visitors-country-dropdown-panel input[type="checkbox"]:hover {
    border-color: #94a3b8;
}
.visitors-country-dropdown-panel input[type="checkbox"]:checked {
    background: #225aea;
    border-color: #225aea;
}
.visitors-country-dropdown-panel input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}
.visitors-country-dropdown-panel input[type="checkbox"]:focus {
    outline: none;
}
.visitors-country-dropdown-panel input[type="checkbox"]:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #9ca3af;
    border-bottom: 1.5px solid #9ca3af;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.select-wrapper.open::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* Custom button triggers: rotate chevron like .select-wrapper */
.filter-select.es-filter-control .es-filter-trigger-chevron {
    transition: transform 0.2s ease;
    transform-origin: center;
    flex: 0 0 auto !important;
}
.es-filter-dropdown-wrapper.open .es-filter-trigger-chevron {
    transform: rotate(180deg);
}

/* Remove default select arrow in modern browsers */
.select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select:hover {
    border-color: #cbd5e1;
}

.filter-select:focus {
    border-color: #225aea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 90, 234, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Explore shops — creation date (Lightpick); compact, brand #225aea */
.lightpick.lightpick--explore-shops {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-size: 12px;
    color: #0f172a;
    overflow: hidden;
}
/* Stretch row: sidebar sets height; inner fills cell — margin-top auto on footer pulls space above buttons */
.lightpick.lightpick--explore-shops > div[style*="grid-template-columns"] {
    grid-template-columns: 132px 1fr !important;
    align-items: stretch;
    min-height: 0;
}
.lightpick.lightpick--explore-shops .lightpick__inner {
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    padding-bottom: 0;
}
.lightpick.lightpick--explore-shops .lightpick__presets {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.lightpick.lightpick--explore-shops .lightpick__presets > div {
    padding: 8px 6px !important;
    gap: 2px !important;
    border: none !important;
}
.lightpick.lightpick--explore-shops .preset-range {
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.lightpick.lightpick--explore-shops .preset-range:hover {
    background: #e2e8f0;
    color: #334155;
}
.lightpick.lightpick--explore-shops .preset-range.selected {
    background: rgba(34, 90, 234, 0.12);
    color: #225aea;
    font-weight: 600;
}
.lightpick.lightpick--explore-shops .lightpick__months {
    background: #fff;
    gap: 0;
    flex: 0 0 auto;
}
.lightpick.lightpick--explore-shops .lightpick__month {
    width: auto;
    min-width: 220px;
    padding: 7px 9px 5px;
}
.lightpick.lightpick--explore-shops .lightpick__month-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 0;
}
.lightpick.lightpick--explore-shops .lightpick__month-title {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 6px;
    flex-wrap: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}
.lightpick.lightpick--explore-shops .lightpick__month-title > .lightpick__select,
.lightpick.lightpick--explore-shops .lightpick__select-months,
.lightpick.lightpick--explore-shops .lightpick__select-years {
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.2 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    padding: 5px 26px 5px 8px !important;
    margin: 0 !important;
    min-height: 30px;
    box-sizing: border-box !important;
    cursor: pointer;
    text-align: left !important;
    text-align-last: left !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.3' stroke-linecap='round' d='M2.5 3.5L5 6L7.5 3.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 7px center !important;
    background-size: 9px 9px !important;
}
.lightpick.lightpick--explore-shops .lightpick__select-months {
    min-width: 5.9rem;
}
.lightpick.lightpick--explore-shops .lightpick__select-years {
    min-width: 3.75rem;
}
.lightpick.lightpick--explore-shops .lightpick__select-months:hover,
.lightpick.lightpick--explore-shops .lightpick__select-years:hover {
    border-color: #cbd5e1 !important;
}
.lightpick.lightpick--explore-shops .lightpick__select-months:focus,
.lightpick.lightpick--explore-shops .lightpick__select-years:focus {
    border-color: #c7d2fe !important;
    box-shadow: 0 0 0 2px rgba(34, 90, 234, 0.12) !important;
}
.lightpick.lightpick--explore-shops .lightpick__month-title > .lightpick__select:disabled {
    color: #334155 !important;
    background-color: #f8fafc !important;
    border-color: #e5e7eb !important;
    opacity: 1 !important;
    cursor: default;
}
.lightpick.lightpick--explore-shops .lightpick__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin: 0 !important;
}
.lightpick.lightpick--explore-shops .lightpick__previous-action,
.lightpick.lightpick--explore-shops .lightpick__next-action,
.lightpick.lightpick--explore-shops .lightpick__close-action {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    transition: background 0.15s ease, color 0.15s ease;
}
.lightpick.lightpick--explore-shops .lightpick__previous-action,
.lightpick.lightpick--explore-shops .lightpick__next-action {
    font-size: 16px !important;
    letter-spacing: 0;
}
.lightpick.lightpick--explore-shops .lightpick__close-action {
    font-size: 17px !important;
    font-weight: 300;
    transform: none;
}
.lightpick.lightpick--explore-shops .lightpick__previous-action:hover,
.lightpick.lightpick--explore-shops .lightpick__next-action:hover,
.lightpick.lightpick--explore-shops .lightpick__close-action:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}
.lightpick.lightpick--explore-shops .lightpick__day-of-the-week {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lightpick.lightpick--explore-shops .lightpick__days {
    gap: 0;
}
.lightpick.lightpick--explore-shops .lightpick__day {
    height: 30px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    color: #334155;
}
/* Rounded only outside a range — in-range cells stay square so highlights meet flush */
.lightpick.lightpick--explore-shops .lightpick__day.is-in-range {
    border-radius: 0 !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-in-range,
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date.is-in-range.is-flipped {
    border-radius: 6px 0 0 6px !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date.is-in-range,
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-in-range.is-flipped {
    border-radius: 0 6px 6px 0 !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-end-date {
    border-radius: 6px !important;
}
.lightpick.lightpick--explore-shops .lightpick__day:not(.is-disabled):not(.is-in-range):hover {
    background: #f1f5f9 !important;
    background-image: none !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-in-range:not(.is-disabled):not(.is-start-date):not(.is-end-date):hover {
    background-color: rgba(34, 90, 234, 0.14) !important;
    background-image: none !important;
    color: #1d4ed8;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-in-range:not(.is-disabled) {
    background-color: rgba(34, 90, 234, 0.09) !important;
    background-image: none !important;
    color: #225aea;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-in-range,
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date.is-in-range.is-flipped {
    background-color: #225aea !important;
    color: #fff !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date.is-in-range,
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-in-range.is-flipped {
    background-color: #225aea !important;
    color: #fff !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date,
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date,
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date:hover,
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date:hover,
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-in-range:hover,
.lightpick.lightpick--explore-shops .lightpick__day.is-end-date.is-in-range:hover {
    background-image: none !important;
    background-color: #225aea !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 600;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-start-date.is-end-date {
    background-color: #225aea !important;
    background-image: none !important;
}
/* Today: soft fill only — no inset “ring” */
.lightpick.lightpick--explore-shops .lightpick__day.is-today {
    background-image: none !important;
    box-shadow: none !important;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-today:not(.is-start-date):not(.is-end-date) {
    background-color: rgba(34, 90, 234, 0.09) !important;
    color: #1e40af !important;
    font-weight: 600;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-today.is-in-range:not(.is-start-date):not(.is-end-date) {
    background-color: rgba(34, 90, 234, 0.13) !important;
    color: #1d4ed8 !important;
    font-weight: 600;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-today.is-disabled {
    opacity: 0.45;
}
.lightpick.lightpick--explore-shops .lightpick__day.is-today:not(.is-start-date):not(.is-end-date):not(.is-disabled):hover {
    background-color: rgba(34, 90, 234, 0.14) !important;
    color: #1d4ed8 !important;
}
.lightpick.lightpick--explore-shops .lightpick__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin: 0;
    margin-top: auto;
    margin-bottom: 0;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
    flex: 0 0 auto;
}
.lightpick.lightpick--explore-shops .lightpick__footer-message {
    flex: 1;
    font-size: 11px;
    color: #b45309;
    text-align: center;
    align-self: center;
}
.lightpick.lightpick--explore-shops .lightpick__reset-action,
.lightpick.lightpick--explore-shops .lightpick__apply-action {
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border-radius: 6px !important;
    cursor: pointer;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.lightpick.lightpick--explore-shops .lightpick__reset-action {
    background: #fff !important;
    color: #000000 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.lightpick.lightpick--explore-shops .lightpick__reset-action:hover {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
.lightpick.lightpick--explore-shops .lightpick__apply-action {
    background: #225aea !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 1px 2px rgba(34, 90, 234, 0.25);
}
.lightpick.lightpick--explore-shops .lightpick__apply-action:hover {
    background: #1a4acc !important;
}

/* Prevent browser-native dropdown for these filters.
   We open a custom dropdown panel instead (see JS below). */
#categoryFilter,
#languageFilter,
#currencyFilter,
#countryFilter,
/* range-style filters (native dropdown suppressed; open custom slider instead) */
#monthlyRevenueFilter,
#annualRevenueFilter,
#revenueChangeFilter,
#aovFilter,
#monthlyVisitsFilter,
#productCountFilter {
    pointer-events: none !important;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-button svg {
    width: 14px;
    height: 14px;
}

.sort-button:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

/* responsive */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 10px;
        gap: 0;
        position: relative;
        z-index: 30;
    }

    .filters-group {
        border-left: none;
        padding-top: 8px;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }

    .filters-bar-left {
        width: 100%;
    }

    .search-wrapper {
        min-width: 100%;
    }

    #storeAppsFilterDropdown.filter-item {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        max-width: min(200px, 100%);
    }
    #storeAppsFilterDropdown .select-wrapper.es-filter-control {
        min-width: 0 !important;
        max-width: 100%;
    }

    .filter-item {
        min-width: 140px;
    }

    .filter-item.filter-item--shopify-theme {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .filters-group .select-wrapper:not(.search-wrapper) .filter-select {
        padding: 4px 20px 4px 22px !important;
    }
    .filters-group #storeCreatedRangeInput.filter-select {
        padding: 4px 20px 4px 26px !important;
    }
}

.select-wrapper.search-wrapper {
    position: relative;
}

.dropdown-options {
    position: fixed;
    /* Changed from absolute to fixed */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
    border: 1px solid #eaeaea;
    width: 200px;
    /* Set explicit width */
}

.accuracy-modal-body {
    font-size: 0.875rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

/* scrollbar */
.dropdown-options::-webkit-scrollbar {
    width: 3px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}
.dropdown-options,
.shopify-themes-list,
.visitors-country-table-wrap,
.simple-searchable-dropdown .dropdown-options-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.shopify-themes-list::-webkit-scrollbar,
.visitors-country-table-wrap::-webkit-scrollbar,
.simple-searchable-dropdown .dropdown-options-list::-webkit-scrollbar {
    width: 3px;
}
.shopify-themes-list::-webkit-scrollbar-track,
.visitors-country-table-wrap::-webkit-scrollbar-track,
.simple-searchable-dropdown .dropdown-options-list::-webkit-scrollbar-track {
    background: transparent;
}
.shopify-themes-list::-webkit-scrollbar-thumb,
.visitors-country-table-wrap::-webkit-scrollbar-thumb,
.simple-searchable-dropdown .dropdown-options-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}
.shopify-themes-list::-webkit-scrollbar-thumb:hover,
.visitors-country-table-wrap::-webkit-scrollbar-thumb:hover,
.simple-searchable-dropdown .dropdown-options-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}


.filter-item {
    position: relative;
    overflow: visible !important;
}


.dropdown-options.show {
    display: block;
}

.filters-group .select-wrapper:not(.search-wrapper):not(.es-filter-control)::after {
    right: 8px;
    width: 4px;
    height: 4px;
    border-right-width: 1.25px;
    border-bottom-width: 1.25px;
}
.filters-group .select-wrapper .select-icon {
    display: none !important;
}
.filters-group .select-wrapper.store-created-filter-wrapper .select-icon {
    display: block !important;
    left: 9px;
    width: 13px;
    height: 13px;
}
.filters-group .select-wrapper:has(#metaActiveAdsFilter) .select-icon {
    display: block !important;
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}
.filters-group .select-wrapper:has(#metaActiveAdsFilter)::before {
    display: none;
}
.filters-group .select-wrapper::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translateY(-50%);
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
    opacity: 0.78;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 4.5H13.5M4 8H12M6 11.5H10' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Per-filter icon mapping (not one icon for all) */
.filters-group .select-wrapper:has(#categoryFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 4.5H7M9 4.5H13.5M2.5 8H5.5M7.5 8H13.5M2.5 11.5H6.5M8.5 11.5H13.5' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper:has(#monthlyRevenueFilter)::before,
.filters-group .select-wrapper:has(#annualRevenueFilter)::before,
.filters-group .select-wrapper:has(#currencyFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 2.5V13.5M10.7 5.2C10.1 4.5 9.2 4.1 8 4.1C6.5 4.1 5.5 4.9 5.5 6C5.5 7.1 6.3 7.6 8 8C9.8 8.4 10.5 8.9 10.5 10.1C10.5 11.3 9.4 12 8 12C6.9 12 5.9 11.6 5.2 10.9' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper:has(#revenueChangeFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 11.5L6.3 7.7L8.9 10.3L13.5 5.7M10.7 5.7H13.5V8.5' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper:has(#aovFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.8 5.2L8 2.5L13.2 5.2V10.8L8 13.5L2.8 10.8V5.2Z' stroke='%2394a3b8' stroke-width='1.6'/%3E%3Cpath d='M2.8 5.2L8 8L13.2 5.2' stroke='%2394a3b8' stroke-width='1.6'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper:has(#monthlyVisitsFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 12.5H13.5M4 10V7.5M7 10V5.5M10 10V8.2M13 10V4.5' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper:has(#countryFilter)::before,
.filters-group .select-wrapper:has(#languageFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='5.5' stroke='%2394a3b8' stroke-width='1.6'/%3E%3Cpath d='M2.8 8H13.2M8 2.5C9.2 3.9 9.9 5.9 9.9 8C9.9 10.1 9.2 12.1 8 13.5M8 2.5C6.8 3.9 6.1 5.9 6.1 8C6.1 10.1 6.8 12.1 8 13.5' stroke='%2394a3b8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper:has(#productCountFilter)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2.5' y='3' width='11' height='10' rx='1.8' stroke='%2394a3b8' stroke-width='1.6'/%3E%3Cpath d='M2.5 6H13.5M6 3V13' stroke='%2394a3b8' stroke-width='1.4'/%3E%3C/svg%3E");
}
.filters-group .select-wrapper.search-wrapper::before {
    display: none;
}

#trustpilotToggle,
#trafficGrowthToggle,
#shopifyThemeFilterTrigger,
#pixelsFilterTrigger,
#visitorsCountryFilterTrigger {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    min-height: 29px !important;
    padding: 3px 26px 3px 9px !important;
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    position: relative;
    background-image: none !important;
}
#trustpilotToggle:hover,
#trafficGrowthToggle:hover,
#shopifyThemeFilterTrigger:hover,
#pixelsFilterTrigger:hover,
#visitorsCountryFilterTrigger:hover {
    border-color: #cbd5e1 !important;
}
#trustpilotToggle:focus-visible,
#trafficGrowthToggle:focus-visible,
#shopifyThemeFilterTrigger:focus-visible,
#pixelsFilterTrigger:focus-visible,
#visitorsCountryFilterTrigger:focus-visible {
    outline: none !important;
    border-color: #225aea !important;
    box-shadow: 0 0 0 3px rgba(34, 90, 234, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}
button.filter-select.es-filter-control .es-filter-trigger-chevron {
    display: inline-flex !important;
}
button.filter-select.es-filter-control > .es-filter-trigger-label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
button.filter-select.es-filter-control > .es-filter-trigger-icon {
    width: auto !important;
    min-width: 13px;
    flex-shrink: 0;
}
button.filter-select.es-filter-control > .es-filter-trigger-icon img,
button.filter-select.es-filter-control > .es-filter-trigger-icon svg {
    width: 13px !important;
    height: 13px !important;
}

.dropdown-options {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

#shopifyThemesDropdown,
#pixelsDropdown,
#visitorsCountryDropdown,
#trustpilotDropdown,
#trafficGrowthDropdown {
    width: min(300px, 94vw) !important;
    min-width: 260px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}
#shopifyThemesDropdown,
#pixelsDropdown,
#visitorsCountryDropdown,
#trafficGrowthDropdown {
    width: min(328px, 95vw) !important;
    min-width: 280px !important;
}

.shopify-themes-search-wrap {
    padding: 5px 8px;
}
.shopify-themes-search-wrap input,
#visitorsCountrySearch,
#shopifyThemeSearchInput {
    min-height: 27px;
    padding: 4px 9px 4px 28px !important;
    border-radius: 7px !important;
    border-color: #e2e8f0 !important;
    font-size: 11px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M14 14.0003L10.3454 10.3457' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.88889 11.7778C9.58889 11.7778 11.7778 9.58889 11.7778 6.88889C11.7778 4.18889 9.58889 2 6.88889 2C4.18889 2 2 4.18889 2 6.88889C2 9.58889 4.18889 11.7778 6.88889 11.7778Z' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 9px center;
    background-size: 14px 14px;
}

.shopify-theme-row,
.dropdown-option {
    padding: 5px 8px;
    font-size: 11px;
}
.shopify-theme-select-all-row {
    padding: 5px 8px;
    font-size: 11px;
}

.shopify-theme-panel-actions {
    padding: 6px 8px !important;
    border-top: 1px solid #eef2f7 !important;
    gap: 6px !important;
}
.explore-shopify-theme-footer.shopify-theme-panel-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    background: #fafafa !important;
    border-top: 1px solid #eaeaea !important;
}
.explore-panel-footer-btn {
    min-height: 27px !important;
    padding: 4px 12px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.explore-panel-footer-btn--secondary {
    background: none !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 500 !important;
}
.explore-panel-footer-btn--secondary:hover {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
.explore-panel-footer-btn--primary {
    background: #225aea !important;
    color: #fff !important;
    border: none !important;
}
.explore-panel-footer-btn--primary:hover {
    background: #1d4ed8 !important;
}
.shopify-theme-panel-actions button,
#clearTrustpilotFilter,
#applyTrustpilotFilter,
#clearTrafficGrowthRulesWrapper,
#applyTrafficGrowthRules {
    min-height: 27px !important;
    padding: 4px 10px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
}

#trustpilotDropdown > div:first-child {
    padding: 8px 10px 5px 10px !important;
}
#trustpilotDropdown > div:nth-child(2) {
    padding: 6px 10px 7px 10px !important;
}
#trustpilotDropdown > div:last-child {
    padding: 6px 10px !important;
    border-top: 1px solid #eef2f7 !important;
}
#trustpilotDropdown [id$="Presets"] {
    gap: 5px !important;
    margin-bottom: 6px !important;
}
.tp-preset-chip {
    padding: 2px 8px;
    border-radius: 7px;
    font-size: 10px;
}

.range-slider-dropdown {
    padding: 8px 10px 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
    width: min(300px, 94vw);
}
.range-slider-header {
    font-size: 11px;
    margin-bottom: 6px;
}
.range-slider-presets {
    gap: 5px;
    margin-bottom: 8px;
}
.range-preset-chip {
    padding: 2px 8px;
    border-radius: 7px;
    font-size: 10px;
}
.range-slider-input-group {
    margin-bottom: 8px;
}
.range-slider-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
}
.range-slider-action-btn,
.range-slider-apply-btn {
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11px;
}

.simple-searchable-dropdown {
    max-height: min(300px, 58vh);
    min-width: 200px;
    overflow: hidden;
}
.simple-searchable-dropdown.show {
    display: flex;
    flex-direction: column;
}
.simple-searchable-dropdown .dropdown-options-list {
    overflow-y: auto;
    max-height: min(240px, 46vh);
    flex: 1 1 auto;
}
.simple-searchable-dropdown .dropdown-option-empty {
    padding: 6px 10px;
    font-size: 11px;
    color: #94a3b8;
    cursor: default;
    border-top: 1px solid #f1f5f9;
}

/* Anchor to wrapper like Traffic Growth; overrides global .dropdown-options { position: fixed } */
.shopify-theme-filter-wrapper .shopify-themes-dropdown-panel.dropdown-options {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    margin-top: 0 !important;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

.traffic-growth-filter-wrapper .traffic-growth-dropdown-panel.dropdown-options {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    margin-top: 0 !important;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}
.traffic-growth-dropdown-panel {
    max-height: min(420px, 75vh) !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
}
.traffic-growth-dropdown-panel.show {
    display: flex !important;
    flex-direction: column;
}
.traffic-growth-dropdown__title {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 11px;
    color: #1e293b;
    padding: 8px 10px 4px 10px;
    letter-spacing: 0.01em;
}
.traffic-growth-dropdown__hint {
    flex-shrink: 0;
    padding: 0 10px 6px 10px;
    font-size: 11px;
    line-height: 1.45;
    color: #000000;
}
.traffic-growth-dropdown__rules-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.traffic-growth-dropdown__rules-scroll #trafficGrowthRulesContainer {
    padding: 0 10px 4px 10px !important;
}
.traffic-growth-dropdown__add-wrap {
    flex-shrink: 0;
    padding: 6px 10px 8px 10px;
    border-top: 1px solid #eaeaea;
}
.traffic-growth-add-rule-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 500;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease;
}
.traffic-growth-add-rule-btn:hover {
    color: #1e293b;
}
.traffic-growth-add-rule-btn svg {
    flex-shrink: 0;
    display: block;
}
.traffic-growth-add-rule--hidden {
    display: none !important;
}
.traffic-growth-rule-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
}
.traffic-growth-rule-row:last-child {
    border-bottom: none;
}

.shopify-themes-dropdown-panel {
    max-height: min(340px, 68vh) !important;
    width: min(328px, 95vw) !important;
    padding: 0 !important;
    overflow: hidden;
}
.shopify-themes-dropdown-panel.show {
    display: flex !important;
    flex-direction: column;
}
.shopify-themes-search-wrap {
    padding: 5px 8px;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
}
.shopify-themes-search-wrap input {
    width: 100%;
    padding: 4px 9px 4px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 11px;
    color: #334155;
    box-sizing: border-box;
}
.shopify-themes-search-wrap input:focus {
    outline: none;
    border-color: #a5b4fc;
}
.shopify-themes-list {
    max-height: 220px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.shopify-theme-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #334155;
}
.shopify-theme-row:hover {
    background: #f8fafc;
}
.shopify-theme-row .shopify-theme-logo {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

/* Custom checkboxes: page-wide ::before on input[type=checkbox] clashes with native paint (heavy black boxes). */
.shopify-themes-dropdown-panel input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}
.shopify-themes-dropdown-panel input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
    position: relative;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:hover {
    border-color: #94a3b8;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:checked {
    background: #225aea;
    border-color: #225aea;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:indeterminate {
    background: #225aea;
    border-color: #225aea;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:indeterminate::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: #fff;
    border: none;
    transform: none;
    width: auto;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:focus {
    outline: none;
}
.shopify-themes-dropdown-panel input[type="checkbox"]:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

.shopify-theme-row .shopify-theme-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shopify-theme-row .shopify-theme-count {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.shopify-theme-select-all-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-top: 1px solid #eaeaea;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.dropdown-option-app-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: contain;
}

.dropdown-option:hover,
.dropdown-option.highlighted {
    background: #f5f5f5;
}

.dropdown-option.selected {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 500;
}

.dropdown-option.selected:hover,
.dropdown-option.selected.highlighted {
    background: #e2e8f0;
}

/* range slider dropdown */
.range-slider-dropdown {
    position: fixed;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    display: none;
    padding: 10px 12px 9px 12px;
    width: min(340px, 94vw);
    max-width: calc(100vw - 24px);
}

.range-slider-dropdown.show {
    display: block;
}

.range-slider-header {
    font-weight: 600;
    font-size: 11.5px;
    color: #1e293b;
    margin-bottom: 8px;
}

.range-slider-presets {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.range-preset-chip {
    padding: 2px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 10px;
    color: #000000;
    cursor: pointer;
    background: #fff;
    white-space: nowrap;
    transition: all 0.15s;
}

.range-preset-chip:hover {
    border-color: #225aea;
    color: #225aea;
}

.range-preset-chip.active {
    background: #225aea;
    color: #fff;
    border-color: #225aea;
}

.range-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-slider-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    width: 62px;
    min-height: 26px;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.range-slider-input-wrap.range-max-input-wrap {
    width: 66px;
}

.range-max-input::placeholder {
    color: #94a3b8;
    font-size: 11px;
}

.range-slider-input {
    width: 100%;
    height: 24px;
    padding: 2px 4px;
    border: none;
    font-size: 11px;
    line-height: 1.1;
    background: transparent;
    color: #1e293b;
    outline: none;
    text-align: center;
    -moz-appearance: textfield;
    transition: color 0.15s ease;
}
.range-slider-input::-webkit-outer-spin-button,
.range-slider-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.range-slider-input-wrap:hover {
    border-color: #cbd5e1;
    background: #fcfdff;
}
.range-slider-input-wrap:focus-within {
    border-color: #225aea;
    box-shadow: 0 0 0 3px rgba(34, 90, 234, 0.12);
    background: #fff;
}
.range-slider-input:focus {
    box-shadow: none;
}

.range-slider-track-wrap {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    flex: 1;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    pointer-events: none;
}

.range-slider-fill {
    position: absolute;
    height: 2px;
    background: #225aea;
    border-radius: 2px;
    pointer-events: none;
}

.range-slider-track-wrap input[type="range"] {
    position: absolute;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    outline: none;
}

.range-slider-track-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #225aea;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: all;
}

.range-slider-track-wrap input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #225aea;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: all;
}

.range-slider-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #eef2f7;
}

.range-slider-action-btn {
    background: none;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    min-height: 27px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.range-slider-action-btn:hover {
    color: #475569;
}

.range-slider-apply-btn {
    background: #225aea;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    min-height: 27px;
    cursor: pointer;
}

.range-apply-btn {
    background: #225aea;
    color: #fff;
    border: none;
}

.active-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
    min-height: 38px;
}

.active-filters-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    min-height: 28px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background-color: #f8fafc;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.2;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.filter-tag-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 10.5px;
}

.filter-tag-value {
    font-weight: 500;
    color: #334155;
}

.filter-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.filter-tag-remove:hover {
    color: #225aea;
    background: #edf2ff;
}

.clear-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 10px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.2;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.clear-filters:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.no-filters-text {
    color: #6b7280;
    /* font-size: 0.875rem; */
    font-style: italic;
}

/* Filter Presets Section Styles */
.filter-presets-section {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.filter-presets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.filter-presets-section .flex.flex-col.md\:flex-row {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}

.filter-presets-title {
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.2;
}

.filter-preset-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    flex: 0 1 156px;
    min-width: 132px;
    max-width: 196px;
    min-height: 30px;
    padding: 4px 8px;
}

.filter-preset-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.filter-preset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-right: 7px;
    padding: 0;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.filter-preset-icon svg {
    display: none !important;
}
.filter-preset-icon::before {
    content: "";
    width: 13px;
    height: 13px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
    opacity: 0.95;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2.5' y='3' width='11' height='10' rx='1.8' stroke='%2394a3b8' stroke-width='1.6'/%3E%3Cpath d='M2.5 6H13.5M6 3V13' stroke='%2394a3b8' stroke-width='1.4'/%3E%3C/svg%3E");
}
.filter-preset-card[data-filter="revenue"] .filter-preset-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 12.5H13.5M4 10V7.5M7 10V5.5M10 10V8.2M13 10V4.5' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filter-preset-card[data-filter="whale-aov"] .filter-preset-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.8 5.2H13.2M3.2 5.2L4.1 12.2C4.2 12.9 4.8 13.4 5.5 13.4H10.5C11.2 13.4 11.8 12.9 11.9 12.2L12.8 5.2M6 7.8V10.8M10 7.8V10.8' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.2 5.2V4.5C5.2 3.9 5.7 3.4 6.3 3.4H9.7C10.3 3.4 10.8 3.9 10.8 4.5V5.2' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filter-preset-card[data-filter="fast-growing"] .filter-preset-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 12.5H13.5M3.8 10.4L6.5 7.7L8.6 9.8L12.5 5.9M10.5 5.9H12.5V7.9' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.filter-preset-content {
    flex: 1 1 auto;
    min-width: 0;
}

.filter-preset-title {
    font-weight: 500;
    font-size: 11px;
    color: #475569;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.filter-preset-card[data-filter="revenue"] {
    flex-basis: 176px;
    min-width: 176px;
    max-width: 208px;
}

/* Active filter state */
.filter-preset-card.active {
    border-color: #225aea;
    background-color: #f5f8ff;
    box-shadow: 0 0 0 1px rgba(34, 90, 234, 0.08) inset;
}

.filter-preset-card.active .filter-preset-title {
    color: #225aea;
    font-weight: 500;
}

.filter-preset-card.active .filter-preset-icon svg {
    color: #225aea;
}
.filter-preset-card.active .filter-preset-icon::before {
    filter: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2.5' y='3' width='11' height='10' rx='1.8' stroke='%23225aea' stroke-width='1.6'/%3E%3Cpath d='M2.5 6H13.5M6 3V13' stroke='%23225aea' stroke-width='1.4'/%3E%3C/svg%3E");
}
.filter-preset-card.active[data-filter="revenue"] .filter-preset-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 12.5H13.5M4 10V7.5M7 10V5.5M10 10V8.2M13 10V4.5' stroke='%23225aea' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filter-preset-card.active[data-filter="whale-aov"] .filter-preset-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.8 5.2H13.2M3.2 5.2L4.1 12.2C4.2 12.9 4.8 13.4 5.5 13.4H10.5C11.2 13.4 11.8 12.9 11.9 12.2L12.8 5.2M6 7.8V10.8M10 7.8V10.8' stroke='%23225aea' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.2 5.2V4.5C5.2 3.9 5.7 3.4 6.3 3.4H9.7C10.3 3.4 10.8 3.9 10.8 4.5V5.2' stroke='%23225aea' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.filter-preset-card.active[data-filter="fast-growing"] .filter-preset-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 12.5H13.5M3.8 10.4L6.5 7.7L8.6 9.8L12.5 5.9M10.5 5.9H12.5V7.9' stroke='%23225aea' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* export button */
.export-button-container {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
}

.export-dropdown {
    position: relative;
}

.export-button {
    background-color: #225aea;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-button:hover {
    background-color: #1a46c2;
    box-shadow: 0 2px 4px rgba(34, 90, 234, 0.2);
}

.export-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(34, 90, 234, 0.1);
}

.export-button-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-icon {
    color: white;
    width: 14px;
    height: 14px;
}

.export-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.export-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.export-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4b5563;
    font-size: 0.8rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Add this to your existing styles */
.export-menu-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.lock-icon-small {
    display: inline-flex;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    vertical-align: -2px;
}

.export-menu-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.export-menu-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom: none;
}

.export-menu-item:hover {
    background-color: #f5f7ff;
    color: #225aea;
}

/* responsive */
@media (max-width: 768px) {
    .filter-preset-card {
        min-width: 120px;
        max-width: 100%;
        flex: 1 1 calc(50% - 6px);
        padding: 4px 7px;
    }

    .filter-preset-title {
        font-size: 10.5px;
    }

    .filter-preset-icon {
        width: 13px;
        height: 13px;
    }

    .filter-preset-icon::before {
        width: 12px;
        height: 12px;
    }

    .export-button-container {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
    }

    .export-button {
        padding: 5px 10px;
    }

    .export-text {
        font-size: 0.625rem;
    }
}

:root {
    --es2-bg:           #ffffff;
    --es2-surface:      #ffffff;
    --es2-surface-alt:  #ffffff;
    --es2-surface-hov:  #f1f5f9;
    --es2-filter-surface: var(--wh-filter-surface, #f8fafc);
    --es2-filter-surface-hov: var(--wh-filter-surface-hover, #f1f5f9);
    --es2-filter-surface-focus: var(--wh-filter-surface-focus, #eff6ff);
    --es2-border:       #e7edf5;
    --es2-border-strong:#dde6f1;
    --es2-border-hov:   #d2deec;
    --es2-text:         #0f172a;
    --es2-text-2:       #334155;
    --es2-text-3:       #000000;
    --es2-text-mute:    #94a3b8;
    --es2-primary:      #1d4ed8;
    --es2-primary-soft: #e8eef9;
    --es2-primary-text: #1e40af;
    --es2-success:      #16a34a;
    --es2-success-bright:#22c55e;
    --es2-success-soft: #dcfce7;
    --es2-success-border:#bbf7d0;
    --es2-danger:       #e11d48;
    --es2-danger-soft:  #ffe4e6;
    --es2-danger-border:#fecdd3;
    --es2-radius-lg:    12px;
    --es2-radius:       10px;
    --es2-radius-sm:    7px;
    --es2-shadow-xs:    0 1px 2px rgba(15, 23, 42, 0.05);
    --es2-shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.07);
    --es2-h-control:    32px;
    --es2-h-control-sm: 28px;
    --es2-filter-font:  10px;
}

/* Explore filter row: use .es-filter-control on native selects / custom triggers; .es-filter-control__input + .es-filter-dropdown for store-apps combobox. */

/* ---------- Page shell: align with fixed rail, minimal left gutter ---------- */
.new-page-wrapper {
    max-width: none !important;
    width: calc(100% - 196px) !important;
    margin-left: 196px !important;
    box-sizing: border-box;
}
.page-content {
    padding-top: 88px !important;
    padding-bottom: 24px !important;
}
/* Webflow / theme spacing chokeholds — neutralise them inside the redesigned page */
.new-page-wrapper .padding-global,
.new-page-wrapper .container-large,
.new-page-wrapper .container-medium,
.new-page-wrapper .container-small {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}
.new-page-wrapper .margin-bottom.margin-xlarge,
.new-page-wrapper .margin-xlarge {
    margin-bottom: 0 !important;
}
.new-page-wrapper .section_dashbaord {
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Page header ---------- */
.new-page-wrapper .explore-shops-topbar {
    background: var(--es2-surface);
    border: none;
    border-radius: var(--es2-radius-lg);
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
    min-height: 48px;
    box-shadow: none;
    align-items: flex-start !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.explore-shops-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 220px;
}
.explore-shops-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.explore-shops-main-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--es2-text);
    line-height: 1.15;
}
.explore-shops-title-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--es2-primary);
}
.explore-shops-subtitle {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--es2-text-mute);
}
.explore-shops-subtitle #categoryPageTitle {
    color: var(--es2-text-2) !important;
    font-weight: 600 !important;
}
.explore-shops-subtitle-prefix {
    font-weight: 500;
    color: var(--es2-text-mute);
}
.explore-shops-topbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
@media (max-width: 991px) {
    .explore-shops-topbar-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}
.new-page-wrapper hr {
    display: none !important;
}

.accuracy-info-btn {
    font-size: 11px !important;
    padding: 5px 9px !important;
    border-radius: var(--es2-radius-sm) !important;
    background: var(--es2-surface) !important;
    border: 1px solid var(--es2-border) !important;
    color: var(--es2-text-2) !important;
    font-weight: 500;
    gap: 5px !important;
}
.accuracy-info-btn:hover {
    background: var(--es2-surface-hov) !important;
    border-color: var(--es2-border-hov) !important;
    color: var(--es2-text) !important;
}
.accuracy-info-btn svg {
    width: 13px !important;
    height: 13px !important;
}
/* Header: data accuracy — same footprint as credits chip */
.explore-header-accuracy-btn {
    display: none !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 12px 0 6px !important;
    border-radius: var(--es2-radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--es2-text-2) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.explore-header-accuracy-btn:hover {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.11) !important;
    color: var(--es2-text) !important;
}
.explore-header-accuracy-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.3) !important;
    outline-offset: 1px !important;
}
.explore-header-accuracy-btn__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: var(--es2-radius-sm) !important;
    border: 1px solid rgba(59, 130, 246, 0.18) !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    flex-shrink: 0 !important;
}
.explore-header-accuracy-btn__icon svg {
    width: 15px !important;
    height: 15px !important;
}
.explore-header-accuracy-btn__label {
    letter-spacing: 0.01em;
}
@media (max-width: 640px) {
    .explore-header-accuracy-btn__label {
        display: none !important;
    }
    .explore-header-accuracy-btn {
        padding: 0 10px !important;
        width: 36px !important;
        justify-content: center !important;
    }
}

/* ---------- Filters bar — single compact toolbar ---------- */
.filters-bar {
    gap: 8px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius-lg) !important;
    background: var(--es2-surface) !important;
    box-shadow: var(--es2-shadow-xs);
    z-index: 30;
}
.filters-bar-left {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

/* Search bar — full-width, compact, consistent */
.search-wrapper {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    min-height: var(--es2-h-control) !important;
    padding: 4px 10px !important;
    gap: 6px !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius) !important;
    background: var(--es2-surface) !important;
    box-shadow: none !important;
}
.search-wrapper:focus-within {
    background: #fff !important;
    border-color: var(--es2-border-hov) !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.10) !important;
}
.search-wrapper > svg:first-child {
    color: var(--es2-text-mute) !important;
    width: 14px !important;
    height: 14px !important;
}
.search-wrapper .search-input,
.search-wrapper input[type="text"] {
    font-size: 12.5px !important;
    color: var(--es2-text) !important;
    font-weight: 500;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
}
.search-wrapper.is-loading {
    position: relative;
    overflow: hidden;
    background: #fbfdff !important;
}
.search-wrapper.is-loading::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(34, 90, 234, 0.15) 0%, rgba(34, 90, 234, 0.92) 50%, rgba(34, 90, 234, 0.15) 100%);
    background-size: 200% 100%;
    animation: explore-searchbar-loading 1s linear infinite;
}
.search-wrapper.is-loading > svg:first-child {
    color: #225aea !important;
    animation: explore-search-icon-pulse 1s ease-in-out infinite;
}
@keyframes explore-searchbar-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes explore-search-icon-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
.search-wrapper input::placeholder {
    color: var(--es2-text-mute) !important;
    font-weight: 500;
}
.explore-visual-search-camera-btn {
    color: var(--es2-text-mute) !important;
    border-color: rgba(15, 23, 42, 0.07) !important;
}
.explore-visual-search-camera-btn:hover {
    color: var(--es2-text-2) !important;
    background: var(--es2-surface-hov) !important;
    border-color: rgba(15, 23, 42, 0.11) !important;
}

/* Visual-search exit pill — keep tight */
#visual-search-exit-btn,
.visual-search-exit-btn-top-el {
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    border: 1px solid var(--es2-border) !important;
    color: var(--es2-text-2) !important;
    background: var(--es2-surface) !important;
}

/* ---------- Filters group — wrap of consistent select pills ---------- */
.filters-group {
    gap: 6px !important;
    padding: 0 !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
/* Entire filter row stacks above sticky #shopsTable thead (thead z-index ~10) so custom panels aren’t covered */
.explore-filters-scope .filters-group {
    position: relative !important;
    z-index: 50 !important;
}
/* Uniform dynamic flex track for every filter — same min, same max, fluid in between */
.filters-group > .filter-item {
    flex: 1 1 160px !important;
    min-width: 148px !important;
    max-width: 220px !important;
    width: auto !important;
    box-sizing: border-box !important;
}
/* Slightly wider tracks where the content genuinely needs it */
.filters-group > #storeAppsFilterDropdown.filter-item {
    flex: 1.2 1 180px !important;
    min-width: 168px !important;
    max-width: 260px !important;
}
.filters-group > .filter-item.filter-item--store-created {
    flex: 1.1 1 170px !important;
    min-width: 158px !important;
    max-width: 240px !important;
}
/* Each item's inner wrapper must stretch so the control fills the track */
.filters-group > .filter-item > .select-wrapper,
.filters-group > .filter-item > .es-filter-dropdown-wrapper {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* All native + custom-trigger filter controls — uniform compact pill.
   Shared visual surface (size, color, border, font). Width handled per-type below. */
.filter-select,
.filter-select.es-filter-control,
#storeAppsFilterDropdown .filter-select,
#storeCreatedRangeInput.filter-select {
    min-height: var(--es2-h-control) !important;
    height: var(--es2-h-control) !important;
    line-height: normal !important;
    padding: 0 22px 0 26px !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: var(--es2-filter-font) !important;
    font-weight: 500 !important;
    color: var(--es2-text-2) !important;
    background-color: var(--es2-filter-surface) !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius) !important;
    box-shadow: none !important;
}
/* Custom button triggers use flex for perfect vertical centering */
button.filter-select.es-filter-control {
    display: inline-flex !important;
    align-items: center !important;
}

/* Native <select> filters: fill their .filter-item flex track (dynamic width via parent) */
.filters-group .filter-select {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
/* Landers niche / page-type rules filters keep a hidden <select> as state only.
   The visible control is the custom rules button — never render the select too,
   otherwise the filter appears double-stacked. */
.filters-group .landers-rules-filter-wrapper > select.filter-select[hidden],
.filters-group select#landersNicheFilter[hidden],
.filters-group select#landersPageTypeFilter[hidden] {
    display: none !important;
}

/* ---------- Landers library: black filter font (match /dashboard) ---------- */
.landers-page-wrapper #landers-minimal-filters .filter-select,
.landers-page-wrapper #landers-minimal-filters .filter-select.es-filter-control,
.landers-page-wrapper #landers-minimal-filters button.filter-select,
.landers-page-wrapper #landers-minimal-filters input.filter-select,
.landers-page-wrapper #landers-minimal-filters select.filter-select,
.landers-page-wrapper #landers-minimal-filters .filter-select span {
    color: #000000 !important;
}
.landers-page-wrapper #landers-minimal-filters select.filter-select option {
    color: #000000;
}
/* /css/dist/app.css (Tailwind preflight) adds a background SVG chevron on all `select`.
   Explore filters already draw one chevron via .select-wrapper::after — strip the duplicate. */
.explore-filters-scope .filters-group select.filter-select {
    background-image: none !important;
}
.explore-filters-scope .filters-group select.filter-select::-ms-expand {
    display: none;
}

/* Custom <button> triggers: full-width inside their wrapper, same dynamic track.
   Icon + label + chevron are inline (not absolute). */
button.filter-select.es-filter-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow: hidden !important;
}
/* Leading icon slot — emoji, brand SVG, or image */
.filter-select.es-filter-control > .es-filter-trigger-icon {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 13px;
    color: var(--es2-text-mute) !important;
    font-size: 13px !important;
    line-height: 1 !important;
}
.filter-select.es-filter-control > .es-filter-trigger-icon img,
.filter-select.es-filter-control > .es-filter-trigger-icon svg {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
}
/* Label — grow, shrink, ellipsize (WebKit needs explicit font on inner span) */
.filter-select.es-filter-control > .es-filter-trigger-label,
.filter-select.es-filter-control > span.es-filter-trigger-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: var(--es2-filter-font) !important;
    font-weight: 500 !important;
    color: inherit !important;
}
.es-filter-trigger-label.is-placeholder {
    color: var(--es2-text-2) !important;
}

/* Hover/focus — apply across selects + triggers uniformly */
.filter-select:hover,
.filter-select.es-filter-control:hover {
    border-color: var(--es2-border-hov) !important;
    background-color: var(--es2-filter-surface-hov) !important;
    color: var(--es2-text) !important;
}
.filter-select:focus {
    border-color: var(--es2-border-strong) !important;
    background-color: var(--es2-filter-surface-focus) !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12) !important;
}
/* Creation-date field is a readonly <input>: match select typography + placeholder (UA defaults differ). */
.explore-filters-scope .filters-group #storeCreatedRangeInput.filter-select {
    color: var(--es2-text-2) !important;
    -webkit-text-fill-color: var(--es2-text-2) !important;
}
.explore-filters-scope .filters-group #storeCreatedRangeInput.filter-select::placeholder,
.explore-filters-scope .filters-group #storeCreatedRangeInput.filter-select::-webkit-input-placeholder {
    color: var(--es2-text-2) !important;
    -webkit-text-fill-color: var(--es2-text-2) !important;
    opacity: 1 !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: var(--es2-filter-font) !important;
    font-weight: 500 !important;
}
.explore-filters-scope .filters-group #storeCreatedRangeInput.filter-select:hover {
    color: var(--es2-text) !important;
    -webkit-text-fill-color: var(--es2-text) !important;
}
.explore-filters-scope .filters-group #storeCreatedRangeInput.filter-select:focus,
.explore-filters-scope .filters-group #storeCreatedRangeInput.filter-select:focus-visible {
    outline: none !important;
}
/* Options inside native selects — inherit our font */
.filter-select option {
    font-family: inherit !important;
    font-size: var(--es2-filter-font) !important;
    color: var(--es2-text) !important;
}
/* shrink chevron, recolor — filters bar only (avoid leaking to other .select-wrapper on page) */
.explore-filters-scope .filters-group .select-wrapper::after {
    width: 4px !important;
    height: 4px !important;
    border-right-width: 1.4px !important;
    border-bottom-width: 1.4px !important;
    border-color: var(--es2-text-3) !important;
    right: 9px !important;
}
.explore-filters-scope .filters-group .select-wrapper .select-icon {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: auto !important;
    left: 8px !important;
    opacity: 1;
    color: var(--es2-text-mute);
    flex-shrink: 0;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 13px !important;
    pointer-events: none;
    z-index: 2;
}
.explore-filters-scope .filters-group .select-wrapper svg.select-icon {
    width: 13px !important;
    height: 13px !important;
}
/* Meta filter uses <img>; flex on replaced elements breaks layout — match SVG/emoji icons. */
.explore-filters-scope .filters-group .select-wrapper img.select-icon {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px;
    object-fit: contain;
}
/* Hide old ::before pseudo-element icons — inline .select-icon SVGs are now used uniformly. */
.explore-filters-scope .filters-group .select-wrapper::before {
    display: none !important;
    content: none !important;
}
.explore-filters-scope .filters-group .select-wrapper:has(#categoryFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#monthlyRevenueFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#annualRevenueFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#currencyFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#revenueChangeFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#aovFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#monthlyVisitsFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#countryFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#languageFilter)::before,
.explore-filters-scope .filters-group .select-wrapper:has(#productCountFilter)::before {
    display: none !important;
    content: none !important;
}
/* Creation-date filter: keep only the inline calendar SVG icon. */
.filters-group .select-wrapper.store-created-filter-wrapper::before {
    display: none !important;
    content: none !important;
}
.filters-group .select-wrapper.store-created-filter-wrapper .select-icon {
    opacity: 1 !important;
}

.filter-select.es-filter-control > .es-filter-trigger-chevron {
    display: inline-flex !important;
    width: 9px !important;
    height: 9px !important;
    margin-left: 2px;
    stroke: var(--es2-text-mute) !important;
    flex-shrink: 0 !important;
}

/* Store apps combobox — same shell as other .es-filter-control triggers (chevron + search icon via ::before). */
#storeAppsFilterDropdown .select-wrapper.es-filter-control {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 24px 0 28px !important;
    height: var(--es2-h-control) !important;
    min-height: var(--es2-h-control) !important;
    background-color: var(--es2-filter-surface) !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius) !important;
    box-shadow: none !important;
}
#storeAppsFilterDropdown .select-wrapper.es-filter-control:hover {
    border-color: var(--es2-border-hov) !important;
    background-color: var(--es2-filter-surface-hov) !important;
}
#storeAppsFilterDropdown .select-wrapper.es-filter-control:focus-within {
    border-color: var(--es2-border-strong) !important;
    background-color: var(--es2-filter-surface-focus) !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12) !important;
}
#storeAppsFilterDropdown .select-wrapper.es-filter-control > svg:first-child {
    display: none !important;
}
#storeAppsFilterDropdown .select-wrapper.es-filter-control::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 14px !important;
    height: 14px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M14 14.0003L10.3454 10.3457' stroke='%2398a2b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.88889 11.7778C9.58889 11.7778 11.7778 9.58889 11.7778 6.88889C11.7778 4.18889 9.58889 2 6.88889 2C4.18889 2 2 4.18889 2 6.88889C2 9.58889 4.18889 11.7778 6.88889 11.7778Z' stroke='%2398a2b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    opacity: 1 !important;
    pointer-events: none;
    display: block !important;
}
#storeAppsFilterDropdown .es-filter-control__input,
#storeAppsFilterDropdown .search-input {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: var(--es2-filter-font) !important;
    font-weight: 500 !important;
    color: var(--es2-text-2) !important;
    text-overflow: ellipsis !important;
}
#storeAppsFilterDropdown .es-filter-control__input::placeholder,
#storeAppsFilterDropdown .search-input::placeholder {
    color: var(--es2-text-mute) !important;
    font-weight: 500 !important;
    font-size: var(--es2-filter-font) !important;
    opacity: 1 !important;
}
/* Chevron — same affordance as native .select-wrapper */
#storeAppsFilterDropdown .select-wrapper.es-filter-control::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    width: 4px !important;
    height: 4px !important;
    border-right: 1.4px solid var(--es2-text-3) !important;
    border-bottom: 1.4px solid var(--es2-text-3) !important;
    transform: translateY(-50%) rotate(45deg) !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
}
#storeAppsFilterDropdown .select-wrapper.es-filter-control.open::after {
    transform: translateY(-50%) rotate(-135deg) !important;
}

/* ---------- Active filter chips (now also hosts Export button) ---------- */
.active-filters-bar {
    margin-bottom: 10px !important;
    padding: 8px 10px 8px 12px !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius) !important;
    background: var(--es2-surface) !important;
    min-height: 44px !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    box-shadow: var(--es2-shadow-xs);
}
.active-filters-bar .active-filters-tags {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-items: center !important;
}
.active-filters-bar:has(.no-filters-text:only-child + button[style*="display: none"]),
.active-filters-bar:has(.active-filters-tags > .no-filters-text) {
    background: var(--es2-surface) !important;
}
.filter-tag {
    padding: 4px 9px !important;
    background: var(--es2-surface) !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius-sm) !important;
    font-size: 11px !important;
}
.filter-tag-label { color: var(--es2-text-3) !important; }
.filter-tag-value { color: var(--es2-text) !important; font-weight: 600 !important; }
.clear-filters {
    padding: 4px 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    background: #fff !important;
    border: 1px solid var(--es2-border) !important;
    color: var(--es2-text-2) !important;
    min-height: 26px !important;
    font-weight: 500;
}
.clear-filters:hover {
    color: var(--es2-primary) !important;
    border-color: var(--es2-primary) !important;
    background: var(--es2-primary-soft) !important;
}
.no-filters-text {
    font-style: normal !important;
    color: var(--es2-text-mute) !important;
    font-size: 11.5px !important;
}

/* ---------- Quick-filter / preset cards (currently hidden in template) ---------- */
.filter-presets-section {
    margin: 0 !important;
}
/* Hide the empty wrapper that used to host presets + export button */
.filter-presets-section:has(.filter-presets-container[style*="display: none"]),
.filter-presets-section:has(.filter-presets-title[style*="display: none"]) {
    display: none !important;
}
.filter-preset-card {
    min-height: 28px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background: var(--es2-surface) !important;
    border: 1px solid var(--es2-border) !important;
    box-shadow: none !important;
}
.filter-preset-card:hover {
    background: var(--es2-surface-hov) !important;
    border-color: var(--es2-border-hov) !important;
}
.filter-preset-card.active {
    background: #fff !important;
    border-color: var(--es2-primary) !important;
    box-shadow: 0 0 0 1px var(--es2-primary) !important;
}
.filter-preset-card.active .filter-preset-title {
    color: var(--es2-text) !important;
    font-weight: 600 !important;
}
.filter-preset-title { font-size: 11px !important; }

/* ---------- Export button ---------- */
.export-button-container {
    margin-left: auto !important;
    margin-top: 0 !important;
}
.export-button {
    padding: 0 12px !important;
    height: var(--es2-h-control) !important;
    border-radius: var(--es2-radius) !important;
    background: var(--es2-text) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.export-button:hover {
    background: #1f2937 !important;
    box-shadow: none !important;
}
.export-button-content {
    gap: 6px !important;
    color: #fff !important;
}
.export-icon {
    width: 13px !important;
    height: 13px !important;
    color: #fff !important;
}
.export-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

/* ---------- Table card ---------- */
.table-wrapper {
    margin: 0 !important;
    width: 100% !important;
    background: var(--es2-surface) !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius-lg) !important;
    box-shadow: var(--es2-shadow-xs) !important;
    /* Restore horizontal scroll — the table has min-width:1500px and
       overflows the wrapper. overflow:hidden was clipping it. */
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
}
/* Slim, themed scrollbar to match the redesigned page */
.table-wrapper::-webkit-scrollbar {
    height: 8px !important;
    width: 8px !important;
}
.table-wrapper::-webkit-scrollbar-track {
    background: transparent !important;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--es2-border) !important;
    border-radius: 999px !important;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--es2-border-strong) !important;
}
.table-wrapper { scrollbar-width: thin; scrollbar-color: var(--es2-border) transparent; }
.table-wrapper > .skeleton-loader { padding: 0; }

/* Pagination: keep current rows visible while the next page loads */
.explore-shops-results-wrap.is-page-loading {
    position: relative;
}
.explore-shops-results-wrap.is-page-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 2;
}
.explore-shops-results-wrap.is-page-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid #e2e8f0;
    border-top-color: #225AEA;
    border-radius: 50%;
    animation: exploreShopsPageSpin 0.7s linear infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes exploreShopsPageSpin {
    to { transform: rotate(360deg); }
}
.pagination-wrapper.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* ── Explore Shops table skeleton ── */
@keyframes exploreShopsShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-loader {
    display: block;
    width: 100%;
    min-height: 200px;
}
/* When skeleton is visible, ensure the wrapper expands to show it */
.table-wrapper:has(> .skeleton-loader:not([style*="display: none"])) {
    min-height: 500px;
}
.skeleton-body { width: 100%; }

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    height: 60px;
    box-sizing: border-box;
}
.skeleton-row:last-child { border-bottom: none; }

.skel-cell { flex: 1; display: flex; align-items: center; }
.skel-cell--store  { flex: 2; gap: 10px; }
.skel-cell--products { flex: 1.5; }
.skel-cell--ads { flex: 1.2; }

.skel-line {
    height: 14px;
    border-radius: 4px;
    background: #e2e8f0;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: exploreShopsShimmer 1.2s ease-in-out infinite;
}
.skel-line--name { width: 55%; margin-bottom: 6px; }
.skel-line--sub  { width: 70%; height: 10px; }
.skel-line--md   { width: 60%; }
.skel-line--sm   { width: 45%; }
.skel-line--xs   { width: 30%; }
.skel-line--email { width: 75%; height: 12px; }

.skel-lines { flex: 1; min-width: 0; }

.skel-avatar {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    background: #e2e8f0;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: exploreShopsShimmer 1.2s ease-in-out infinite;
}

.skel-thumbs { display: flex; gap: 6px; }
.skel-thumb {
    width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0;
    background: #e2e8f0;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: exploreShopsShimmer 1.2s ease-in-out infinite;
}
.skel-thumb--ad { width: 52px; height: 34px; border-radius: 4px; }

/* Similar shops + explore: beat legacy first-block trigger/input rules */
.explore-filters-scope #pixelsFilterTrigger,
.explore-filters-scope #shopifyThemeFilterTrigger,
.explore-filters-scope #visitorsCountryFilterTrigger {
    min-height: var(--es2-h-control) !important;
    height: var(--es2-h-control) !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    background-color: var(--es2-filter-surface) !important;
    border: 1px solid var(--es2-border) !important;
    border-radius: var(--es2-radius) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: normal !important;
    position: relative !important;
}
.explore-filters-scope button.filter-select.es-filter-control > .es-filter-trigger-chevron {
    display: inline-flex !important;
    width: 9px !important;
    height: 9px !important;
    margin-left: 2px !important;
    flex-shrink: 0 !important;
}
.explore-filters-scope button.filter-select.es-filter-control > .es-filter-trigger-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
.explore-filters-scope .filter-item--store-created .store-created-filter-wrapper {
    position: relative !important;
    width: 100% !important;
}
.explore-filters-scope .filter-item--store-created #storeCreatedRangeInput.filter-select {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Category hierarchical dropdown */
.category-filter-wrapper {
    position: relative;
}

.category-filter-wrapper.has-value #categoryFilterLabel,
.category-filter-wrapper.has-value .es-filter-trigger-label {
    color: var(--es2-text, #0f172a);
}

.category-filter-wrapper .category-hierarchical-dropdown-panel.dropdown-options {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 4px) !important;
    width: max-content !important;
    min-width: 200px !important;
    max-width: min(720px, 95vw) !important;
    max-height: min(480px, 80vh) !important;
    padding: 0 !important;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.category-filter-wrapper .category-hierarchical-dropdown-panel.dropdown-options.show {
    display: flex !important;
}

.category-filter-wrapper .category-hierarchical-dropdown-panel--4.dropdown-options,
.category-filter-wrapper .category-hierarchical-dropdown-panel[data-custom-dropdown-for="category_v2"].dropdown-options {
    max-width: min(960px, 98vw) !important;
}

.explore-hierarchical-panel-head {
    flex-shrink: 0;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--es2-border, #e7edf5);
    background: var(--es2-surface, #fff);
}

.explore-hierarchical-panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.explore-hierarchical-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--es2-text, #0f172a);
}

.explore-hierarchical-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: var(--es2-radius-sm, 7px);
    background: transparent;
    color: var(--es2-text-3, #94a3b8);
    cursor: pointer;
}

.explore-hierarchical-panel-close:hover {
    background: var(--es2-surface-hov, #f1f5f9);
    color: var(--es2-text, #0f172a);
}

.explore-hierarchical-columns {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(360px, calc(100vh - 180px));
}

.explore-hierarchical-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--es2-border, #e7edf5);
    background: var(--es2-surface, #fff);
}

.explore-hierarchical-column:last-child {
    border-right: none;
}

.explore-hierarchical-column.is-hidden {
    display: none !important;
}

.explore-hierarchical-column[data-level="1"] {
    width: 240px;
    min-width: 200px;
    flex-shrink: 0;
}

.explore-hierarchical-column[data-level="2"],
.explore-hierarchical-column[data-level="3"],
.explore-hierarchical-column[data-level="4"] {
    width: 220px;
    min-width: 180px;
    flex-shrink: 0;
}

.explore-hierarchical-column-label {
    padding: 8px 12px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--es2-text-mute, #94a3b8);
    flex-shrink: 0;
}

.explore-hierarchical-column-search {
    position: relative;
    padding: 0 8px 8px;
    flex-shrink: 0;
}

.explore-hierarchical-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--es2-text-mute, #94a3b8);
    pointer-events: none;
}

.explore-hierarchical-search-input {
    width: 100%;
    height: var(--es2-h-control-sm, 28px);
    padding: 0 10px 0 30px;
    font-size: 12px;
    font-family: inherit;
    color: var(--es2-text, #0f172a);
    background: var(--es2-filter-surface, #f8fafc);
    border: 1px solid var(--es2-border, #e7edf5);
    border-radius: var(--es2-radius-sm, 7px);
    box-sizing: border-box;
    outline: none;
}

.explore-hierarchical-search-input:focus {
    border-color: var(--es2-border-strong, #dde6f1);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.1);
}

.explore-hierarchical-column-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--es2-border, #e7edf5);
    flex-shrink: 0;
    min-height: 36px;
}

.explore-hierarchical-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    margin: -4px 0;
    border: none;
    border-radius: var(--es2-radius-sm, 7px);
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--es2-text-2, #000000);
    cursor: pointer;
    flex-shrink: 0;
}

.explore-hierarchical-back:hover {
    background: var(--es2-surface-hov, #f1f5f9);
    color: var(--es2-text, #0f172a);
}

.explore-hierarchical-column-title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--es2-text, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-hierarchical-column-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    min-height: 80px;
    overscroll-behavior: contain;
}

.explore-hierarchical-column-list::-webkit-scrollbar {
    width: 5px;
}

.explore-hierarchical-column-list::-webkit-scrollbar-thumb {
    background: var(--es2-border, #e7edf5);
    border-radius: 4px;
}

.explore-hierarchical-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--es2-text-2, #475569);
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease;
    border-left: 3px solid transparent;
}

.explore-hierarchical-item:hover,
.explore-hierarchical-item.is-preview {
    background: var(--es2-surface-hov, #f8fafc);
    color: var(--es2-text, #0f172a);
}

.explore-hierarchical-item.is-selected {
    background: rgba(29, 78, 216, 0.08);
    border-left-color: var(--es2-primary, #1d4ed8);
    padding-left: 9px;
    color: var(--es2-primary-text, #1e40af);
    font-weight: 600;
}

.explore-hierarchical-item.is-special {
    color: var(--es2-text-mute, #94a3b8);
    font-weight: 500;
}

.explore-hierarchical-item.is-special:hover {
    color: var(--es2-text, #0f172a);
}

.explore-hierarchical-item-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-hierarchical-item-arrow {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--es2-text-mute, #94a3b8);
}

.explore-hierarchical-item.is-preview .explore-hierarchical-item-arrow,
.explore-hierarchical-item:hover .explore-hierarchical-item-arrow {
    color: var(--es2-primary, #1d4ed8);
}

.explore-hierarchical-empty {
    padding: 20px 12px;
    font-size: 12px;
    color: var(--es2-text-mute, #94a3b8);
    text-align: center;
}

.explore-hierarchical-panel-foot {
    flex-shrink: 0;
    border-top: 1px solid var(--es2-border, #e7edf5);
    background: var(--es2-surface, #fff);
}

.explore-hierarchical-panel-foot .shopify-theme-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
}

@media (max-width: 767px) {
    .category-filter-wrapper .category-hierarchical-dropdown-panel.dropdown-options.show {
        border-radius: 12px 12px 0 0;
        max-height: 85vh;
    }

    .explore-hierarchical-columns {
        flex-direction: column;
        max-height: none;
        flex: 1;
        overflow: hidden;
    }

    .explore-hierarchical-column {
        width: 100% !important;
        min-width: 0 !important;
        border-right: none;
        flex: 1;
        min-height: 0;
    }

    .explore-hierarchical-column:not(.mobile-active) {
        display: none !important;
    }

    .explore-hierarchical-column.mobile-active {
        display: flex !important;
    }

    .explore-hierarchical-column-header .explore-hierarchical-back {
        display: inline-flex;
    }

    .category-filter-wrapper .category-hierarchical-dropdown-panel.dropdown-options {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }
}

/* ── Based-in country filter (flag dropdown) ─────────────────────────────── */
.es-country-filter-wrapper .hidden,
.es-country-flag-trigger .hidden {
    display: none !important;
}

.es-country-filter-wrapper {
    position: relative !important;
}

.es-country-filter-native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.es-country-filter-wrapper::after {
    display: none !important;
    content: none !important;
}

.es-country-flag-trigger {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 26px 0 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.es-country-flag-trigger > svg:last-of-type {
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.es-country-flag-trigger-icon,
.es-country-flag-trigger-flag {
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
}

.es-country-flag-trigger-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.es-country-flag-dropdown {
    position: fixed;
    z-index: 10001;
    background: #fff;
    border: 1px solid var(--es-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(320px, 70vh);
}

.es-country-flag-dropdown.hidden {
    display: none !important;
}

.es-country-flag-search-wrap {
    flex-shrink: 0;
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.es-country-flag-search {
    width: 100%;
    box-sizing: border-box;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--es-border, #e2e8f0);
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
}

.es-country-flag-search:focus {
    border-color: var(--es-border-focus, #225aea);
    box-shadow: 0 0 0 2px rgba(34, 90, 234, 0.12);
}

.es-country-flag-list {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px;
}

.es-country-flag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    color: #1e293b;
    text-align: left;
}

.es-country-flag-option:hover,
.es-country-flag-option.is-selected {
    background: #f1f5f9;
}

.es-country-flag-option-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.es-country-flag-option-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Laptop layout: filters in ≤2 rows; first 4 table cols full width, scroll for Avg. Price & Email ── */
@media (max-width: 1536px) {
    .new-page-wrapper .filters-group {
        display: grid !important;
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }

    .new-page-wrapper .filters-group > .filter-item,
    .new-page-wrapper .filters-group > #storeAppsFilterDropdown.filter-item,
    .new-page-wrapper .filters-group > .filter-item.filter-item--store-created,
    .new-page-wrapper .filters-group > .filter-item.filter-item--shopify-theme,
    .new-page-wrapper .filters-group > .filter-item.filter-item--explore-pixels,
    .new-page-wrapper .filters-group > .filter-item.filter-item--visitors-country,
    .new-page-wrapper .filters-group > .filter-item.filter-item--category {
        flex: unset !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    .new-page-wrapper .shops-table {
        min-width: 1080px !important;
        width: auto !important;
        table-layout: auto !important;
    }

    .new-page-wrapper .shops-table th:first-child,
    .new-page-wrapper .shops-table td:first-child {
        min-width: 240px !important;
        width: 240px !important;
        max-width: 240px !important;
        overflow: hidden !important;
    }

    .new-page-wrapper .shops-table th:nth-child(2),
    .new-page-wrapper .shops-table td:nth-child(2) {
        min-width: 240px !important;
        width: 240px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(3),
    .new-page-wrapper .shops-table td:nth-child(3) {
        min-width: 130px !important;
        width: 130px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(4),
    .new-page-wrapper .shops-table td:nth-child(4) {
        min-width: 150px !important;
        width: 150px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(5),
    .new-page-wrapper .shops-table td:nth-child(5) {
        min-width: 118px !important;
        width: 118px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(6),
    .new-page-wrapper .shops-table td:nth-child(6) {
        min-width: 72px !important;
        width: 72px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(7),
    .new-page-wrapper .shops-table td:nth-child(7) {
        min-width: 164px !important;
        width: 164px !important;
    }

    .new-page-wrapper .shops-table th.explore-wlads-col-header,
    .new-page-wrapper .shops-table td.explore-wlads-td {
        width: 164px !important;
        min-width: 164px !important;
        max-width: 168px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(8),
    .new-page-wrapper .shops-table td:nth-child(8) {
        min-width: 72px !important;
        width: 72px !important;
    }

    .new-page-wrapper .shops-table thead th,
    .new-page-wrapper .shops-table tbody td {
        padding: 8px 10px !important;
    }

    .new-page-wrapper .shops-table th:nth-child(6),
    .new-page-wrapper .shops-table td:nth-child(6),
    .new-page-wrapper .shops-table th:nth-child(8),
    .new-page-wrapper .shops-table td:nth-child(8) {
        padding: 8px 6px !important;
    }

    .new-page-wrapper .shops-table thead th {
        font-size: 10px !important;
    }
}

@media (max-width: 1280px) {
    .new-page-wrapper .filters-group {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
}
