/* ==========================================================================
   JANEBI COMPATIBILITY SELECTOR WIDGET
   Top-of-catalog cascade brand & model filter for zero-friction matching
   ========================================================================== */

.compatibility-section {
  margin-bottom: 28px;
}

.compatibility-card {
  background: var(--bg-surface);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-squircle, 22px);
  padding: 20px 26px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

[data-theme="dark"] .compatibility-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.compatibility-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.compatibility-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.compatibility-selects-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compatibility-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 16px 10px 38px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle, #e2e8f0);
  background-color: var(--bg-surface-muted, #f8fafc);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  color: var(--text-primary, #0f172a);
  font-family: inherit;
  font-size: 0.84375rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 195px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.compatibility-select:hover {
  background-color: var(--bg-surface, #ffffff);
  border-color: #cbd5e1;
}

.compatibility-select:focus {
  border-color: #2563eb;
  background-color: var(--bg-surface, #ffffff);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .compatibility-select {
  background-color: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] .compatibility-select:hover {
  background-color: #27272a;
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .compatibility-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.compatibility-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-crimson);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.84375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compatibility-filter-btn:hover {
  background: var(--accent-crimson-hover);
}

.compatibility-chip-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--snapppay-badge-bg);
  color: var(--snapppay-blue);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 112, 243, 0.2);
}

@media (max-width: 768px) {
  .compatibility-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  .compatibility-selects-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .compatibility-select {
    min-width: 0;
    width: 100%;
  }
  .compatibility-filter-btn {
    width: 100%;
    justify-content: center;
  }
}
