/* Buy Course (Checkout) page styles
   Designed to match the provided template (layout + feel) while using OpenPlus brand colors.
*/

.bc-wrap{
  background:#e9eaec;
  padding:18px 0 40px;
}

.bc-title{
  width:min(1200px, calc(100% - 48px));
  margin:0 auto 10px;
  font-size:44px;
  line-height:1.1;
  letter-spacing:.2px;
}

.bc-steps{
  width:min(1200px, calc(100% - 48px));
  margin:10px auto 18px;
  background:#f7f7f7;
  border-radius:30px;
  padding:6px;
  display:flex;
  gap:6px;
  align-items:center;
  border:1px solid rgba(0,0,0,.07);
}

.bc-step{
  flex:1;
  border:0;
  background:transparent;
  padding:10px 10px;
  border-radius:24px;
  font-weight:600;
  cursor:pointer;
  color:#444;
}

.bc-step.active{
  background:#e6e6e6;
  color:#000;
}

.bc-grid{
  width:min(1200px, calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:18px;
  align-items:start;
}

.bc-panel{
  background:transparent;
}

.bc-left{
  padding-top:2px;
}

.bc-h2{
  font-size:26px;
  margin:14px 0 14px;
}

.bc-radio-row{
  display:flex;
  gap:50px;
  align-items:center;
  margin:10px 0 14px;
}

.bc-radio{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:600;
}

.bc-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  margin-bottom:14px;
}

.bc-row .bc-field:nth-child(3){
  grid-column: span 1;
}

.bc-field label{
  display:block;
  font-weight:700;
  margin:0 0 6px;
}

.bc-field input,
.bc-field select,
.bc-field textarea{
  width:100%;
  height:38px;
  padding:8px 10px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  outline:none;
}

.bc-field textarea{
  height:auto;
  resize:vertical;
}

.bc-hint{
  margin-top:6px;
  font-size:12px;
  color:#5b5b5b;
}

.bc-divider{
  height:1px;
  background:rgba(0,0,0,.12);
  margin:18px 0;
}

.bc-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:12px 0 18px;
}

.bc-check a{ color:#7b0f2a; text-decoration:underline; }

.bc-primary{
  width:100%;
  border:0;
  cursor:pointer;
  padding:14px 14px;
  background:#000;
  color:#fff;
  font-weight:800;
  border-radius:0;
}

.bc-secondary{
  display:inline-block;
  border:1px solid rgba(0,0,0,.2);
  background:#fff;
  padding:12px 14px;
  cursor:pointer;
  font-weight:700;
  color:#222;
  text-decoration:none;
}

.bc-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
}

.bc-cancel{ margin-top:10px; }
.bc-cancel a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;border-radius:10px;background:linear-gradient(180deg,#a10d0d 0%,#890505 100%);color:#fff;text-decoration:none;font-weight:800;box-shadow:0 8px 18px rgba(137,5,5,.16);}
.bc-cancel a:hover{filter:brightness(1.03);}

.bc-note{
  color:#3b3b3b;
  line-height:1.5;
}

.bc-pay-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:14px;
}

.bc-pay-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  padding:14px;
}

.bc-pay-head{
  font-weight:900;
  margin-bottom:8px;
}

.bc-pay-icons{
  font-size:12px;
  opacity:.75;
  margin-bottom:10px;
}

.bc-pay-icons.small{ margin-top:8px; }

.bc-bank{
  line-height:1.7;
  font-size:14px;
}

.bc-mini{
  margin-top:10px;
  font-size:12px;
  color:#555;
  line-height:1.45;
}

.bc-summary-block,
.bc-confirm{
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  padding:14px;
}

.bc-right .bc-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.16);
}

.bc-box-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  font-weight:900;
  border-bottom:1px solid rgba(0,0,0,.12);
}

.bc-edit{
  font-weight:700;
  color:#c2183e;
  text-decoration:none;
}

.bc-items{
  padding:10px 14px;
}

.bc-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
  gap:10px;
}

.bc-item:last-child{ border-bottom:0; }

.bc-item-title{
  font-weight:700;
  font-size:14px;
}

.bc-item-price{ font-weight:800; }

.bc-totals{
  padding:10px 14px 14px;
  border-top:1px solid rgba(0,0,0,.12);
}

.bc-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 0;
}

.bc-muted{ opacity:.7; }

.bc-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0 6px;
}

