/* Tracking Code Scanner Styles */
.tcs-wrap {
  --bg: #fbf8f7;
  --text: #000035;
  --accent: #ff6a6a;
  --accent2: #11bab5;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tcs-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.tcs-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tcs-label {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.85;
}

.tcs-input {
  width: 100%;
  border: 2px solid rgba(0,0,53,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tcs-input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 4px rgba(17,186,181,0.15);
}

.tcs-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 14px rgba(255,106,106,0.35);
}

.tcs-btn:hover { filter: brightness(0.98); }
.tcs-btn:active { transform: translateY(1px); }

.tcs-results {
  display: grid;
  gap: 12px;
}

.tcs-card {
  border: 1px solid rgba(0,0,53,0.12);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.tcs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tcs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(0,0,53,0.06);
}

.tcs-badge.ok { background: rgba(17,186,181,0.15); }
.tcs-badge.ok .dot { background: var(--accent2); }
.tcs-badge.no { background: rgba(255,106,106,0.15); }
.tcs-badge.no .dot { background: var(--accent); }

.tcs-ids {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  margin-top: 10px;
  word-break: break-all;
}

.tcs-ids code {
  background: #f6f3f2;
  padding: 4px 6px;
  border-radius: 8px;
  display: inline-block;
  margin-right: 6px;
  margin-top: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tcs-note {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .tcs-form {
    grid-template-columns: 1fr;
  }
  .tcs-btn { width: 100%; }
}


.tcs-help {
  font-size: 13px;
  opacity: 0.85;
  margin-top: -2px;
}



/* v1.1.1 responsive polish */
.tcs-wrap {
  /* allow container to scale nicely within page layouts */
  width: 100%;
}

.tcs-form {
  /* keep the button aligned with the field on larger screens */
  grid-template-columns: 1fr max-content;
  align-items: end;
}

/* Equal height controls via CSS variable */
.tcs-wrap {
  --control-h: 52px;
}

.tcs-input {
  min-height: var(--control-h);
  box-sizing: border-box;
}

.tcs-btn {
  height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  white-space: nowrap;
}

/* Increase spacing on very large screens, keep balance */
@media (min-width: 1024px) {
  .tcs-wrap { padding: 28px; }
  .tcs-form { gap: 18px; }
}

/* Mobile: stack neatly with full-width button */
@media (max-width: 640px) {
  .tcs-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .tcs-btn { width: 100%; }
}


/* v1.1.2 layout: input + button on the same row */
.tcs-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tcs-inline {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 16px;
  align-items: center;
}

.tcs-wrap { --control-h: 52px; }

.tcs-input {
  min-height: var(--control-h);
}

.tcs-btn {
  height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tcs-inline {
    grid-template-columns: 1fr;
  }
  .tcs-btn { width: 100%; }
}
