/* ═══════════════════════════════════════════════════════════════
   BPoint Payments for WordPress — Stylesheet v2.1
   Covers: [bpoint_payment] and [bpoint_directdebit] shortcodes
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── CSS Variables (scoped to both wrappers) ── */
.cbp-wrap {
  --cbp-navy:       #f5f5f7;
  --cbp-navy-card:  #e8e8ec;
  --cbp-navy-input: #f5f5f7;
  --cbp-navy-dark:  #dcdce0;
  --cbp-teal:       #D23239;
  --cbp-teal-dark:  #b82a30;
  --cbp-teal-glow:  rgba(210,50,57,0.12);
  --cbp-teal-glow2: rgba(210,50,57,0.06);
  --cbp-slate:      #555555;
  --cbp-ash:        #333333;
  --cbp-white:      #1a1a1a;
  --cbp-border:     rgba(0,0,0,0.1);
  --cbp-danger:     #d93025;
  --cbp-danger-bg:  rgba(217,48,37,0.06);
  --cbp-success:    #1e8e5f;
  --cbp-radius:     10px;
  --cbp-font:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --cbp-font-head:  'Sora', var(--cbp-font);
  --cbp-shadow:     0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ── Wrapper card ── */
.cbp-wrap {
  font-family: var(--cbp-font);
  max-width: 560px;
  margin: 0 auto 48px;
  background: var(--cbp-navy-card);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: var(--cbp-shadow);
  overflow: hidden;
  color: var(--cbp-white);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Step indicator ── */
.cbp-steps {
  display: flex;
  background: linear-gradient(to bottom, #dddde1, var(--cbp-navy-card));
  padding: 18px 32px 0;
  border-bottom: 1px solid var(--cbp-border);
}
.cbp-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-bottom: 14px;
  cursor: default;
}
.cbp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px; left: 55%;
  width: 90%; height: 1px;
  background: rgba(0,0,0,0.08);
  transition: background 0.3s;
}
.cbp-step.done:not(:last-child)::after { background: var(--cbp-teal); }
.cbp-step-dot {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  border: 1.5px solid rgba(0,0,0,0.12);
  font-size: 10px; font-weight: 700;
  color: var(--cbp-slate);
  transition: all 0.25s;
  position: relative; z-index: 1;
}
.cbp-step.active .cbp-step-dot,
.cbp-step.done   .cbp-step-dot {
  background: var(--cbp-teal);
  border-color: var(--cbp-teal);
  color: #ffffff;
}
.cbp-step-lbl {
  display: block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cbp-slate);
  margin-top: 5px;
}
.cbp-step.active .cbp-step-lbl { color: var(--cbp-teal); }

/* ── Section panels ── */
.cbp-section { display: none; padding: 26px 32px; }
.cbp-section.active {
  display: block;
  animation: cbpFadeUp 0.3s ease;
}
@keyframes cbpFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cbp-section-sub {
  font-size: 13px;
  color: var(--cbp-slate);
  margin: -4px 0 18px;
  line-height: 1.55;
}

/* ── Group labels ── */
.cbp-group-label {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cbp-teal);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 7px;
}
.cbp-group-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(210,50,57,0.15);
}
.cbp-divider {
  height: 1px;
  background: var(--cbp-border);
  margin: 14px 0 18px;
}

/* ── Fields ── */
.cbp-field {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 12px;
}
.cbp-field-full { width: 100%; }
.cbp-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cbp-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.cbp-field label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--cbp-slate);
}
.cbp-req     { color: var(--cbp-teal); }
.cbp-optional { color: rgba(0,0,0,0.35); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 9px; }

.cbp-field input,
.cbp-field select,
.cbp-field textarea {
  background: var(--cbp-navy-input);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 10px 13px;
  font-family: var(--cbp-font);
  font-size: 14px;
  color: var(--cbp-white);
  outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box;
}
.cbp-field input::placeholder,
.cbp-field textarea::placeholder { color: rgba(0,0,0,0.3); }
.cbp-field input:focus,
.cbp-field select:focus,
.cbp-field textarea:focus {
  border-color: var(--cbp-teal);
  box-shadow: 0 0 0 3px rgba(210,50,57,0.1);
}
.cbp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237590a6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.cbp-field select option { background: #ffffff; color: #1a1a1a; }

/* Amount with $ prefix */
.cbp-amount-wrap {
  display: flex; align-items: center;
  background: var(--cbp-navy-input);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cbp-amount-wrap:focus-within {
  border-color: var(--cbp-teal);
  box-shadow: 0 0 0 3px rgba(210,50,57,0.1);
}
.cbp-currency-prefix {
  padding: 0 4px 0 13px;
  font-size: 16px; font-weight: 700;
  color: var(--cbp-teal);
}
.cbp-amount-wrap input {
  background: transparent; border: none; flex: 1;
  padding: 10px 13px 10px 4px;
}
.cbp-amount-wrap input:focus { box-shadow: none; }

/* ── Payment method tabs ── */
.cbp-pm-tabs {
  display: flex; gap: 0;
  background: rgba(0,0,0,0.08);
  border-radius: 10px; padding: 4px;
  margin-bottom: 18px;
}
.cbp-wrap .cbp-pm-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--cbp-font); font-size: 13px; font-weight: 600;
  color: var(--cbp-ash); background: transparent;
  transition: all 0.2s;
}
.cbp-wrap .cbp-pm-tab:hover:not(.active) { color: var(--cbp-white); background: rgba(0,0,0,0.04); }
.cbp-wrap .cbp-pm-tab.active {
  background: #ffffff;
  color: var(--cbp-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.1);
}
.cbp-wrap .cbp-pm-tab.active svg { color: var(--cbp-teal); }
.cbp-wrap .cbp-pm-tab svg { color: var(--cbp-ash); transition: color 0.2s; flex-shrink: 0; }

