.spsel-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}

.spsel-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-sizing: border-box;
}

.spsel-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.spsel-row label {
  font-size: 13px;
  opacity: 0.85;
}

.spsel-row input,
.spsel-row select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.spsel-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  font-weight: 600;
}

.spsel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spsel-msg {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.9;
}

.spsel-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.spsel-results-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}

.spsel-results {
  display: grid;
  gap: 12px;
}

.spsel-group {
  margin-bottom: 14px;
}

.spsel-group:last-child {
  margin-bottom: 0;
}

.spsel-group-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: #0f172a;
}

.spsel-group-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spsel-result {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: all 0.18s ease;
}

.spsel-result:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.spsel-result.is-active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.spsel-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.spsel-model {
  font-weight: 700;
}

.spsel-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.spsel-meta {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
  line-height: 1.55;
}

.spsel-meta a {
  text-decoration: underline;
}

.spsel-actions {
  margin-top: 10px;
}

.spsel-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.spsel-detail-btn:hover {
  background: #dbeafe;
}

.spsel-inline-link {
  color: #1d4ed8;
  font-weight: 600;
}

.spsel-chart-card {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 18px;
}

.spsel-chart-wrap {
  width: 100%;
}

.spsel-chart-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: #0f172a;
}

.spsel-chart-box {
  position: relative;
  width: 100%;
  min-height: 480px;
}

#spsel-chart {
  width: 100% !important;
  height: 480px !important;
  display: block;
}

.spsel-result--with-image {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.spsel-thumb {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spsel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spsel-thumb--placeholder {
  color: #64748b;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.spsel-result-body {
  min-width: 0;
}

@media (max-width: 1024px) {
  .spsel-wrap {
    grid-template-columns: 1fr;
  }

  .spsel-chart-card {
    grid-column: auto;
    margin-top: 0;
  }

  .spsel-chart-box {
    min-height: 360px;
  }

  #spsel-chart {
    height: 360px !important;
  }
}

@media (max-width: 767px) {
  .spsel-wrap {
    gap: 14px;
  }

  .spsel-card,
  .spsel-chart-card {
    padding: 14px;
    border-radius: 12px;
  }

  .spsel-chart-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .spsel-chart-box {
    min-height: 280px;
  }

  #spsel-chart {
    height: 280px !important;
  }

  .spsel-result:hover {
    transform: none;
  }

  .spsel-result--with-image {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .spsel-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }
}

.spsel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.spsel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.spsel-badge--recommended {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.spsel-badge--inv {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.spsel-badge--eco {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.spsel-badge--single,
.spsel-badge--twin {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

@media (max-width: 767px) {
  .spsel-badges {
    gap: 6px;
    margin: 6px 0 8px;
  }

  .spsel-badge {
    font-size: 11px;
    min-height: 26px;
    padding: 5px 8px;
  }
}