/* CFMS Order Page Styles */
body.cfms-hide-footer #footer,
body.cfms-hide-footer .van-tabbar,
body.cfms-hide-footer .cfms-tabbar {
  display: none !important;
}

.cfms-order-page {
  min-height: 100vh;
  background-color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-bottom: 70px;
  position: relative;
}

/* Header */
.cfms-order-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #111827;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  padding: 0 16px;
}

.cfms-order-header .back-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cfms-order-header .back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

/* Yellow Summary Card */
.cfms-order-summary-card {
  margin: 10px 14px 16px 14px;
  background: #fce338;
  border-radius: 16px;
  padding: 16px 14px 14px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.cfms-order-gains-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cfms-order-gains-left {
  flex: 1;
}

.cfms-order-gains-val {
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: #111111;
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif, sans-serif;
}

.cfms-order-gains-sub {
  font-size: 13px;
  color: #333333;
  margin-top: 6px;
  line-height: 1.3;
}

.cfms-order-cal-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-left: 10px;
}

/* Inner Statistics Card */
.cfms-order-stats-inner {
  margin-top: 14px;
  background: rgba(228, 196, 26, 0.55);
  border-radius: 12px;
  padding: 10px 14px;
}

.cfms-order-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12.5px;
  color: #222222;
}

.cfms-order-stat-row .stat-label {
  font-weight: 500;
}

.cfms-order-stat-row .stat-val {
  font-weight: 700;
}

.cfms-order-stat-row .stat-val-green {
  color: #111827;
  font-weight: 800;
}

/* Order List Area */
.cfms-order-body {
  background: #f8f9fa;
  border-radius: 20px 20px 0 0;
  padding: 14px 12px 30px 12px;
  min-height: calc(100vh - 280px);
}

.cfms-order-item-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cfms-order-thumb-wrap {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
}

.cfms-order-thumb-wrap img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.cfms-order-info-wrap {
  flex: 1;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cfms-order-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cfms-order-item-qty {
  font-size: 11px;
  color: #888888;
  margin-top: 4px;
}

.cfms-order-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.cfms-order-item-reward {
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: #111827;
}

.cfms-order-plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #111827;
  color: #ffffff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: opacity 0.15s;
}

.cfms-order-plus-btn:active {
  opacity: 0.85;
}

/* Prompt Popup (Confirmation) matching User HTML */
.cfms-popup-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.prompt_pop_page {
  width: 290px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 18px 18px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.prompt_pop_top {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
}

.prompt_pop_taps {
  font-size: 13.5px;
  color: #444444;
  line-height: 1.4;
  margin-bottom: 20px;
  padding: 0 4px;
}

.prompt_pop_bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.prompt_cancel_btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  background: #f1f2f5;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
}

.prompt_confirm_btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  background: #111827;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

/* Order Detail View */
.cfms-detail-page {
  min-height: 100vh;
  background-color: #ffffff;
  box-sizing: border-box;
  padding-bottom: 80px;
}

.cfms-detail-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  color: #111111;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}

.cfms-detail-header .back-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cfms-detail-header .back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #111111;
}

.cfms-detail-hero-box {
  width: 100%;
  position: relative;
  background: #fdfdfd;
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.cfms-detail-hero-img {
  width: 85%;
  max-height: 240px;
  object-fit: contain;
}

.cfms-detail-body {
  padding: 16px;
}

.cfms-detail-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
  margin-bottom: 10px;
}

.cfms-detail-gains-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cfms-detail-reward-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #e02020;
}

.cfms-detail-sold-text {
  font-size: 13px;
  color: #888888;
}

/* Activity Box */
.cfms-detail-activity-box {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.cfms-detail-activity-head {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.cfms-detail-activity-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #222222;
}

.cfms-detail-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.cfms-detail-activity-user {
  width: 70px;
  font-weight: 600;
}

.cfms-detail-activity-count {
  flex: 1;
  color: #444444;
}

.cfms-detail-activity-date {
  color: #888888;
  font-size: 12px;
}

/* Description Text */
.cfms-detail-desc {
  font-size: 13px;
  color: #333333;
  line-height: 1.6;
}

/* Bottom Quick Order Button */
.cfms-quick-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 10px 16px 20px 16px;
  border-top: 1px solid #f0f0f0;
  max-width: 480px;
  margin: 0 auto;
}

.cfms-quick-buy-btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cfms-quick-buy-btn:active {
  opacity: 0.85;
}

/* Processing Progress Overlay */
.cfms-processing-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cfms-processing-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.cfms-processing-bar-wrap {
  width: 280px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
}

.cfms-processing-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #111827, #374151);
  border-radius: 8px;
  transition: width 0.1s linear;
}

/* Validated Modal */
.cfms-success-modal {
  width: 290px;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px 20px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cfms-success-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 14px;
}

.cfms-success-text {
  font-size: 14px;
  color: #333333;
  line-height: 1.45;
  margin-bottom: 22px;
  padding: 0 6px;
}

.cfms-success-btn {
  width: 130px;
  height: 38px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* 3D Calendar Icon Upgrade */
.cfms-order-cal-icon {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  margin-top: -28px !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
}

/* Bottom-to-top activity marquee */
.cfms-activity-marquee-viewport {
  height: 112px;
  overflow: hidden;
  position: relative;
}
.cfms-activity-marquee-track {
  display: flex;
  flex-direction: column;
  animation: cfmsActivityMarqueeUp 12s linear infinite;
}
@keyframes cfmsActivityMarqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