/* ── BSB split input ── */
.cbp-bsb-wrap {
  display: flex; align-items: stretch;
  background: var(--cbp-navy-input);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cbp-bsb-wrap:focus-within {
  border-color: var(--cbp-teal);
  box-shadow: 0 0 0 3px rgba(210,50,57,0.1);
}
.cbp-bsb-wrap input {
  flex: 1; text-align: center;
  background: transparent; border: none; border-radius: 0;
  padding: 10px 13px;
  font-family: var(--cbp-font); font-size: 14px;
  color: var(--cbp-white);
  outline: none; width: 100%; box-sizing: border-box;
}
.cbp-bsb-wrap input::placeholder { color: rgba(0,0,0,0.3); }
.cbp-bsb-wrap input:focus { box-shadow: none; }
.cbp-bsb-sep {
  background: transparent;
  padding: 10px 7px;
  color: var(--cbp-ash); font-size: 16px; font-weight: 700;
  flex-shrink: 0; line-height: 1.4;
  display: flex; align-items: center;
}

/* ── Surcharge info box ── */
.cbp-surcharge-info {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 8px; padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12.5px; color: var(--cbp-ash); line-height: 1.5;
}
.cbp-surcharge-info > svg { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.cbp-surcharge-info strong { font-size: 13px; color: var(--cbp-white); display: block; margin-bottom: 6px; }
.cbp-surcharge-rates {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px;
  font-size: 12px; color: var(--cbp-ash); margin-bottom: 6px;
}
.cbp-surcharge-note { font-size: 11.5px; color: var(--cbp-slate); font-style: italic; }
.cbp-surcharge-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.15);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
  font-size: 13px; color: var(--cbp-ash);
}
.cbp-surcharge-row strong { color: var(--cbp-white); font-size: 13px; }

/* ── Info callout ── */
.cbp-info-callout {
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(210,50,57,0.05);
  border: 1px solid rgba(210,50,57,0.15);
  border-radius: 8px; padding: 11px 13px;
  margin-bottom: 16px;
  font-size: 12.5px; color: var(--cbp-slate); line-height: 1.55;
}
.cbp-info-callout svg { color: var(--cbp-teal); flex-shrink: 0; margin-top: 1px; }

/* ── Payment summary pill ── */
.cbp-summary-pill {
  background: rgba(30,142,95,0.08);
  border: 1px solid rgba(30,142,95,0.20);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.cbp-summary-left { display: flex; align-items: center; gap: 10px; }
.cbp-summary-left svg { color: var(--cbp-success); flex-shrink: 0; }
.cbp-summary-label { font-size: 13px; font-weight: 700; color: var(--cbp-white); margin-bottom: 2px; }
.cbp-summary-ref   { font-size: 11px; color: var(--cbp-slate); }
.cbp-summary-amount {
  font-family: var(--cbp-font-head);
  font-size: 22px; font-weight: 700;
  color: var(--cbp-success); letter-spacing: -0.03em;
}

/* ── DDR summary box ── */
.cbp-ddr-summary {
  background: rgba(210,50,57,0.05);
  border: 1px solid rgba(210,50,57,0.15);
  border-radius: 10px; padding: 12px 16px 4px;
  margin-bottom: 14px;
}
.cbp-ddr-summary-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--cbp-teal); margin-bottom: 8px;
}

/* ── DDR authority text ── */
.cbp-ddr-authority {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px; padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 12px; color: var(--cbp-slate); line-height: 1.7;
}
.cbp-ddr-authority strong { color: var(--cbp-ash); }

