[data-component="top-navigation-bar"],
[data-component="top-navigation-bar"] * {
  box-sizing: border-box;
}

[data-component="top-navigation-bar"] {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 16px);
  left: 0;
  right: 0;
  z-index: 80;
  width: calc(100vw - 32px);
  max-width: 360px;
  height: 56px;
  margin: 0 auto;
  transform: none;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 28px;
  outline: 0;
  background: #ffffff;
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #371451;
  overflow: visible;
}

.twn-topbar__control {
  position: relative;
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #371451;
  text-decoration: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.twn-topbar__control:focus-visible,
.twn-topbar__island:focus-visible {
  outline: 2px solid #371451;
  outline-offset: 2px;
}

.twn-topbar__control img {
  display: block;
  object-fit: contain;
}

.twn-topbar__control .tw-icon,
.twn-topbar__control .tw-icon > svg {
  display: block;
  color: currentColor;
}

.twn-topbar__control .tw-icon > svg {
  width: 100%;
  height: 100%;
}

.twn-topbar__menu-icon {
  width: 24px;
  height: 18px;
}

.twn-topbar__notifications-icon {
  width: 22px;
  height: 24px;
}

.twn-topbar__control--back {
  line-height: 0;
}

.twn-topbar__control--back span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  color: #090b2b;
  font-size: 30px;
  line-height: 0;
}

.twn-topbar__control--burger img {
  width: 24px;
  height: 18px;
  opacity: 1;
}

.twn-topbar__control--notifications {
  color: #371451;
}

.twn-topbar__center {
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twn-topbar__logo {
  width: 80px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.twn-topbar__logo img {
  width: 80px;
  height: 29px;
  display: block;
  object-fit: contain;
}

.twn-topbar__badge {
  position: absolute;
  top: 10px;
  right: 11px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2d10ff;
  color: #ffffff;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
}

.twn-topbar__island {
  width: min(256px, calc(100vw - 136px));
  max-width: 256px;
  min-width: 0;
  height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  align-items: center;
  column-gap: 12px;
  padding: 0 12px;
  border-radius: 22px;
  background: #000000;
  background-clip: padding-box;
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  transition: width 180ms ease, height 180ms ease, border-radius 180ms ease;
}

.twn-topbar__island-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.twn-topbar__island-icon svg {
  width: 20px;
  height: 20px;
  padding: 6px;
  border-radius: 50%;
  background: #6c35ff;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.twn-topbar__island-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.twn-topbar__island-copy {
  min-width: 0;
  display: block;
}

.twn-topbar__island-primary,
.twn-topbar__island-route {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.twn-topbar__island-primary {
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
}

.twn-dynamic-island--two-lines {
  height: auto;
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 24px;
}

.twn-dynamic-island--two-lines .twn-topbar__island-primary {
  display: -webkit-box;
  max-height: 30px;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.twn-topbar__island-route {
  display: none;
  margin-top: 4px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.twn-dynamic-island[data-dynamic-island-view="driver_found"] .twn-topbar__island-primary::after {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-left: 5px;
  border-radius: 50%;
  background: #32d74b;
  vertical-align: 2px;
}

.twn-topbar__island-secondary {
  font-weight: 650;
}

.twn-topbar__island-chevron {
  width: 12px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  font-weight: 300;
}

.twn-topbar__logo[hidden] {
  display: none;
}

@media (hover: hover) {
  .twn-dynamic-island:hover,
  .twn-dynamic-island:focus-visible {
    width: min(272px, calc(100vw - 128px));
    height: 80px;
    border-radius: 22px;
  }

  .twn-dynamic-island:hover .twn-topbar__island-route,
  .twn-dynamic-island:focus-visible .twn-topbar__island-route {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twn-topbar__island {
    transition: none;
  }
}

.twn-topbar__island-chevron img {
  width: 7px;
  height: 12px;
  display: block;
  object-fit: contain;
}

.tw-plain-app--with-top-navigation {
  padding-top: calc(88px + env(safe-area-inset-top));
}

@media (max-width: 340px) {
  [data-component="top-navigation-bar"] {
    width: calc(100vw - 32px);
  }

  .twn-topbar__island {
    column-gap: 8px;
    padding: 0 10px;
  }
}
