:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #262626;
  background: #edf0f4;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 375px;
  background: #edf0f4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(38, 136, 255, 0.45);
  outline-offset: 2px;
}

.page-switcher {
  position: fixed;
  z-index: 90;
  top: 118px;
  left: calc(50% - 313.5px);
  display: flex;
  width: 112px;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(210, 217, 225, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(31, 39, 49, 0.11);
  backdrop-filter: blur(12px);
}

.page-switcher-title {
  padding: 0 4px 2px;
  color: #9299a3;
  font-size: 10px;
  line-height: 16px;
}

.page-switcher a {
  display: flex;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  border-radius: 11px;
  color: #555d67;
  text-decoration: none;
}

.page-switcher a:hover {
  background: #f5f7f9;
}

.page-switcher a.active {
  color: #fff;
  background: #2f3338;
}

.page-switcher a b {
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
}

.page-switcher a small {
  margin-top: 1px;
  color: inherit;
  font-size: 9px;
  line-height: 13px;
  opacity: 0.7;
}

.trip-screen {
  position: relative;
  width: 375px;
  min-height: max(100dvh, 1727px);
  margin: 0 auto;
  overflow: hidden;
  background: #f4f7f8;
  box-shadow: 0 0 32px rgba(26, 34, 44, 0.08);
}

.trip-hero {
  height: 132px;
  background-color: #d9f7ff;
  background-image: url("./assets/trip-page-reference.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 375px 1727px;
}

.trip-sheet {
  position: relative;
  z-index: 2;
  height: 1531px;
  margin-top: -19px;
  border-radius: 18px 18px 0 0;
  background: #f4f7f8;
}

.trip-overview {
  position: absolute;
  top: 13px;
  right: 14px;
  left: 24px;
  height: 61px;
}

.trip-overview h1 {
  margin: 0;
  color: #242424;
  font-size: 17px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.25px;
}

.trip-overview p {
  margin: 2px 0 0;
  color: #7d7f82;
  font-size: 13px;
  line-height: 20px;
}

.trip-overview p span {
  color: #9c9ea1;
  font-size: 18px;
  font-weight: 300;
  vertical-align: -1px;
}

.overview-edit,
.overview-collapse {
  position: absolute;
  top: 1px;
  width: 26px;
  height: 26px;
  color: #c4c6c8;
}

.overview-edit {
  right: 32px;
}

.overview-collapse {
  right: -1px;
}

.overview-edit svg,
.overview-collapse svg {
  width: 21px;
  height: 21px;
}

.timeline-line {
  position: absolute;
  top: 86px;
  bottom: 99px;
  left: 31px;
  width: 1px;
  border-left: 2px dotted #d6dadd;
}

.day-heading {
  position: absolute;
  left: 47px;
  display: flex;
  height: 26px;
  align-items: center;
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
}

.day-heading > span {
  position: absolute;
  left: -19px;
  width: 8px;
  height: 8px;
  border: 3px solid #4b4f52;
  border-radius: 50%;
  background: #f4f7f8;
}

.day-heading b {
  margin-right: 5px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.day-heading i {
  margin-left: 3px;
  color: #65686b;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
}

.day-one {
  top: 78px;
}

.day-two {
  top: 978px;
}

.resource-card {
  position: absolute;
  left: 46px;
  width: 316px;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 20px rgba(46, 55, 65, 0.07);
}

.resource-header {
  position: absolute;
  top: 13px;
  right: 14px;
  left: 14px;
  display: flex;
  height: 21px;
  align-items: center;
  justify-content: space-between;
}

.resource-type {
  display: flex;
  align-items: center;
  color: #85888b;
  font-size: 13px;
  line-height: 20px;
}

.resource-icon {
  display: grid;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.resource-icon.plane {
  background: #777bf0;
  transform: rotate(-12deg);
}

.resource-icon.car {
  background: #25d2a2;
}

.resource-icon.ticket {
  background: #4ad5d7;
}

.resource-icon svg {
  width: 13px;
  height: 13px;
}

.resource-status {
  font-size: 12px;
  line-height: 18px;
}

.resource-status.muted {
  color: #a6a8aa;
}

.resource-status.red-text {
  color: #ff5a5f;
}

.flight-card {
  top: 110px;
  height: 369px;
}

.trip-membership-bar {
  position: absolute;
  top: 485px;
  left: 46px;
  display: flex;
  width: 316px;
  height: 44px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #e4eedf;
  border-radius: 13px;
  color: inherit;
  background: linear-gradient(105deg, #f8fff4 0%, #fff 76%);
  box-shadow: 0 5px 14px rgba(46, 75, 37, 0.07);
  text-decoration: none;
}

.trip-recipient-choice {
  position: fixed;
  z-index: 45;
  inset: 0;
  left: 50%;
  width: min(100vw, 375px);
  transform: translateX(-50%);
}

.trip-recipient-choice[hidden] {
  display: none;
}

.trip-recipient-choice-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.trip-recipient-choice-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 23px 18px 22px;
  border-radius: 25px 25px 0 0;
  background: #fff;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.13);
  animation: trip-recipient-choice-enter 180ms ease-out both;
}

.trip-recipient-choice-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  color: #999;
}

.trip-recipient-choice-close svg {
  width: 100%;
  height: 100%;
}

.trip-recipient-choice-sheet h2 {
  margin: 0;
  padding-right: 32px;
  color: #252525;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.trip-recipient-choice-sheet > p {
  margin: 3px 0 18px;
  color: #8b8b8b;
  font-size: 12px;
  line-height: 18px;
}

.trip-recipient-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.trip-recipient-options > button {
  display: flex;
  width: 100%;
  height: 74px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #e7eaec;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.trip-recipient-options > button:last-child {
  border-color: #ddebd8;
  background: #f9fff6;
}

.trip-recipient-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 12px;
  place-items: center;
  border-radius: 14px;
}

.trip-recipient-option-icon.self {
  color: #4c81d4;
  background: #eef5ff;
}

.trip-recipient-option-icon.friend {
  color: #4b9438;
  background: #eef8e9;
}

.trip-recipient-option-icon svg {
  width: 25px;
  height: 25px;
}

.trip-recipient-options > button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.trip-recipient-options strong {
  color: #2a2a2a;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.trip-recipient-options > button > i {
  margin-left: 8px;
  color: #9b9da0;
  font-size: 22px;
  font-style: normal;
  font-weight: 300;
}

body.trip-recipient-choice-open {
  overflow: hidden;
}

@keyframes trip-recipient-choice-enter {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.trip-membership-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.trip-membership-copy strong {
  color: #2c302c;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
}

.trip-membership-copy small {
  color: #8b908a;
  font-size: 9px;
  line-height: 13px;
}

.trip-membership-cta {
  display: flex;
  height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 14px;
  color: #fff;
  background: #4b9438;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.trip-membership-cta i {
  margin-left: 2px;
  font-size: 15px;
  font-style: normal;
  font-weight: 300;
}

.flight-segment {
  position: absolute;
  top: 47px;
  right: 14px;
  left: 14px;
  height: 96px;
}

.flight-segment.second {
  top: 151px;
}

.flight-segment h3 {
  margin: 0 0 6px;
  color: #242424;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.flight-line {
  position: relative;
  display: flex;
  height: 20px;
  align-items: center;
  color: #717477;
  font-size: 13px;
  line-height: 20px;
}

.flight-line::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
}

.flight-line.green::before {
  background: #0bcf5b;
}

.flight-line.red::before {
  background: #ff4b3b;
}

.flight-line b {
  width: 45px;
  font-weight: 400;
}

.flight-segment.second .flight-line.green b {
  width: 91px;
  white-space: nowrap;
}

.flight-line b em {
  color: #ff4f55;
  font-size: 11px;
  font-style: normal;
}

.flight-line span {
  flex: 1 1 auto;
}

.flight-segment > p {
  height: 20px;
  margin: 0 0 0 13px;
  color: #b0b2b4;
  font-size: 11px;
  line-height: 20px;
}

.flight-note {
  position: absolute;
  top: 249px;
  right: 14px;
  left: 14px;
  height: 60px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #f7f8f9;
}

.flight-note p {
  margin: 0;
  color: #55595d;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}

.flight-note p span {
  display: inline-block;
  width: 44px;
  color: #777b7f;
}

.detail-button {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  display: flex;
  height: 43px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #f1f2f3;
  color: #292b2d;
  font-size: 13px;
  font-weight: 600;
}

.detail-icon {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
  font-size: 0;
  font-style: normal;
}

.detail-icon::after {
  position: absolute;
  top: 3px;
  right: 2px;
  left: 2px;
  height: 3px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
}

.car-card {
  height: 199px;
}

.car-one {
  top: 539px;
}

.car-two {
  top: 751px;
}

.car-three {
  top: 1011px;
}

.car-title,
.ticket-title {
  position: absolute;
  top: 43px;
  right: 14px;
  left: 14px;
  margin: 0;
  color: #252729;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.car-title span,
.ticket-title span {
  color: #9b9da0;
  font-size: 18px;
  font-weight: 300;
}

.car-date {
  position: absolute;
  top: 69px;
  left: 14px;
  margin: 0;
  color: #7d8083;
  font-size: 13px;
  line-height: 22px;
}

.duration-pill {
  display: inline-block;
  min-width: 29px;
  height: 16px;
  margin: 0 4px;
  border: 1px solid #c5c8ca;
  border-radius: 8px;
  color: #85888a;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  vertical-align: 1px;
}

.car-spec,
.ticket-spec {
  position: absolute;
  top: 101px;
  right: 14px;
  left: 14px;
  display: flex;
  height: 41px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #5e6265;
  background: #f7f8f9;
  font-size: 12px;
}

.car-actions {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  display: grid;
  height: 47px;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #f1f2f3;
}

.car-actions > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.car-actions > button + button::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 1px;
  background: #eff0f1;
  content: "";
}

.car-actions small {
  position: absolute;
  top: -11px;
  left: 50%;
  min-width: 62px;
  height: 19px;
  padding: 0 8px;
  border-radius: 10px;
  color: #fff;
  background: #ff5360;
  font-size: 10px;
  font-weight: 500;
  line-height: 19px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.car-actions button span {
  color: #282a2c;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.car-actions button:first-child span {
  color: #ff4f5a;
}

.car-actions i {
  font-style: normal;
}

.ticket-card {
  top: 1222px;
  height: 176px;
}

.ticket-title {
  top: 44px;
}

.ticket-spec {
  top: 79px;
}

.all-orders {
  position: absolute;
  top: 1413px;
  left: 27px;
  display: flex;
  height: 28px;
  align-items: center;
  color: #303235;
  font-size: 13px;
  font-weight: 600;
}

.all-orders > span {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border: 3px solid #4b4f52;
  border-radius: 50%;
  background: #f4f7f8;
}

.all-orders i {
  margin-left: 2px;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
}

.trip-service-banner {
  position: absolute;
  top: 1460px;
  right: 12px;
  left: 12px;
  display: flex;
  height: 69px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-radius: 10px;
  background: linear-gradient(105deg, #f7fffc, #eefcff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.trip-service-banner strong {
  color: #176879;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.trip-service-banner p {
  margin: 2px 0 0;
  color: #63bcb0;
  font-size: 10px;
  line-height: 16px;
}

.trip-service-banner p span {
  color: #18c989;
  font-weight: 700;
}

.trip-service-banner button {
  width: 79px;
  height: 39px;
  border: 1px solid #78d6e8;
  border-radius: 13px;
  color: #116b86;
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 500;
}

.bottom-navigation {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  width: 375px;
  height: 84px;
  grid-template-columns: repeat(5, 1fr);
  padding-top: 7px;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%);
}

.bottom-navigation button {
  display: flex;
  height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #9a9a9a;
}

.bottom-navigation button.active {
  color: #555;
}

.bottom-navigation small {
  font-size: 11px;
  line-height: 16px;
}

.nav-icon {
  position: relative;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1.6px solid #262626;
  border-radius: 7px;
  color: #242424;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
}

.nav-icon.home::before {
  width: 9px;
  height: 7px;
  border: 1.5px solid #272727;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  content: "";
}

.nav-icon.home::after {
  position: absolute;
  top: 3px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #272727;
  border-left: 1.5px solid #272727;
  content: "";
  transform: rotate(45deg);
}

.nav-icon.message {
  padding-bottom: 5px;
}

.nav-icon.itinerary {
  border-radius: 6px;
  box-shadow: 5px 6px 0 -3px #f1a8ad;
}

.nav-icon.discover,
.nav-icon.mine {
  border-radius: 50%;
}

.trip-home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #050505;
  transform: translateX(-50%);
}

.trip-toast {
  position: fixed;
  z-index: 30;
  bottom: 98px;
  left: 50%;
  max-width: 280px;
  padding: 9px 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(26, 26, 26, 0.82);
  font-size: 13px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.trip-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 680px) {
  .page-switcher {
    display: none;
  }
}