/* ── Checkbox row ── */
.cbp-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; cursor: pointer;
}
.cbp-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 2px; accent-color: var(--cbp-teal); cursor: pointer;
}
.cbp-checkbox-row span { font-size: 12.5px; color: var(--cbp-slate); line-height: 1.55; }
.cbp-checkbox-row a { color: var(--cbp-teal); text-decoration: none; }
.cbp-checkbox-row a:hover { text-decoration: underline; }

/* ── Card preview visual ── */
.cbp-card-visual {
  background: linear-gradient(135deg, #3a3f44 0%, #32373c 60%, #282c30 100%);
  border-radius: 14px; padding: 18px 20px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(0,0,0,0.1);
  position: relative; overflow: hidden;
}
.cbp-card-visual::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(210,50,57,0.06);
}
.cbp-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.cbp-card-chip {
  width: 30px; height: 22px;
  background: linear-gradient(135deg, #d4a843 0%, #f2d06b 100%);
  border-radius: 4px;
}
.cbp-card-brand { opacity: 0.9; }
.cbp-card-error {
  background: var(--cbp-danger-bg); border: 1px solid rgba(224,82,82,0.3);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 13px; color: #c0392b; font-weight: 600;
}
.cbp-card-num-preview {
  font-size: 16px; color: rgba(255,255,255,0.65);
  letter-spacing: 4px; margin-bottom: 10px;
  font-weight: 300; position: relative; z-index: 1;
}
.cbp-card-bottom {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Alerts ── */
.cbp-alert {
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; line-height: 1.5;
  display: none; margin: 4px 0 8px;
  align-items: center; gap: 8px;
}
.cbp-alert-error {
  background: var(--cbp-danger-bg);
  border: 1px solid rgba(224,82,82,0.3);
  color: #c0392b;
}

/* ── Buttons ── */
.cbp-wrap .cbp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  border: none; border-radius: var(--cbp-radius);
  font-family: var(--cbp-font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  box-sizing: border-box; text-align: center;
}
.cbp-wrap .cbp-btn-primary { background: var(--cbp-teal); color: #ffffff; margin-top: 8px; }
.cbp-wrap .cbp-btn-primary:hover:not(:disabled) {
  background: #e04048; color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(210,50,57,0.28);
}
.cbp-wrap .cbp-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.cbp-wrap .cbp-btn-ghost {
  background: transparent; color: var(--cbp-white);
  border: 1.5px solid rgba(0,0,0,0.45);
  margin-top: 10px; font-size: 13px;
}
.cbp-wrap .cbp-btn-ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.6); color: var(--cbp-white); }
.cbp-wrap .cbp-btn-sm { width: auto; padding: 9px 24px; margin: 0 auto; display: flex; }
.cbp-wrap #cbp-inv-add { background: var(--cbp-ash); color: #fff; border-color: var(--cbp-ash); }
.cbp-wrap #cbp-inv-add:hover { background: var(--cbp-white); border-color: var(--cbp-white); color: #fff; }

/* Loading spinner */
.cbp-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--cbp-teal);
  border-radius: 50%;
  animation: cbpSpin 0.6s linear infinite;
}
@keyframes cbpSpin { to { transform: rotate(360deg); } }

/* ── Success screen ── */
.cbp-success { text-align: center; padding: 8px 0 4px; }
.cbp-success-icon {
  width: 68px; height: 68px;
  background: rgba(45,204,142,0.1);
  border: 2px solid var(--cbp-success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--cbp-success);
  margin: 0 auto 18px;
  animation: cbpPopIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cbpPopIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cbp-success h3 {
  font-family: var(--cbp-font-head);
  font-size: 20px; font-weight: 700;
  color: var(--cbp-white); margin: 0 0 8px;
}
.cbp-success > p { color: var(--cbp-slate); font-size: 13px; line-height: 1.65; margin: 0 0 18px; }
.cbp-success > p strong { color: var(--cbp-ash); }

/* ── Receipt rows ── */
.cbp-receipt {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--cbp-radius);
  padding: 4px 18px; margin: 0 0 14px;
  text-align: left;
}
.cbp-receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cbp-receipt-row:last-child { border-bottom: none; }
.cbp-receipt-row > span   { color: var(--cbp-slate); }
.cbp-receipt-row > strong { color: var(--cbp-white); font-weight: 600; }
.cbp-approved { color: var(--cbp-success) !important; }

/* ── Footer badge ── */
.cbp-footer-badge {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
  padding: 13px 24px 15px;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--cbp-border);
  font-size: 10px; /*color: rgba(255,255,255,0.25)*/;
  letter-spacing: 0.03em;
}
.cbp-footer-badge svg { color: var(--cbp-teal); opacity: 0.7; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 540px) {
  .cbp-section { padding: 20px 20px; }
  .cbp-steps   { padding: 14px 16px 0; }
  .cbp-row-2,
  .cbp-row-3   { grid-template-columns: 1fr; }
  .cbp-card-num-preview { font-size: 13px; letter-spacing: 3px; }
  .cbp-pm-tab  { font-size: 12px; padding: 8px 8px; }
  .cbp-summary-amount { font-size: 18px; }
}

