.mt-order-builder {
  border: 1px solid #ddd;
  padding: 24px;
  margin: 20px 0;
  background: #fff;
}

.mt-order-builder h3 {
  margin-top: 0;
}

.mt-order-intro {
  margin-bottom: 22px;
}

.mt-order-item {
  border: 1px solid #ddd;
  padding: 18px;
  margin-bottom: 18px;
  background: #fafafa;
}

.mt-order-item-error {
  border-color: #c0392b;
  background: #fff8f7;
}

.mt-order-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.mt-order-item-title {
  font-size: 16px;
}

.mt-remove-item {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.mt-order-item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.mt-order-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.mt-order-field select,
.mt-order-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}

/* Layout standard: riga 1 = brand/modello/compatibilità/versione; riga 2 = SKU/quantità/note */
.mt-sku-wrap {
  grid-column: span 1;
}

.mt-qty-wrap {
  grid-column: span 1;
}

.mt-notes-wrap {
  grid-column: span 2;
}

/* Layout semplificato, usato per Monza Tech: brand/modello/SKU nella prima riga */
.mt-simple-layout .mt-sku-wrap {
  grid-column: span 2;
}

.mt-simple-layout .mt-notes-wrap {
  grid-column: span 3;
}

.mt-sku {
  font-weight: 700;
  background: #f1f1f1;
  cursor: not-allowed;
}

.mt-sku-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 12px;
  color: #666;
}

.mt-hidden {
  display: none !important;
}

.mt-add-item {
  margin: 8px 0 22px;
}

.mt-add-item-disabled,
.mt-add-item:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.mt-order-error {
  color: #c0392b;
  font-weight: 600;
  margin: 10px 0;
}

.mt-order-summary-wrap {
  margin-top: 12px;
}

.mt-order-summary {
  white-space: pre-wrap;
  padding: 14px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.mt-order-form h3, .mt-order-form h4 {font-size: 24px; line-height: 34px;}

/* Request type radio inline */
.mt-request-type .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.mt-request-type .wpcf7-list-item {
  margin: 0;
}

.mt-request-type .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mt-request-type input[type="radio"] {
  margin: 0;
}

.mt-request-type {
  margin-bottom: 24px;
}

.mt-request-type .mt-field-label {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .mt-order-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-sku-wrap,
  .mt-qty-wrap,
  .mt-notes-wrap,
  .mt-simple-layout .mt-sku-wrap,
  .mt-simple-layout .mt-notes-wrap {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .mt-order-builder {
    padding: 16px;
  }

  .mt-order-item-grid {
    grid-template-columns: 1fr;
  }

  .mt-sku-wrap,
  .mt-qty-wrap,
  .mt-notes-wrap,
  .mt-simple-layout .mt-sku-wrap,
  .mt-simple-layout .mt-notes-wrap {
    grid-column: span 1;
  }
}
