/* 订阅弹窗样式 */
.subscription-lightbox+.i-spzhtml-sidebar-mask {
  pointer-events: none;
}

.subscription-modal {
  position: relative;
  border-radius: 24px;
  width: 890px;
  height: 628px;
  background-color: #FFF;
  background-image: url("/assets/images/subscription_modal_bg_pc.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.subscription-close {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 4px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: var(--icon-bg-color);
  color: var(--icon-text-color);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.subscription-close:hover {
  background: var(--icon-bg-color-hover);
  color: var(--icon-text-color-hover);
}

.subscription-close:active {
  background: var(--icon-bg-color-active);
  color: var(--icon-text-color-active);
}

.subscription-layout {
  display: flex;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
}

.subscription-pane--info {
  display: flex;
  flex-direction: column;
  width: 430px;
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.offer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  background: #ECF1FF;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  font-style: italic;
}

.offer-title {
  font-size: 28px;
  font-weight: bold;
  color: #3A3A48;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 72px;
}

.plan-subtitle {
  margin-top: 8px;
  font-size: 12px;
  color: #84848C;
  line-height: 22px;
}

.plan-price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  height: 100%;
  line-height: normal;
}

.price-unit-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

.price-amount {
  font-size: 60px;
  font-weight: 700;
  color: #09091A;
  letter-spacing: -0.5px;
}

.price-unit {
  font-size: 14px;
  color: #84848C;
  line-height: normal;
  font-weight: 400;
}

.plan-features {
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3A3A48;
  font-weight: 500;
  line-height: 22px;
}

.feature-dot {
  width: 16px;
  height: 16px;
}

.subscription-pane--payment {
  flex: 1;
  min-width: 0;
}

.payment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 28px;
  border-radius: 24px;
  background: #FFF;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 0;
}

.methods-title {
  font-size: 18px;
  font-weight: 600;
  color: #09091A;
  line-height: 26px;
}

.methods-list {
  overflow-y: auto;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-actions-note {
  color: #B5B5BA;
  line-height: 16px;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.onboarding-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  cursor: pointer;
  color: #FFF;
}

/* Loading 状态样式 - 禁用按钮 */
spz-custom-subscription-plan[loading] .onboarding-btn {
  background: var(--btn-primary-bg-color-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 959.98px) {
  spz-sidebar[side='bottom'].subscription-lightbox {
    width: 100%;
    max-height: 85%;
    border-radius: 24px 24px 0 0;
  }

  .subscription-modal {
    width: 100%;
    height: auto;
    max-height: 90%;
    background-image: url("/assets/images/subscription_modal_bg_mobile.png");
    background-size: cover;
    background-position: top center;
    border-radius: 0;
    overflow-y: auto;
  }

  .subscription-layout {
    flex-direction: column;
    padding: 20px 20px 8px;
  }

  .subscription-pane--info {
    width: 100%;
    padding: 0;
  }

  .subscription-offer {
    margin-top: 40px;
  }

  .offer-label {
    padding: 4px 8px;
  }

  .subscription-divider-line {
    display: none;
  }

  .plan-header {
    margin-top: 20px;
  }

  .plan-features {
    gap: 14px;
  }

  .subscription-pane--payment {
    padding: 16px;
    margin-top: 20px;
    background: #FFF;
    border-radius: 16px;
    border: 1px solid #F3F3FF;
  }

  .payment-card {
    padding: 0;
  }

  .payment-methods {
    gap: 12px;
  }

  .methods-list {
    padding-bottom: 12px;
  }

  .payment-actions {
    gap: 16px;
  }

  .payment-actions-note {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (min-width: 960px) {
  spz-sidebar[side='bottom'].subscription-lightbox {
    width: 100%;
    max-height: 85%;
    width: fit-content;
    height: fit-content;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: none;
  }

  .subscription-offer {
    margin-top: 68px;
  }

  .subscription-divider-line {
    margin: 28px 0;
    border-bottom: 1px solid #E6E6E8;
  }
}