.prepayment.sub-area {
  background: #f2f5fa;
}

.prepayment .sub-body {
  align-items: flex-start;
  gap: 32px;
}

.prepayment .sub-body .left {
  flex: 0 0 300px;
  min-width: 0;
}

.prepayment .sub-body .left > .box {
  width: 300px;
  margin: 0;
  padding: 14px 12px 12px;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(35, 48, 76, 0.08);
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.prepayment .sub-body .center_right {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 36px 38px 40px;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(35, 48, 76, 0.08);
}

/* 좌측 카테고리 탐색 */
.pricing-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-nav-toggle {
  display: none;
}

.pricing-nav-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pricing-nav-search {
  padding: 4px 6px 10px;
}

.pricing-nav-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e6ef;
  border-radius: 10px;
  background: #f8f9fc;
  color: #2b303b;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  outline: none;
}

.pricing-nav-search input::placeholder {
  color: #9aa2b1;
}

.pricing-nav-search input:focus {
  border-color: #8f9df0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 119, 255, 0.16);
}

.pricing-nav-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  min-height: 0;
}

.pricing-nav-list > li.is-hidden {
  display: none;
}

.pricing-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4b5565;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.pricing-nav-item:hover {
  background: #f4f6ff;
  color: #2b3fb0;
}

.pricing-nav-item.is-active {
  background: #eef1ff;
  color: #3049c8;
  font-weight: 700;
}

.pricing-nav-item:focus-visible {
  outline: 3px solid rgba(95, 119, 255, 0.3);
  outline-offset: 2px;
}

.pricing-nav-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pricing-nav-count {
  flex: 0 0 auto;
  /* 배경(#f2f5fa·#fff) 위에서 4.5:1 을 넘겨야 한다. #98a0b0 은 2.6:1 이었다(2026-09-21 감사). */
  color: #5c6472;
  font-size: 12px;
}

.pricing-nav-item.is-active .pricing-nav-count {
  color: #4353c8;
}

/* 우측 목록 */
.pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e6eaf1;
}

.pricing-head__copy h2 {
  margin: 0 0 8px;
  color: #202634;
  font-family: "S-CoreDream-6", "Noto Sans KR", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.pricing-head__copy p {
  margin: 0;
  color: #687184;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.pricing-head__charge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #d6dcf0;
  border-radius: 9px;
  background: #f7f8ff;
  color: #435bd4;
  font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pricing-head__charge:hover {
  border-color: #5f77ff;
  background: #eef1ff;
  color: #3049c8;
}

.pricing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
}

.pricing-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
}

.pricing-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  background: #f8f9fc;
  color: #2b303b;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  outline: none;
}

.pricing-search input::placeholder {
  color: #9aa2b1;
}

.pricing-search input:focus {
  border-color: #8f9df0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 119, 255, 0.16);
}

.pricing-toolbar__count {
  flex: 0 0 auto;
  margin: 0;
  color: #737c8d;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
}

.pricing-toolbar__count strong {
  color: #2b3fb0;
  font-size: 15px;
}

.pricing-list {
  display: grid;
  gap: 12px;
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  padding: 20px 22px;
  border: 1px solid #e4e8f0;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.pricing-card:hover {
  border-color: #ccd5f5;
  background: #fbfcff;
  box-shadow: 0 8px 22px rgba(35, 48, 76, 0.07);
}

.pricing-card[hidden] {
  display: none;
}

.pricing-card.is-popular {
  border-color: #dbe2ff;
  border-left: 3px solid #5f77ff;
  background: #f9faff;
}

.pricing-card.is-popular:hover {
  border-color: #c3cdf7;
  background: #f3f6ff;
  box-shadow: 0 10px 26px rgba(67, 91, 212, 0.11);
}

.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  margin: 0 0 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff2c9;
  color: #7a5a00;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pricing-card__amount {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.pricing-card__body {
  min-width: 0;
}

.pricing-card__title {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #202634;
  font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pricing-card__title:hover {
  color: #435bd4;
  text-decoration: underline;
  text-decoration-color: #aeb9ee;
  text-underline-offset: 4px;
}

.pricing-card__desc {
  margin: 6px 0 0;
  color: #6a7384;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pricing-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #8a92a0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
}

.pricing-card__meta b {
  margin-left: 3px;
  color: #4d5666;
  font-weight: 600;
}

.pricing-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef1ff;
  color: #435bd4;
  font-weight: 600;
}

.pricing-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  text-align: right;
}

.pricing-card__point {
  color: #263fbd;
  font-family: "S-CoreDream-6", "Noto Sans KR", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-card__unit {
  margin-left: 2px;
  color: #263fbd;
  font-size: 13px;
}

.pricing-card__tiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pricing-card__tiers span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #dce2f6;
  border-radius: 6px;
  background: #f6f8ff;
  color: #3449b7;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.pricing-card__detail {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #5167df;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c2caf7;
  text-underline-offset: 4px;
}

.pricing-empty {
  margin: 16px 0 0;
  padding: 34px 16px;
  border: 1px dashed #dfe4ee;
  border-radius: 12px;
  color: #8a92a0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  text-align: center;
}

.pricing-footnote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e6eaf1;
  color: #737c8d;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

@media screen and (max-width: 1180px) {
  .prepayment .sub-body {
    flex-direction: column;
  }

  .prepayment .sub-body .left {
    width: 100%;
    flex-basis: auto;
  }

  .prepayment .sub-body .left > .box {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .pricing-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #202634;
    font-family: "Noto Sans KR", sans-serif;
    text-align: left;
    cursor: pointer;
  }

  .pricing-nav-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .pricing-nav-toggle-copy > span {
    /* 배경(#fff) 위에서 4.5:1 을 넘겨야 한다. #98a0b0 은 2.6:1 이었다(2026-09-21 감사). */
    color: #5c6472;
    font-size: 12px;
  }

  .pricing-nav-toggle-copy > strong {
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .pricing-nav-toggle-icon {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-right: 2px solid #7a8398;
    border-bottom: 2px solid #7a8398;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .pricing-nav.is-open .pricing-nav-toggle-icon {
    transform: rotate(-135deg);
  }

  .pricing-nav .pricing-nav-panel {
    display: none;
  }

  .pricing-nav.is-open .pricing-nav-panel {
    display: flex;
    padding-top: 8px;
  }

  .pricing-nav-list {
    overflow: visible;
  }
}

@media screen and (max-width: 900px) {
  .prepayment .sub-body .center_right {
    padding: 28px 22px 32px;
  }

  .pricing-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .pricing-head__charge {
    align-self: flex-start;
  }

  .pricing-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .pricing-search {
    max-width: none;
  }

  .pricing-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .pricing-card__price {
    align-items: flex-start;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
    text-align: left;
  }

  .pricing-card__tiers {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 430px) {
  .prepayment .sub-body .center_right {
    padding: 22px 16px 28px;
  }

  .pricing-head__copy h2 {
    font-size: 23px;
  }

  .pricing-card {
    padding: 16px 14px;
  }

  .pricing-card__point {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-nav-item,
  .pricing-head__charge,
  .pricing-card,
  .pricing-nav-toggle-icon {
    transition: none;
  }
}