.bc-total strong{ color:#c2183e; font-size:20px; }

@media (max-width: 980px){
  .bc-grid{ grid-template-columns: 1fr; }
  .bc-pay-grid{ grid-template-columns: 1fr; }
  .bc-title{ font-size:34px; }
  .bc-row{ grid-template-columns: 1fr; }
}


/* Step D checklist: payment method options (safe addition) */
.bc-pay-methods{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 14px;
}
.bc-pay-opt{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;
  font-weight:800;
}
.bc-pay-opt input{ accent-color:#890505; }

.bc-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
.bc-model-card{display:block;border:1px solid rgba(0,0,0,.12);border-radius:16px;padding:14px;background:#fff;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.04);}
.bc-model-card input{margin-right:8px;}
.bc-model-head{font-weight:900;margin-bottom:6px;display:flex;justify-content:space-between;gap:8px;align-items:center;}
.bc-model-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#f3e1e1;color:#890505;font-size:11px;font-weight:900;}
.bc-h3{margin:0 0 10px;font-size:18px;font-weight:900;}


.bc-hero{display:grid;grid-template-columns:1.25fr .95fr;gap:18px;align-items:start;margin-bottom:18px}
.bc-eyebrow{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f8e9ea;color:#890505;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.bc-hero-note{color:#5b5b5b;max-width:760px;line-height:1.7;margin-top:10px}
.bc-hero-grid{display:grid;grid-template-columns:1fr;gap:12px}
.bc-hero-card,.bc-status-card,.bc-access-rule-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;box-shadow:0 16px 38px rgba(0,0,0,.06)}
.bc-hero-card{padding:18px}.bc-hero-card strong{display:block;font-size:18px;margin-bottom:4px}.bc-hero-card span{color:#666;font-size:13px}
.bc-steps{gap:12px;flex-wrap:wrap}
.bc-step{display:flex;align-items:center;gap:12px;border-radius:16px;padding:12px 14px;min-width:200px}
.bc-step span strong{display:block;font-size:14px}.bc-step span small{display:block;color:#666;font-size:11px;margin-top:2px}
.bc-step-no{width:32px;height:32px;border-radius:999px;display:grid;place-items:center;background:#e6e6e6;color:#000;font-weight:900;flex:0 0 auto}
.bc-step.active .bc-step-no{background:#000;color:#fff}
.bc-status-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.bc-status-card{padding:16px}.bc-status-card span{display:block;font-size:12px;font-weight:800;color:#890505;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}.bc-status-card strong{font-size:16px;line-height:1.35}
.bc-order-box{position:sticky;top:16px}
.bc-side-box{margin-top:14px}
.bc-side-copy{color:#5c5c5c;line-height:1.7}
.bc-side-list{margin:0;padding-left:18px;color:#505050;line-height:1.8}
.bc-access-rule-card{padding:18px 20px;margin-bottom:14px;background:linear-gradient(135deg,#fff,#fff7f7)}
.bc-access-rule-card h3{margin:0 0 8px;font-size:22px}.bc-access-rule-card p{margin:0 0 8px;color:#555;line-height:1.65}
.bc-access-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.bc-access-pill{padding:10px 12px;border-radius:14px;background:#fff;border:1px solid rgba(0,0,0,.07);font-size:13px;font-weight:700;color:#444}
.bc-confirm-card{border-radius:18px;padding:20px;background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 16px 38px rgba(0,0,0,.06)}
@media (max-width:980px){.bc-hero,.bc-grid,.bc-status-strip,.bc-access-rule-grid{grid-template-columns:1fr}.bc-order-box{position:static}.bc-step{min-width:unset;flex:1 1 100%}}

.bc-strip{width:min(1200px,calc(100% - 48px));margin:0 auto 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bc-strip-card,.bc-side-note{background:#fff;border:1px solid rgba(0,0,0,.1);padding:14px}.bc-strip-card strong,.bc-side-title{display:block;margin-bottom:6px;font-size:15px;font-weight:900}.bc-strip-card span,.bc-side-list{color:#555;font-size:13px;line-height:1.45}.bc-side-note{margin-bottom:14px}.bc-side-list{margin:0;padding-left:18px}.bc-side-list li{margin:0 0 8px}.bc-side-list a{color:#890505;font-weight:700}@media (max-width:960px){.bc-strip{grid-template-columns:1fr}}

/* Managed checkout page intro */
.bc-managed{
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid #eadede;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fff7f7);
  box-shadow: 0 14px 28px rgba(32, 24, 24, 0.05);
}
.bc-managed-kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#fff0f0;
  color:#890505;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  margin-bottom:10px;
}
.bc-managed-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}
#opCheckoutTitle{
  margin:0 0 10px;
  color:#111827;
  font-size:clamp(1.6rem,2vw,2.25rem);
}
#opCheckoutLead{
  max-width:860px;
  color:#4b5563;
  line-height:1.8;
}
.bc-managed-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.bc-managed-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid #e3caca;
  background:#ffffff;
  color:#890505;
  text-decoration:none;
  font-weight:800;
}
.bc-managed-btn:hover{background:#fff4f4}
.bc-managed-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.bc-managed-card{
  padding:18px;
  border-radius:18px;
  border:1px solid #eadede;
  background:#fff;
}
.bc-managed-card h3{
  margin:0 0 10px;
  color:#890505;
  font-size:1.05rem;
}
.bc-managed-card div{
  color:#4b5563;
  line-height:1.75;
}
@media (max-width: 920px){
  .bc-managed-head{flex-direction:column}
  .bc-managed-actions{justify-content:flex-start}
  .bc-managed-grid{grid-template-columns:1fr}
}
