hs-station-notice {
  display: contents;
}
.hs-rename,
.hs-logo-tip {
  display: none;
}
.hs-arrival:not([open]) {
  display: none;
}
.hs-arrival {
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: none;
  height: fit-content;
  max-height: 90dvh;
  border: 0;
  border-radius: 22px 22px 0 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: white;
  color: #191f28;
  font:
    13px/1.5 "Pretendard Variable",
    Pretendard,
    sans-serif;
  word-break: keep-all;
}
.hs-arrival::backdrop {
  background: rgb(0 0 0 / 45%);
}
html:has(.hs-arrival[open]),
body:has(.hs-arrival[open]) {
  overflow: hidden;
}
.hs-arrival-panel {
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
}
.hs-arrival-tag {
  display: inline-block;
  background: #eef2ff;
  color: #365af2;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}
.hs-arrival h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 6px;
  outline: none;
}
.hs-arrival p {
  margin: 0;
  color: #4e5968;
}
.hs-arrival dl {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
}
.hs-arrival dl div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
.hs-arrival dt {
  color: #6b7684;
}
.hs-arrival dd {
  font-weight: 600;
  margin: 0;
}
.hs-arrival button,
.hs-rename button,
.hs-logo-tip {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.hs-arrival-x {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #6b7684;
  font-size: 18px;
}
.hs-arrival-actions {
  display: flex;
  gap: 8px;
}
.hs-arrival-actions > * {
  display: grid;
  place-items: center;
  height: 46px;
  text-decoration: none;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
}
.hs-arrival-actions a {
  flex: 0 0 96px;
  background: #f2f4f6;
  color: #333d4b;
}
.hs-arrival-actions button {
  flex: 1;
  color: white;
  background: #365af2;
}

/* 공용 머리는 lg(1024px)부터 PC 메뉴를 쓴다. 시즌 종료 시 원래 윗줄로 돌아간다. */
@media (width < 1024px) {
  body:has(hs-station-notice[data-season]) .hs-top-reviews {
    display: none;
  }
}

@media (max-width: 900px) {
  body:has(hs-station-notice[data-season][data-ready]:not([data-banner-closed])):not(
      :has(.hs-arrival[open])
    )
    .hs-logo-tip {
    display: block;
  }
  header button.hs-logo-tip {
    position: absolute;
    z-index: 5;
    top: calc(100% - 2px);
    left: 12px;
    right: 12px;
    max-width: 354px;
    border-radius: 12px;
    padding: 10px 28px 10px 12px;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
    color: white;
    background: #191f28;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 400;
    box-shadow: 0 6px 20px rgb(0 0 0 / 20%);
  }
  .hs-logo-tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 8px;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: #191f28;
  }
  .hs-logo-tip b {
    color: #9eb4ff;
  }
  .hs-logo-tip span {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #b0b8c1;
  }
}
@keyframes hs-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hs-arrival[open] {
    animation: hs-slide-up 0.24s ease-out;
  }
}
@media (min-width: 901px) {
  hs-station-notice:not([data-banner-closed]) .hs-rename {
    display: flex;
  }
  .hs-rename {
    box-sizing: border-box;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    gap: 10px;
    padding: 3px 48px;
    background: #eef2ff;
    color: #191f28;
    font-size: 14px;
  }
  .hs-rename b,
  .hs-rename a {
    color: #365af2;
  }
  .hs-rename a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .hs-rename button {
    position: absolute;
    inset: 0 8px 0 auto;
    width: 36px;
    background: transparent;
    color: #6b7684;
  }
  .hs-arrival {
    inset: 0;
    margin: auto;
    width: 420px;
    border-radius: 22px;
    font-size: 14px;
  }
  .hs-arrival-panel {
    padding: 26px 24px 22px;
  }
  .hs-arrival-tag {
    font-size: 12px;
    padding-inline: 8px;
  }
  .hs-arrival h2 {
    font-size: 22px;
    margin-top: 12px;
  }
  .hs-arrival dl {
    margin: 16px 0;
    padding-inline: 16px;
  }
  .hs-arrival dl div {
    padding: 6px 0;
  }
  .hs-arrival-actions > * {
    height: 48px;
  }
  .hs-arrival-actions a {
    flex-basis: 110px;
  }
}
