/* Shared design tokens live in assets/css/theme-tokens.css */

.widget_vincario_decode {
  padding: 24px 20px;
  background: var(--vincario-color-subtle);
  border-radius: 16px;
  box-shadow: var(--vincario-shadow-card);
  font-family: var(--vincario-font-primary);
}

.widget_vincario_decode .widget-title {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.decode-component {
  width: 100%;
  position: relative;
  font-family: var(--vincario-font-ui);
}

.decode-component .decode-fields {
  background-color: var(--vincario-color-surface);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--vincario-color-success);
  border-radius: 10px;
  padding: 6px;
}

.decode-component .decode-vin-form-input {
  border: 0;
  border-radius: 8px;
  height: 52px;
  width: 100%;
  padding: 0 16px;
  text-transform: uppercase;
  color: var(--vincario-color-body-strong);
  font-weight: 700;
  letter-spacing: 0.08rem;
  flex: 1;
}

.decode-component .decode-vin-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(75, 195, 107, 0.25);
}

.decode-component .decode-vin-form-input::placeholder {
  color: var(--vincario-color-placeholder);
  font-weight: 500;
  text-transform: none;
}

.decode-component .missing-characters {
  color: var(--vincario-color-success);
  font-weight: 500;
  font-size: 0.9rem;
  min-width: 2.4rem;
  text-align: center;
}

.decode-component .decode-vin-camera-button {
  height: 44px;
  width: 44px;
  padding: 0;
  background-color: var(--vincario-color-success);
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decode-component .decode-vin-camera-button img {
  filter: brightness(0) invert(1);
}

.decode-component .decode-vin-camera-button:hover {
  background-color: var(--vincario-color-success-strong);
}

.decode-component .main-button {
  height: 44px;
  padding: 0 18px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.03rem;
}

.decode-component .main-button:disabled {
  background-color: var(--vincario-color-disabled);
  cursor: not-allowed;
  border: none;
}

.decode-component .decode-widget-help {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--vincario-color-body-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 576px) {
  .decode-component .decode-fields {
    flex-wrap: wrap;
  }

  .decode-component .decode-vin-form-input {
    flex-basis: 100%;
  }

  .decode-component .main-button {
    width: 100%;
  }
}
