/* Pricing: a full page with three cards, a comparison table and FAQ; a
   compact list for the dialog and the usage page. */
.pricing {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pr-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pr-seg {
  flex: 0 1 300px;
}
.pricing.compact .pr-controls {
  justify-content: space-between;
}
.pricing.compact .pr-seg {
  flex: 1 1 200px;
}
/* Full page */
.view.page.pricing-page,
.pricing-page .page-body {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
/* On desktop the whole document scrolls with the browser's scrollbar,
   instead of the app shell scrolling inside a fixed-height frame. */
@media (min-width: 900px) {
  .app[data-page="pricing"] {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .app[data-page="pricing"] .view.page {
    flex: none;
    min-height: 0;
  }
  .app[data-page="pricing"] .page-body {
    overflow: visible;
    flex: none;
    padding-bottom: 48px;
  }
}
.pricing-page .tpl-head {
  text-align: center;
  padding-top: 8px;
}
.pricing-page .tpl-head h1 {
  font-size: 32px;
}
.pricing-page .tpl-head p {
  font-size: 15px;
}
.pr-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding-top: 10px;
}
.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ground);
}
.pr-card.on {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 40px #e0332c1a;
  transform: translateY(-6px);
}
.pr-tag {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.pr-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pr-name b {
  font-size: 20px;
}
.pr-name span {
  font-size: 13px;
  color: var(--ink-3);
}
.pr-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.pr-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pr-price small {
  font-size: 14px;
  color: var(--ink-3);
}
.pr-minutes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ground-2);
}
.pr-minutes b {
  font-size: 16px;
}
.pr-minutes span {
  font-size: 12px;
  color: var(--ink-2);
}
.pr-perks {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
}
.pr-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.pr-cta .primary,
.pr-cta .btn {
  width: 100%;
  justify-content: center;
}
.pr-topup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pr-topup-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pr-topup-text span {
  font-size: 12px;
  color: var(--ink-3);
}
.pr-topup-price {
  font-size: 20px;
  font-weight: 800;
}
.pr-trust {
  text-align: center;
}
.pricing .fine {
  margin: 0;
}
.pr-compare,
.pr-faq {
  margin-top: 8px;
}
.pr-compare h2,
.pr-faq h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.pr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pr-table th,
.pr-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pr-table thead th {
  background: var(--ground-2);
  font-weight: 700;
}
.pr-table tbody th {
  font-weight: 500;
  color: var(--ink-2);
}
.pr-table tbody tr:last-child th,
.pr-table tbody tr:last-child td {
  border-bottom: 0;
}
.pr-table tbody td:nth-child(3) {
  background: #e0332c0a;
  font-weight: 600;
}
.pr-faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.pr-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.pr-faq p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
/* Compact list (dialog, usage page) */
.pr-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pr-row.on {
  border-color: var(--accent);
}
.pr-row-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pr-row-text b {
  font-size: 15px;
}
.pr-row-tag {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  margin-left: 4px;
}
.pr-row-text span {
  font-size: 12px;
  color: var(--ink-3);
}
.pr-row-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}
.pr-row-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.pr-row-cta {
  display: flex;
}
.pr-more {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
}
.pricing [hidden] {
  display: none !important;
}
/* WeCom dialog */
.wecom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 16px;
  text-align: center;
}
.wecom-qr {
  width: 200px;
  height: 200px;
  border-radius: 14px;
}
.wecom-id {
  margin: 0;
  font-size: 14px;
}
.wecom-id .muted {
  display: block;
  font-size: 12px;
}
.wecom-steps {
  margin: 0;
  padding: 0 0 0 20px;
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}
@media (max-width: 899px) {
  .pricing-page .tpl-head h1 {
    font-size: 26px;
  }
  .pr-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pr-card.on {
    transform: none;
  }
  .pr-topup {
    flex-wrap: wrap;
  }
  .pr-topup .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .pr-row {
    flex-wrap: wrap;
  }
  .pr-row-cta,
  .pr-row-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
.pricing .fine[data-alipay-notice] {
  color: var(--ink-2);
  font-size: 13px;
}
