/* Trade-In Upload Preview */
#trade-in-form .ti-upload-preview,
#sell-your-bike-form .ti-upload-preview {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 1rem;
}

#trade-in-form .ti-upload-preview[hidden],
#sell-your-bike-form .ti-upload-preview[hidden] {
  display: none !important;
}

#trade-in-form .ti-upload-heading,
#sell-your-bike-form .ti-upload-heading {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px;
}

#trade-in-form .ti-upload-item,
#sell-your-bike-form .ti-upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  min-width: 0;
}

#trade-in-form .ti-upload-thumb,
#sell-your-bike-form .ti-upload-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 5px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #555;
  font-size: 11px;
  font-weight: 600;
}

#trade-in-form .ti-upload-thumb img,
#sell-your-bike-form .ti-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#trade-in-form .ti-upload-info,
#sell-your-bike-form .ti-upload-info {
  flex: 1;
  min-width: 0;
}

#trade-in-form .ti-upload-name,
#sell-your-bike-form .ti-upload-name {
  display: block;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#trade-in-form .ti-upload-meta,
#sell-your-bike-form .ti-upload-meta {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 3px;
}

#trade-in-form .ti-upload-warning,
#sell-your-bike-form .ti-upload-warning {
  display: block;
  color: #d00000;
  font-size: 12px;
  margin-top: 4px;
}

#trade-in-form button.ti-upload-remove,
#sell-your-bike-form button.ti-upload-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #d00000;
  border: 1px solid #d00000;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  flex-shrink: 0;
}

#trade-in-form button.ti-upload-remove:hover,
#sell-your-bike-form button.ti-upload-remove:hover {
  background: #d00000;
  color: white;
}

@media (max-width: 480px) {
  #trade-in-form .ti-upload-thumb,
  #sell-your-bike-form .ti-upload-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  #trade-in-form .ti-upload-item,
  #sell-your-bike-form .ti-upload-item {
    gap: 8px;
    padding: 8px;
  }

  #trade-in-form button.ti-upload-remove,
  #sell-your-bike-form button.ti-upload-remove {
    padding: 6px 8px;
  }
}
/* Trade-In Upload Preview */

/* Appointment Date */
#trade-in-form .elementor-field-type-date input,
#sell-your-bike-form .elementor-field-type-date input {
  text-align: center;
}

/* Phones get a native date input instead, which draws its value in a separate
   box: stretch that box across the field so the value can be centred. */
#trade-in-form .elementor-field-type-date input[type="date"]::-webkit-date-and-time-value,
#sell-your-bike-form .elementor-field-type-date input[type="date"]::-webkit-date-and-time-value {
  flex: 1 1 100%;
  width: 100%;
  min-height: 1.2em;
  margin: 0;
  text-align: center;
}

/* iOS Safari (the only browser with -webkit-touch-callout) lays the field's
   "Appointment Date *" hint (::before) beside that box, each taking half the
   field, so the hint and the picked date both end up off-centre. Lay the hint
   over the field instead, so the date box gets the full width. */
@supports (-webkit-touch-callout: none) {
  #trade-in-form .elementor-field-type-date input[type="date"],
  #sell-your-bike-form .elementor-field-type-date input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  #trade-in-form .elementor-field-type-date input[type="date"]::before,
  #sell-your-bike-form .elementor-field-type-date input[type="date"]::before {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
    text-align: center;
  }
}
/* Appointment Date */