/* ── Invoice multi-row table ── */
.cbp-invoice-table {
  background: var(--cbp-navy-input);
  border: 1px solid var(--cbp-border);
  border-radius: var(--cbp-radius);
  overflow: hidden;
}
.cbp-invoice-header {
  display: grid;
  grid-template-columns: 1fr 130px 32px;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cbp-ash);
  border-bottom: 1px solid var(--cbp-border);
}
.cbp-invoice-row {
  display: grid;
  grid-template-columns: 1fr 130px 32px;
  gap: 8px;
  padding: 6px 12px;
  align-items: center;
  border-bottom: 1px solid var(--cbp-border);
}
.cbp-invoice-row:last-child { border-bottom: none; }
.cbp-invoice-row input[type="text"],
.cbp-invoice-row input[type="number"] {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  color: var(--cbp-white);
  font-family: var(--cbp-font);
  font-size: 14px;
  padding: 7px 10px;
  width: 100%;
  box-sizing: border-box;
}
.cbp-invoice-row input::placeholder { color: rgba(0,0,0,0.3); }
.cbp-invoice-row input[type="number"]::-webkit-inner-spin-button,
.cbp-invoice-row input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
.cbp-invoice-row input[type="number"] { -moz-appearance: textbox; }
.cbp-invoice-row input:focus {
  outline: none;
  border-color: var(--cbp-teal);
  box-shadow: 0 0 0 2px var(--cbp-teal-glow);
}
.cbp-inv-amt-wrap {
  position: relative;
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.cbp-inv-amt-wrap:focus-within {
  border-color: transparent;
  box-shadow: none;
}
.cbp-inv-amt-wrap .cbp-currency-prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cbp-ash);
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  pointer-events: none;
}
.cbp-inv-amt-wrap input {
  padding: 7px 10px 7px 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  border-radius: 6px !important;
  flex: none;
}
.cbp-wrap .cbp-inv-remove {
  background: var(--cbp-ash);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cbp-wrap .cbp-inv-remove:hover {
  background: var(--cbp-danger-bg);
  color: var(--cbp-danger);
}
.cbp-invoice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--cbp-border);
}
.cbp-invoice-footer .cbp-btn {
  font-size: 13px;
  padding: 4px 12px;
}
.cbp-invoice-total {
  font-size: 14px;
  color: var(--cbp-ash);
  display: flex;
  gap: 8px;
  align-items: center;
}
.cbp-invoice-total strong {
  font-size: 16px;
  color: var(--cbp-white);
}
@media (max-width: 540px) {
  .cbp-invoice-header { grid-template-columns: 1fr 100px 28px; font-size: 10px; }
  .cbp-invoice-row    { grid-template-columns: 1fr 100px 28px; }
}

/* ── Receipt actions ── */
.cbp-receipt-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}

/* ── Print styles ── */
@media print {
  /* Hide everything except the receipt */
  body * { visibility: hidden !important; }

  .cbp-wrap,
  .cbp-wrap .cbp-section.active,
  .cbp-wrap .cbp-success,
  .cbp-wrap .cbp-receipt,
  .cbp-wrap .cbp-receipt *,
  .cbp-wrap .cbp-success > *:not(.cbp-receipt-actions) {
    visibility: visible !important;
  }

  /* Position the receipt at the top of the page */
  .cbp-wrap {
    position: absolute !important; top: 0; left: 0;
    width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 20px !important;
    box-shadow: none !important; border: none !important;
    background: #fff !important; border-radius: 0 !important;
  }

  /* Hide non-receipt elements */
  .cbp-steps,
  .cbp-footer-badge,
  .cbp-receipt-actions,
  .cbp-card-visual,
  .cbp-surcharge-info,
  .cbp-surcharge-row,
  .cbp-summary-pill,
  .cbp-section:not(.active) {
    display: none !important;
  }

  /* Clean receipt styling for print */
  .cbp-success-icon { color: #1e8e5f !important; border-color: #1e8e5f !important; }
  .cbp-success h3 { color: #000 !important; }
  .cbp-success p { color: #333 !important; }
  .cbp-receipt { border: 1px solid #ddd !important; background: #fff !important; }
  .cbp-receipt-row { border-color: #eee !important; }
  .cbp-receipt-row span { color: #666 !important; }
  .cbp-receipt-row strong { color: #000 !important; }
  .cbp-approved { color: #1e8e5f !important; }
}
