html {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fefefe;
  width: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body #root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body #root .container {
  width: 640px;
  margin: 0 auto;
}

body #root .selectBox {
  width: 150px;
  appearance: none;
  background: transparent url('../assets/arrow-down.svg') no-repeat right center;
  border: none;
  outline: none;
  padding-right: 24px;
  text-align: right;
  text-align-last: right;
}

body #root #content {
  display: flex;
  flex-direction: column;
  padding-top: 64px;
}

body #root #content #searchForm {
  width: 100%;
  min-height: 44px;
}

body #root #content #searchForm .searchBar {
  display: flex;
}

body #root #content #searchForm .searchBar .searchBarInput {
  flex: 1;
  border: 1px solid #e5e5e5;
  color: #7a7a7a;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px 0 0 4px;
  border-right: 0;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
}

body #root #content #searchForm .searchBar .searchBtn {
  background-color: #111;
  border: 0;
  margin: 0;
  border-radius: 0 4px 4px 0;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
}

body #root #content #searchForm .searchBar .searchBtn img {
  padding-right: 4px;
}

body #root footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

body #root footer span {
  color: #8d8d8d;
  font-size: 10px;
}

body #root footer select {
  font-size: 12px;
  color: #261c4c;
}

.languageForm {
  display: flex;
  align-items: center;
  gap: 8px;
}

.languageSubmitBtn,
.backLink {
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  padding: 8px 12px;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.trackingCard {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.trackingCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.trackingCardLabel {
  font-size: 12px;
  color: #8d8d8d;
}

.trackingCardValue {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.trackingCardTitle {
  margin: 8px 0 0;
  font-size: 18px;
  color: #111;
}

.trackingCardDescription {
  margin: 0;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.5;
}

.trackingStatusPill {
  flex-shrink: 0;
  min-width: 180px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #111;
  padding: 12px 16px;
}

.trackingStatusPillLabel {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.trackingFactsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trackingFactCard {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.trackingFactLabel {
  font-size: 11px;
  color: #8d8d8d;
  margin-bottom: 6px;
}

.trackingFactValue {
  font-size: 14px;
  color: #111;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.trackingSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trackingSectionTitle {
  margin: 0;
  font-size: 16px;
  color: #111;
}

.trackingSteps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trackingStepItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trackingStepMarker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.trackingStepContent {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trackingStepTitle {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.trackingStepDescription {
  margin: 0;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.5;
}

.trackingNotice {
  margin: 0;
  border-left: 3px solid #111;
  background: #f7f7f7;
  padding: 12px 14px;
  font-size: 13px;
  color: #3f3f46;
  line-height: 1.6;
}

.trackingActions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  body #root {
    padding: 0 20px;
  }

  body #root .container {
    width: 100%;
    margin: 0 auto;
  }

  body #root footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .trackingCardHeader {
    flex-direction: column;
  }

  .trackingStatusPill {
    width: 100%;
    min-width: 0;
  }

  .trackingFactsGrid {
    grid-template-columns: 1fr;
  }
}

