/* Контейнер всего виджета */
.usc-root {
  max-width: 520px;
  margin: 0 0 24px 0;
}

/* Карточка */
.usc-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 14px 16px 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  font-size: 13px;
  line-height: 1.4;
}

/* Canvas блоки */
.usc-canvas-wrap {
  margin-bottom: 12px;
}

.usc-canvas-block + .usc-canvas-block {
  margin-top: 8px;
}

.usc-canvas-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

#usc-canvas-front,
#usc-canvas-back {
  width: 100%;
  height: auto;
  display: block;
  background: #f8f8f8;
  border-radius: 4px;
}

/* Общие поля */
.usc-controls {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.usc-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.usc-field span {
  font-size: 12px;
  color: #666;
}

/* Строка с выбором количества цветов и пипетками */
.usc-controls-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

/* селект "Fringe colors" */
.usc-field-inline select {
  max-width: 140px;
}

/* Цвета бахромы */
.usc-fringe-pickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.usc-fringe-pickers input[type="color"] {
  width: 100%;
  height: 28px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

/* Файлы */
.usc-file-inputs {
  margin-top: 6px;
}

.usc-file-inputs .usc-field + .usc-field {
  margin-top: 8px; /* отступ между "Выберите файл" */
}

.usc-file-inputs input[type="file"] {
  font-size: 12px;
}

.usc-status {
  font-size: 11px;
  color: #999;
}

/* Мобилки */
@media (max-width: 600px) {
  .usc-root {
    max-width: 100%;
  }

  .usc-card {
    padding: 12px;
  }

  .usc-fringe-pickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
