.cs-selector {
  --cs-text: #1b2230;
  --cs-muted: #5a6472;
  --cs-line: #e2e5ea;
  --cs-chip-line: #d5d9e0;
  --cs-selected: #123e73;
  --cs-cta: #f08a24;
  --cs-bg: #fff;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cs-bg);
  border: 1px solid var(--cs-line);
  border-radius: 12px;
  padding: 32px;
  color: var(--cs-text);
  font-family: inherit;
  line-height: 1.4;
  margin:30px 15px;
}

.cs-selector *,
.cs-selector *::before,
.cs-selector *::after {
  box-sizing: border-box;
}

.cs-layout {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -14px;
}

.cs-col {
  padding: 0 14px;
  min-width: 0;
}

.cs-col-form {
  flex: 1 1 260px;
  max-width: 360px;
}

.cs-col-results {
  flex: 2 1 320px;
}

.cs-title {
  margin: 0 0 8px;
  color: var(--cs-text);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.cs-subtitle {
  margin: 0 0 24px;
  color: var(--cs-muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}

.cs-step-label {
  margin: 0 0 8px;
  color: var(--cs-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cs-step + .cs-step {
  margin-top: 20px;
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
}

.cs-selector button {
  font-family: inherit;
  cursor: pointer;
}

.cs-chip {
  margin: 4px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--cs-chip-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cs-text);
  font-size: 15px;
  line-height: 1.2;
}

.cs-chip[aria-pressed="true"] {
  border-color: var(--cs-selected);
  background: var(--cs-selected);
  color: #fff;
}

.cs-selector button:focus,
.cs-selector a:focus {
  outline: 2px solid var(--cs-selected);
  outline-offset: 2px;
}

.cs-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 12px;
}

.cs-results-title {
  margin: 0;
  color: var(--cs-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}

.cs-results-count {
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--cs-muted);
  font-size: 15px;
}

.cs-empty,
.cs-message {
  margin: 0;
  color: var(--cs-muted);
  font-size: 16px;
}

.cs-product {
  display: flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 16px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: #fff;
}

.cs-product:last-child {
  margin-bottom: 0;
}

.cs-thumb-link {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}

.cs-thumb {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: contain;
  background: #f7f8fa;
}

.cs-product-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
}

.cs-name {
  display: inline-block;
  color: var(--cs-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cs-selector a.cs-name:hover,
.cs-selector a.cs-name:focus {
  color: var(--cs-selected);
  text-decoration: underline;
}

.cs-product-sub,
.cs-part {
  margin: 4px 0 0;
  color: var(--cs-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cs-add {
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--cs-cta);
  color: var(--cs-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.cs-retry {
  min-height: 44px;
  margin-left: 8px;
  padding: 8px 14px;
  border: 1px solid var(--cs-chip-line);
  border-radius: 6px;
  background: #fff;
  color: var(--cs-text);
  font-weight: 700;
}

.cs-loading-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cs-skeleton {
  height: 76px;
  margin: 0 0 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f5f8 25%, #e8ebf0 37%, #f3f5f8 63%);
  background-size: 400% 100%;
  animation: cs-shimmer 1.2s ease infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .cs-skeleton {
    animation: none;
  }
}

@media (max-width: 768px) {
  .cs-selector {
    padding: 16px;
  }

  .cs-layout {
    display: block;
    margin: 0;
  }

  .cs-col {
    padding: 0;
    max-width: none;
  }

  .cs-col-form {
    margin-bottom: 24px;
  }

  .cs-results-count {
    margin-left: 0;
  }

  .cs-results-head {
    display: block;
  }

  .cs-results-count {
    display: block;
    margin-top: 4px;
  }
}
