.tracking-widget {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tracking-widget__heading {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.tracking-widget__form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tracking-widget__input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.tracking-widget__input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.tracking-widget__input::placeholder {
  color: #6c757d;
}

.tracking-widget__button {
  padding: 12px 24px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tracking-widget__button:hover:not(:disabled) {
  filter: brightness(0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tracking-widget__button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tracking-widget__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tracking-widget__results {
  min-height: 20px;
}

.tracking-widget__loading {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-style: italic;
}

.tracking-widget__success {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tracking-widget__success h3 {
  margin: 0 0 15px 0;
  color: #28a745;
  font-size: 1.2rem;
  font-weight: 600;
}

.tracking-widget__success p {
  margin: 8px 0;
  line-height: 1.5;
}

.tracking-widget__success strong {
  font-weight: 600;
}

.tracking-widget__link {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 2px solid #1a73e8;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.tracking-widget__link:hover {
  background-color: #1a73e8;
  color: white;
  text-decoration: none;
}

.tracking-widget__error {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 16px;
  color: #c53030;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive design */
@media (max-width: 480px) {
  .tracking-widget {
    padding: 15px;
  }
  
  .tracking-widget__form {
    flex-direction: column;
  }
  
  .tracking-widget__input {
    min-width: auto;
    width: 100%;
  }
  
  .tracking-widget__button {
    width: 100%;
  }
  
  .tracking-widget__heading {
    font-size: 1.3rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tracking-widget__input {
    border-width: 3px;
  }
  
  .tracking-widget__button {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .tracking-widget__input,
  .tracking-widget__button,
  .tracking-widget__link {
    transition: none;
  }
  
  .tracking-widget__button:hover:not(:disabled) {
    transform: none;
  }
}