.parcel-runway {
  position: relative;
  padding: 24px;
  margin: 24px 0 20px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--white);
  box-shadow: 0 18px 50px #123d2d07;
}

.runway-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}

.runway-heading small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
}

.runway-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.runway-controls {
  display: flex;
  flex: none;
  gap: 8px;
}

.runway-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.runway-controls button:hover,
.runway-controls button:focus-visible {
  transform: translateY(-2px);
  border-color: #72c99c;
  background: #e9f8ef;
  color: #176744;
}

.parcel-runway .parcel-runway-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  margin: 0 -5px;
  padding: 5px;
}

.parcel-runway-track .parcel-card {
  position: relative;
  min-width: 0;
  min-height: 296px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: none;
  overflow: hidden;
}

.parcel-runway-track .parcel-card.is-current {
  border-color: #74cda4;
  box-shadow: 0 6px 18px #19875a18;
}

.parcel-runway .parcel-logo {
  display: grid;
  place-items: center;
  height: 139px;
  margin: 10px 10px 0;
  padding: 27px 20px;
  border-radius: 12px;
  background: #f4f6f5;
  overflow: hidden;
}

.parcel-runway .amazon-logo {
  background: #fbf5e9;
}

.parcel-runway .ctt-logo {
  background: #fbefef;
}

.parcel-runway .dhl-logo {
  background: #fff4be;
}

.parcel-runway .seur-logo {
  background: #f6efed;
}

.parcel-runway .parcel-logo img {
  display: block;
  width: 100%;
  max-width: 172px;
  height: 80px;
  object-fit: contain;
}

.parcel-runway .parcel-logo.dhl-logo img {
  max-width: 108px;
}

.parcel-runway .parcel-logo.seur-logo img {
  max-width: 152px;
  object-fit: contain;
}

.parcel-runway .parcel-card-copy {
  padding: 19px 16px 21px;
}

.parcel-runway .parcel-tag {
  min-height: 0;
  font-size: 9px;
  letter-spacing: .1em;
  color: #20805b;
}

.parcel-runway .parcel-card h3 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.parcel-runway .parcel-card p {
  min-height: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.runway-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.parcel-runway-track:focus-visible {
  outline: 3px solid #2a9f7c;
  outline-offset: 4px;
}

:root[data-theme="dark"] .parcel-runway .parcel-tag {
  color: #8cddba;
}

:root[data-theme="dark"] .runway-controls button {
  border-color: #334e42;
  background: #172b25;
  color: #e1eee7;
}

:root[data-theme="dark"] .runway-dots button {
  background: #527060;
}

:root[data-theme="dark"] .runway-dots button.is-active {
  background: #74d59a;
}

.parcel-runway .parcel-runway-track.is-scrollable {
  --card-width: clamp(218px, 39%, 365px);
  --side-spacing: calc((100% - var(--card-width)) / 2);
  container-type: inline-size;
  position: relative;
  display: flex;
  gap: 14px;
  max-width: none;
  margin-inline: 0;
  padding: 10px 0 17px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.parcel-runway-track.is-scrollable .parcel-card {
  flex: 0 0 var(--card-width);
  min-height: 0;
  scroll-snap-align: center;
  transform: scale(.94);
  opacity: .77;
  transition: opacity .28s ease, transform .42s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}

.parcel-runway-track.is-scrollable .parcel-card:first-child {
  margin-inline-start: var(--side-spacing);
}

.parcel-runway-track.is-scrollable .parcel-card:last-child {
  margin-inline-end: var(--side-spacing);
}

.parcel-runway-track.is-scrollable .parcel-card.is-current {
  transform: scale(1);
  opacity: 1;
  border-color: #7ac8a2;
  box-shadow: 0 8px 18px #16825329;
}

.runway-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
}

.runway-play {
  min-height: 38px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.runway-play::before {
  content: "▷";
  margin-right: 6px;
}

.runway-play[aria-pressed="true"]::before {
  content: "Ⅱ";
}

.runway-dots {
  display: flex;
  gap: 1px;
}

.runway-dots button {
  display: grid;
  min-width: 27px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.runway-dots button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 20px;
  background: var(--muted);
  transition: width .25s ease, background .25s ease;
}

.runway-dots button[aria-current="true"]::after {
  width: 19px;
  background: #23865c;
}

.runway-controls button:focus-visible,
.runway-play:focus-visible,
.runway-dots button:focus-visible {
  outline: 2px solid #23865c;
  outline-offset: 2px;
}

:root[data-theme="dark"] .runway-dots button[aria-current="true"]::after {
  background: #74d59a;
}

@media (max-width: 680px) {
  .parcel-runway {
    padding: 14px;
  }

  .runway-heading {
    gap: 10px;
    margin-bottom: 8px;
  }

  .runway-controls button {
    width: 36px;
    height: 36px;
  }

  .parcel-runway .parcel-runway-track.is-scrollable {
    --card-width: min(82%, 310px);
    gap: 9px;
  }

  .parcel-runway .parcel-logo {
    height: 100px;
    padding: 12px;
  }

  .parcel-runway .parcel-logo img {
    height: 63px;
  }

  .parcel-runway .parcel-card-copy {
    padding: 12px 13px 14px;
  }

  .parcel-runway .parcel-card h3 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .parcel-runway *,
  .parcel-runway *::after {
    animation: none !important;
    transition: none !important;
  }
}