/* Order lookup page */
.order-search-main {
  min-height: calc(100vh - 220px);
  padding: 42px 0 72px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(225deg, rgba(34, 199, 216, 0.07) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #fbf9ff 0%, #f5f7fb 100%);
}

.order-container {
  width: min(var(--tz-page-width), calc(100% - 48px));
  margin: 0 auto;
}

.order-lookup-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  min-height: 0;
  padding: 38px;
  border: 1px solid rgba(133, 116, 161, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.86)),
    #fff;
  box-shadow: 0 26px 70px rgba(50, 43, 82, 0.12);
  overflow: hidden;
}

.order-lookup-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--tz-primary), #3b82f6, var(--tz-accent));
}

.order-lookup-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 199, 216, 0.08));
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.order-query-card {
  position: relative;
  z-index: 1;
}

.order-query-card {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.78), rgba(37, 99, 235, 0.7) 58%, rgba(34, 199, 216, 0.62));
  box-shadow: 0 24px 52px rgba(67, 56, 202, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.query-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.query-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.query-tab:hover,
.query-tab.active {
  transform: translateY(-1px);
  background: #fff;
  color: var(--tz-primary);
  box-shadow: 0 14px 28px rgba(26, 34, 67, 0.14);
}

.tab-label-short {
  display: none;
}

.query-form-container {
  width: 100%;
  min-width: 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.95)),
    #fff;
  box-shadow: 0 20px 42px rgba(20, 30, 55, 0.16);
}

.query-form {
  display: none;
  min-width: 0;
  padding: 26px;
}

.query-form.active {
  display: block;
}

.form-group {
  margin: 0;
}

.form-group label,
.password-row label {
  display: block;
  margin: 0 0 10px;
  color: #253047;
  font-size: 14px;
  font-weight: 850;
}

.query-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.input-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #f8fafd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-shell:focus-within {
  border-color: rgba(var(--tz-primary-rgb), 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--tz-primary-rgb), 0.11);
}

.input-shell i {
  width: 50px;
  color: #7f8ca3;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  height: 56px;
  min-width: 0;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 720;
}

.form-input::placeholder {
  color: #9aa8ba;
  font-weight: 600;
}

.query-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 142px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tz-primary) 0%, #2563eb 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(var(--tz-primary-rgb), 0.27);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.query-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(var(--tz-primary-rgb), 0.32);
  filter: saturate(1.04);
}

.query-button:active {
  transform: translateY(0);
}

.password-row {
  margin-top: 16px;
}

.help-text {
  margin: 12px 0 0;
  color: #62708a;
  font-size: 13px;
  line-height: 1.7;
}

.browser-query-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.browser-query-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: rgba(var(--tz-primary-rgb), 0.1);
  color: var(--tz-primary);
  font-size: 22px;
}

.browser-query-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #182338;
  font-size: 16px;
  font-weight: 850;
}

.browser-query-copy p {
  margin: 0;
  color: #62708a;
  font-size: 13px;
  line-height: 1.7;
}

.lookup-helper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.lookup-helper-card {
  --helper-color: var(--tz-primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 104px;
  padding: 20px;
  border: 1px solid rgba(133, 116, 161, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(34, 42, 75, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lookup-helper-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--helper-color), rgba(34, 199, 216, 0.55));
}

.lookup-helper-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tz-primary-rgb), 0.22);
  box-shadow: var(--tz-shadow-hover);
}

.helper-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

.helper-icon.is-blue {
  --helper-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.helper-icon.is-green {
  --helper-color: #10b981;
  background: #ecfdf5;
  color: #059669;
}

.helper-icon.is-violet {
  --helper-color: #7c3aed;
  background: #f1edff;
  color: var(--tz-primary);
}

.lookup-helper-card:has(.helper-icon.is-blue) {
  --helper-color: #2563eb;
}

.lookup-helper-card:has(.helper-icon.is-green) {
  --helper-color: #10b981;
}

.lookup-helper-card:has(.helper-icon.is-violet) {
  --helper-color: #7c3aed;
}

.lookup-helper-card strong {
  display: block;
  margin: 0 0 4px;
  color: #182338;
  font-size: 16px;
  font-weight: 880;
}

.lookup-helper-card p {
  margin: 0;
  color: #6b778c;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .order-lookup-hero {
    grid-template-columns: 1fr;
  }

  .order-lookup-hero::after {
    width: 100%;
    opacity: 0.45;
    clip-path: polygon(0 58%, 100% 34%, 100% 100%, 0 100%);
  }

  .lookup-helper-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .order-search-main {
    padding: 18px 0 92px;
  }

  .order-container {
    width: calc(100% - 24px);
  }

  .order-lookup-hero {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .order-query-card {
    padding: 10px;
    border-radius: 20px;
  }

  .query-tab {
    min-width: 0;
    min-height: 42px;
    font-size: 13px;
    padding: 0 8px;
    gap: 6px;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  .query-form {
    padding: 18px;
  }

  .query-inline {
    grid-template-columns: 1fr;
  }

  .query-button {
    width: 100%;
  }

  .browser-query-panel {
    grid-template-columns: 1fr;
  }

  .browser-query-icon {
    width: 48px;
    height: 48px;
  }

  .lookup-helper-grid {
    margin-top: 16px;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .order-lookup-hero {
    padding: 18px;
  }

}
