.rg-ot-page {
  background-color: #fafbfd;
  color: var(--color-text-main);
  padding-bottom: 4rem;
}

.rg-ot-breadcrumb {
  padding: 0.85rem 0;
  background-color: #ffffff;
}

.rg-ot-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.rg-ot-breadcrumb__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rg-ot-breadcrumb__link:hover {
  color: var(--color-primary);
}

.rg-ot-breadcrumb__separator {
  color: var(--color-border);
  user-select: none;
}

.rg-ot-breadcrumb__item--current {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.rg-ot-hero {
  padding: 2.35rem 0 1.65rem;
  text-align: center;
}

.rg-ot-hero__inner {
  max-width: 700px;
  margin: 0 auto;
}

.rg-ot-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(30, 159, 242, 0.08);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  padding: 0.35rem 0.9rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 0.85rem;
  white-space: nowrap;
}

.rg-ot-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: var(--font-weight-headline-max);
  line-height: 1.2;
  color: var(--color-text-main);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.rg-ot-hero__subtitle {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  text-wrap: pretty;
}

.rg-ot-container {
  max-width: 920px;
  margin: 0 auto;
}

.rg-ot-portal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rg-ot-recent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.rg-ot-recent__label {
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}

.rg-ot-recent__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rg-ot-recent__chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius-pill);
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rg-ot-recent__chip:hover,
.rg-ot-recent__chip.is-active {
  background: rgba(30, 159, 242, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.rg-ot-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.rg-ot-form__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.rg-ot-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rg-ot-label {
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
}

.rg-ot-label .rg-req {
  color: #ef4444;
}

.rg-ot-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text-main);
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rg-ot-input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 159, 242, 0.14);
}

.rg-ot-submit-btn {
  min-height: 46px;
  padding: 0 1.5rem;
  background: var(--gradient-brand);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: var(--font-weight-bold);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(30, 159, 242, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rg-ot-submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.rg-ot-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.rg-ot-form__hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.rg-ot-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius-lg);
  padding: 1.15rem 1.35rem;
  color: #991b1b;
}

.rg-ot-alert__title {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
}

.rg-ot-alert__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rg-ot-result-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rg-ot-result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}

.rg-ot-result-head__eyebrow {
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.rg-ot-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  text-wrap: balance;
}

.rg-ot-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.95rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.rg-ot-status-pill--completed {
  background: #f0fdf4;
  color: #16a34a;
}

.rg-ot-status-pill--packing {
  background: #eef5fc;
  color: #13519c;
}

.rg-ot-status-pill--hold {
  background: #fffbeb;
  color: #d97706;
}

.rg-ot-status-pill--cancelled {
  background: #fef2f2;
  color: #dc2626;
}

.rg-ot-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-ot-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--border-radius-md);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.rg-ot-step--done {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.rg-ot-step--active {
  background: #eef5fc;
  border-color: #dbeafe;
}

.rg-ot-step__marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  background: #e2e8f0;
  color: #475569;
}

.rg-ot-step--done .rg-ot-step__marker {
  background: #16a34a;
  color: #ffffff;
}

.rg-ot-step--active .rg-ot-step__marker {
  background: var(--color-primary);
  color: #ffffff;
}

.rg-ot-step--cancelled .rg-ot-step__marker {
  background: #dc2626;
  color: #ffffff;
}

.rg-ot-step__title {
  font-size: 0.88rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0.15rem;
}

.rg-ot-step__detail {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.rg-ot-shipments {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rg-ot-shipment-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
}

.rg-ot-carrier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.rg-ot-carrier-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.rg-ot-carrier-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-pill);
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-size: 0.76rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  white-space: nowrap;
}

.rg-ot-ship-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.rg-ot-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.rg-ot-tracking-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.98rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 0.4rem 0.7rem;
  word-break: break-all;
}

.rg-ot-copy-btn {
  min-height: 38px;
  padding: 0 0.9rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.rg-ot-copy-btn:hover,
.rg-ot-copy-btn.is-copied {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(30, 159, 242, 0.06);
}

.rg-ot-track-cta {
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: var(--font-weight-bold);
  border-radius: var(--border-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rg-ot-track-cta:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  color: #ffffff;
}

.rg-ot-pending-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: #eef5fc;
  border: 1px solid #dbeafe;
  border-radius: var(--border-radius-md);
  color: #0f172a;
}

.rg-ot-pending-box svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.rg-ot-pending-box__title {
  font-size: 0.92rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.2rem;
}

.rg-ot-pending-box__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.rg-ot-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.rg-ot-summary-panel {
  border: 1px solid #f1f5f9;
  border-radius: var(--border-radius-md);
  padding: 1.1rem 1.2rem;
  background: #ffffff;
}

.rg-ot-summary-panel__title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
}

.rg-ot-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rg-ot-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.86rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f1f5f9;
}

.rg-ot-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.rg-ot-item__name a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.rg-ot-item__name a:hover {
  color: var(--color-primary);
}

.rg-ot-item__qty {
  color: var(--color-text-muted);
  margin-left: 0.35rem;
  white-space: nowrap;
}

.rg-ot-item__price {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  white-space: nowrap;
}

.rg-ot-meta-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rg-ot-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.rg-ot-meta-row dt {
  color: var(--color-text-muted);
}

.rg-ot-meta-row dd {
  margin: 0;
  text-align: right;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
}

.rg-ot-meta-row__total {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.rg-ot-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.rg-ot-support-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.rg-ot-support-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background: rgba(30, 159, 242, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rg-ot-support-card__title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  text-wrap: balance;
}

.rg-ot-support-card__desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.rg-ot-support-card__desc a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.rg-ot-support-card__desc a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .rg-ot-card {
    padding: 1.25rem;
  }
  .rg-ot-form__grid,
  .rg-ot-steps,
  .rg-ot-summary-grid,
  .rg-ot-support-grid {
    grid-template-columns: 1fr;
  }
  .rg-ot-submit-btn,
  .rg-ot-track-cta {
    width: 100%;
  }
}
