.cnsc-search-widget,
.cnsc-search-widget * {
  box-sizing: border-box;
}

.cnsc-search-widget {
  width: 100%;
  font-family: Arial, sans-serif;
}

.cnsc-shell {
  width: 100%;
  padding: 35px 16px;
  background: #111111;
  border-radius: 22px;
}

.cnsc-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.24);
}

.cnsc-heading {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: #111111;
}

.cnsc-subheading {
  margin: 0 0 20px;
  color: #555555;
  font-size: 15px;
  line-height: 1.5;
}

.cnsc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cnsc-tab {
  border: 1px solid #dddddd;
  background: #f7f7f7;
  color: #111111;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.cnsc-tab.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.cnsc-input-row {
  display: flex;
  gap: 10px;
  background: #f3f3f3;
  border: 2px solid #111111;
  border-radius: 14px;
  padding: 8px;
}

.cnsc-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 14px 12px !important;
  font-size: 16px;
  outline: none !important;
  color: #111111;
  min-width: 120px;
  box-shadow: none !important;
}

.cnsc-search-button,
.cnsc-image-button {
  border: none;
  background: #f5c400;
  color: #111111;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.cnsc-search-button:hover,
.cnsc-image-button:hover {
  filter: brightness(0.95);
}

.cnsc-image-row {
  display: none;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  background: #f3f3f3;
  border: 2px dashed #111111;
  border-radius: 14px;
  padding: 22px;
}

.cnsc-image-row span {
  font-weight: 700;
  color: #333333;
}

.cnsc-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.cnsc-suggestion {
  border: none;
  background: #111111;
  color: #ffffff;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
}

.cnsc-suggestion:hover {
  filter: brightness(1.25);
}

.cnsc-note {
  display: block;
  margin-top: 18px;
  color: #666666;
  font-size: 13px;
  line-height: 1.5;
}

.cnsc-mode-image .cnsc-input-row,
.cnsc-mode-image .cnsc-suggestions {
  display: none;
}

.cnsc-mode-image .cnsc-image-row {
  display: flex;
}

.cnsc-mode-keyword .cnsc-input-row {
  display: flex;
}

.cnsc-mode-keyword .cnsc-image-row {
  display: none;
}

@media (max-width: 600px) {
  .cnsc-card {
    padding: 20px;
  }

  .cnsc-heading {
    font-size: 24px;
  }

  .cnsc-input-row {
    flex-direction: column;
  }

  .cnsc-search-button,
  .cnsc-image-button {
    width: 100%;
  }
}
