.student-commerce-portal {
  position: relative;
  z-index: 5;
  width: min(100% - 32px, 1360px);
  margin: 16px auto;
  padding: 18px 22px;
  color: #102248;
  background: linear-gradient(115deg, #f5f8ff 0%, #fff 54%, #eaf8f5 100%);
  border: 1px solid #cbdcfb;
  border-radius: 18px;
  box-shadow: 0 12px 32px #10224812;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.student-commerce-portal[hidden] { display: none; }
.student-commerce-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.student-commerce-intro { min-width: 0; }
.student-commerce-eyebrow { color: #2459cd; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.student-commerce-intro h2 { margin: 4px 0; color: #101e41; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.2; }
.student-commerce-active { margin: 0; color: #526581; font-size: 14px; font-weight: 650; }
.student-commerce-cta { flex: 0 0 auto; display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 11px; background: #2059e8; color: white !important; font-size: 16px; font-weight: 800; text-align: center; text-decoration: none !important; box-shadow: 0 7px 16px #2059e82b; }
.student-commerce-cta:hover { background: #1648c7; }
.student-commerce-orders { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce6f5; }
.student-commerce-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #17294e; }
.student-commerce-refresh { min-height: 34px; padding: 6px 12px; border: 1px solid #c9d7eb; border-radius: 8px; background: #fff; color: #23456f; font: 650 12px system-ui; cursor: pointer; }
.student-commerce-refresh:disabled { opacity: .55; cursor: wait; }
.student-commerce-message, .student-commerce-empty { margin: 9px 0 0; color: #526581; font-size: 13px; line-height: 1.5; }
.student-commerce-latest { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 9px; padding: 11px 13px; border: 1px solid #dce6f5; border-radius: 10px; background: #fff; }
.student-commerce-latest > div { display: grid; gap: 3px; min-width: 0; }
.student-commerce-latest strong, .student-commerce-history-row strong { color: #17294e; font-size: 13px; }
.student-commerce-latest span, .student-commerce-history-row span { color: #526581; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.student-commerce-latest .student-commerce-status, .student-commerce-history-row .student-commerce-status { color: #155e54; font-weight: 750; }
.student-commerce-latest .student-commerce-status.is-cancelled, .student-commerce-history-row .student-commerce-status.is-cancelled { color: #a12626; }
.student-commerce-details { flex: 0 0 auto; color: #1454cd !important; font-size: 12px; font-weight: 750; text-decoration: underline; }
.student-commerce-cancel { flex: 0 0 auto; min-height: 34px; padding: 6px 11px; border: 1px solid #e2a5a5; border-radius: 8px; background: #fff; color: #a12626; font: 700 12px system-ui; cursor: pointer; }
.student-commerce-cancel:hover { background: #fff4f4; }
.student-commerce-history { margin-top: 8px; }
.student-commerce-history summary { width: fit-content; color: #2459cd; font-size: 13px; font-weight: 750; cursor: pointer; }
.student-commerce-history-row { display: grid; gap: 3px; margin-top: 7px; padding: 10px 12px; border: 1px solid #e1e8f3; border-radius: 9px; background: #fff; }
@media (max-width: 640px) {
  .student-commerce-portal { width: calc(100% - 20px); margin: 10px auto; padding: 14px; border-radius: 14px; }
  .student-commerce-head { align-items: stretch; flex-direction: column; gap: 11px; }
  .student-commerce-cta { min-height: 48px; width: 100%; }
  .student-commerce-latest { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.student-commerce-steel-progress { display: grid; gap: 6px; max-width: 520px; margin-top: 10px; padding: 10px 12px; border: 1px solid #dce6f5; border-radius: 10px; background: #fff; color: #17294e; }
.student-commerce-steel-progress strong { font-size: 13px; }
.student-commerce-steel-progress > span { color: #526581; font-size: 12px; }
.student-commerce-steel-progress-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #e9eef7; }
.student-commerce-steel-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2059e8, #0ca777); transition: width .2s ease; }
