/* membership-order.css v20260503-membership-order-wechat */

.order-page {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 18px;
}

.order-card {
  background: #ffffff;
  border: 1px solid #d8e6f5;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 50, 90, 0.08);
  padding: 20px;
}

.order-title,
.order-side-title {
  margin: 0 0 14px;
  color: #193150;
}

.order-title {
  font-size: 20px;
}

.order-side-title {
  font-size: 18px;
}

.order-field {
  margin-bottom: 14px;
}

.order-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #546d8b;
}

.order-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
  background: #f5f9ff;
  color: #34516f;
}

.order-pay-channels {
  display: grid;
  gap: 10px;
}

.order-pay-item {
  border: 1px solid #d6e3f2;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #233d5c;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.order-pay-item:hover {
  border-color: #76a9eb;
  box-shadow: 0 8px 20px rgba(36, 112, 196, 0.1);
  transform: translateY(-1px);
}

.order-pay-item:has(input:checked) {
  border-color: #2b84ea;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  box-shadow: 0 10px 24px rgba(31, 116, 204, 0.12);
}

.order-pay-item input {
  width: auto;
  height: auto;
  margin: 0;
}

.order-submit {
  margin-top: 6px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
  cursor: pointer;
}

.order-submit:hover {
  background: linear-gradient(180deg, #197dde 0%, #126ec9 100%);
}

.order-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.order-plan-name {
  margin: 0 0 8px;
  font-size: 26px;
  color: #1a2f4a;
}

.order-price-line {
  margin: 0 0 10px;
  color: #d93025;
}

.order-price-current {
  font-size: 36px;
  font-weight: 700;
}

.order-price-original {
  margin-left: 10px;
  font-size: 15px;
  color: #8ea4ba;
  text-decoration: line-through;
}

.order-subject-summary {
  margin: 4px 0 10px;
  color: #58718d;
  font-size: 14px;
}

.order-feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #2f4763;
  line-height: 1.8;
  font-size: 15px;
}

.order-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #667f9a;
}

.wechat-pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 56, 0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.wechat-pay-modal[hidden] {
  display: none !important;
}

.wechat-pay-dialog {
  position: relative;
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 39, 69, 0.22);
  padding: 24px;
}

.wechat-pay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #eef4fb;
  color: #3b5674;
  font-size: 24px;
  cursor: pointer;
}

.wechat-pay-title {
  margin: 0 0 8px;
  color: #17304d;
  font-size: 24px;
}

.wechat-pay-subtitle {
  margin: 0 0 18px;
  color: #617b97;
  line-height: 1.7;
  font-size: 14px;
}

.wechat-pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.wechat-pay-qr {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  border: 1px solid #d8e6f5;
  background: #f8fbff;
  object-fit: contain;
}

.wechat-pay-qr-fallback {
  width: 260px;
  min-height: 260px;
  border-radius: 12px;
  border: 1px dashed #c2d6eb;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6fd 100%);
  color: #31506d;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1.8;
}

.wechat-pay-qr-fallback span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #627c98;
}

.wechat-pay-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: #294563;
  font-size: 14px;
}

.wechat-pay-status {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4fbf5;
  color: #24724a;
  font-size: 14px;
  line-height: 1.7;
}

.wechat-pay-tip {
  margin: 0 0 8px;
  color: #667f9a;
  font-size: 12px;
  line-height: 1.7;
}

.wechat-pay-code-url {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f6f9fc;
  color: #3e5673;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.wechat-pay-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.wechat-pay-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wechat-pay-btn.is-light {
  background: #eef4fb;
  color: #2d4a68;
}

@media (max-width: 900px) {
  .order-page {
    width: min(100%, calc(100% - 20px));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .order-card,
  .wechat-pay-dialog {
    padding: 16px;
  }

  .wechat-pay-qr {
    width: min(260px, 72vw);
    height: min(260px, 72vw);
  }

  .wechat-pay-actions {
    flex-direction: column;
  }
}
