.bihu-purchase-layout .bihu-plan-card,
.bihu-purchase-layout .bihu-period-card { border-radius: 12px; }
.bihu-purchase-layout .bihu-period-option { min-height: 52px; }
.bihu-checkout-summary { border-radius: 12px; background: #17263e; }
.bihu-checkout-summary .bihu-create-order {
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #1677ff !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}
.bihu-create-order .n-button__content { color: #fff !important; }
.bihu-payment-methods .n-card-header .n-card-header__main { color: #bdcce0 !important; }
.bihu-mobile-pay-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 18px;
  background: #08172eb3;
}
.bihu-mobile-pay-sheet {
  position: relative; box-sizing: border-box;
  width: 100%; max-width: 390px; max-height: 100%; overflow: auto;
  padding: 28px 20px 20px; border-radius: 18px;
  background: #fff; color: #17263e; text-align: center;
  box-shadow: 0 16px 54px #07142640;
}
.bihu-mobile-pay-close {
  position: absolute; top: 6px; right: 8px;
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: #65738a; font-size: 28px; cursor: pointer;
}
.bihu-mobile-pay-mark {
  display: grid; place-items: center; width: 54px; height: 54px;
  margin: 0 auto 14px; border-radius: 14px;
  background: #1677ff; color: #fff; font-size: 34px; font-weight: 700;
}
.bihu-mobile-pay-sheet h2 { margin: 0 0 10px; font-size: 22px; }
.bihu-mobile-pay-status { min-height: 48px; margin: 0 0 18px; color: #5b6b83; line-height: 1.65; font-size: 14px; }
.bihu-mobile-pay-open {
  display: block; padding: 15px 12px; border-radius: 10px;
  background: #1677ff; color: #fff !important; text-decoration: none;
  font-size: 18px; font-weight: 700;
}
.bihu-mobile-pay-qr {
  width: 100%; min-height: 44px; margin-top: 10px; padding: 8px;
  border: 0; border-radius: 8px; background: #eff5ff;
  color: #1766c7; font-size: 14px; cursor: pointer;
}
.bihu-mobile-pay-footnote { margin: 14px 0 0; color: #718097; font-size: 12px; line-height: 1.6; }
.bihu-mobile-pay-sheet a:focus-visible,
.bihu-mobile-pay-sheet button:focus-visible { outline: 3px solid #91c4ff; outline-offset: 2px; }
@media (max-width: 767px) {
  .bihu-purchase-layout { gap: 12px; margin-top: 12px; padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .bihu-purchase-layout > .space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 12px; }
  .bihu-purchase-layout .n-card-header { padding: 14px 16px 8px; }
  .bihu-purchase-layout .n-card-header__main { font-size: 18px; }
  .bihu-purchase-layout .bihu-plan-card .n-card__content { padding: 4px 16px 14px; font-size: 14px; line-height: 1.6; }
  .bihu-plan-card .markdown-body p { margin: 0; }
  .bihu-purchase-layout .bihu-period-option { padding: 12px 16px; }
  .bihu-purchase-layout .bihu-period-option .text-lg { font-size: 18px; }
  .bihu-purchase-layout .bihu-checkout-summary {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 1.15fr);
    align-items: center; gap: 12px; box-sizing: border-box;
    margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dce6f3; border-radius: 0;
    background: #fff; color: #17263e; box-shadow: 0 -4px 20px #17263e14;
  }
  .bihu-checkout-summary > h3,
  .bihu-checkout-summary > .bihu-summary-plan { display: none; }
  .bihu-checkout-summary > * { margin: 0 !important; }
  .bihu-checkout-summary > .bihu-summary-total { padding: 0; min-width: 0; }
  .bihu-summary-total > div:first-child { margin-bottom: 3px; color: #65738a; font-size: 12px; }
  .bihu-summary-total > div:last-child { color: #1677ff; font-size: clamp(20px, 6vw, 26px); line-height: 1.25; white-space: nowrap; }
  .bihu-checkout-summary .bihu-create-order { width: 100%; font-size: 17px !important; }
  .bihu-order-layout .bihu-payment-panel { margin-top: 12px; padding: 16px; }
  .bihu-payment-panel > .pb-4 { padding: 12px 0; }
  .bihu-payment-panel > div[class*="border-b"] { padding: 8px 0; }
  .bihu-payment-panel .text-4xl { font-size: 30px; }
  .bihu-payment-panel .bihu-payment-methods { margin-bottom: 12px; }
}
