/* Wrapper: Bühne oben, Einstellungen darunter */
.mrc-upload-wrap {
  /* max-width: 1000px; */
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Cards wie beim normalen Konfigurator */
.mrc-upload-preview,
.mrc-upload-controls {
  background: #1E1E1E;
  border: 1px solid #0B0B0F;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  padding: 12px;
}

/* Standard-Feld-Layout (einzelne Blöcke) */
.mrc-upload-field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Zeile für Hersteller / Felge / Farbe */
.mrc-upload-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Spalten innerhalb der Zeile */
.mrc-upload-col {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Label & Hilfstext – wie .field label */
.mrc-upload-field label,
.mrc-upload-col label {
  font-weight: 600;
  font-size: 13px;
  color: #e5e7eb;
}

.mrc-upload-field small,
.mrc-upload-col small {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Inputs/Selects – dunkel wie im normalen Konfigurator */
.mrc-upload-field select,
.mrc-upload-field input[type="file"],
.mrc-upload-col select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #0B0B0F;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.2;
}

/* Gruppe für die beiden Größen-Regler */
.mrc-upload-field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mrc-upload-field-group .mrc-upload-field {
  flex: 1 1 180px;
}

/* Buttons unten – an .mrc-actions angelehnt */
.mrc-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.mrc-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #E6A223;
  background: #0B0B0F;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none !important;

  /* smooth transitions */
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

/* Hover: gold-gelb + Glow + leichtes Anheben */
.mrc-upload-btn:hover {
  background: linear-gradient(135deg, #E6A223, #FFD76A);
  border-color: #FFD76A;
  color: #111;
  box-shadow: 0 0 12px rgba(230, 162, 35, 0.9);
  transform: translateY(-1px) scale(1.02);
}

/* Active: leicht „reindrücken“ */
.mrc-upload-btn:active {
  background: #D89212;
  border-color: #D89212;
  box-shadow: 0 0 6px rgba(230, 162, 35, 0.7);
  transform: translateY(0) scale(0.99);
}


.mrc-upload-btn[disabled],
.mrc-upload-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* "Zur Felge" – wie .mrc-summary-btn, nur gleiche Basis wie oben */
.mrc-upload-btn-link {
  background: #0B0B0F;
  color: #fff;
  border: 1px solid #E6A223;
}

/* Bühne – dunkel, passend zum Theme */
.mrc-upload-stage {
  position: relative;
  width: 100%;
  padding-top: 55%;
  background: #0B0B0F;
  border-radius: 8px;
  overflow: hidden;
}

.mrc-upload-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Räder */
.mrc-upload-wheel {
  position: absolute;
  width: 18%;
  height: auto;
  top: 60%;
  left: 30%;
  opacity: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.mrc-upload-wheel-rear {
  left: 70%;
}

/* Range + Pfeile + Zahl */
.mrc-upload-size-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Plus/Minus: schwarz und sichtbar */
.mrc-upload-size-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #000000;
  background: #000000;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease;
}

.mrc-upload-size-btn:hover {
  background: #ffffff;
  border-color: #111111;
}

.mrc-upload-size-btn:active {
  background: #222222;
  border-color: #222222;
  transform: translateY(1px);
}

.mrc-upload-size-control input[type="range"] {
  flex: 1 1 auto;
  margin: 0;
}

.mrc-upload-size-value {
  min-width: 3rem;
  text-align: right;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: #e5e7eb;
}

/* Responsiv für schmale Bildschirme */
@media (max-width: 768px) {
  .mrc-upload-row {
    flex-direction: column;
  }
  .mrc-upload-col {
    flex: 1 1 100%;
  }
}
