
/* SabahBusiness Payment Experience 1.0.0-RC1
   Presentation only. No ListingPro engine/state changes. */
body.sbpe-checkout {
  background:#f6f8fb !important;
  color:#152238;
}
body.sbpe-checkout header,
body.sbpe-checkout .lp-header,
body.sbpe-checkout .header-container,
body.sbpe-checkout footer,
body.sbpe-checkout .footer-upper-bar,
body.sbpe-checkout .footer-bottom-bar {
  display:none !important;
}
body.sbpe-checkout .page-container-four {
  width:min(1240px, calc(100% - 40px)) !important;
  max-width:1240px !important;
  margin:28px auto 64px !important;
  padding:0 !important;
  float:none !important;
}
body.sbpe-checkout .page-container-four > .col-md-10,
body.sbpe-checkout .page-container-four > .col-md-offset-1 {
  width:100% !important;
  margin-left:0 !important;
  padding:0 !important;
  float:none !important;
}
.sbpe-brandbar {
  background:#0B1F3A;
  border-bottom:3px solid #C79A2B;
  box-shadow:0 8px 30px rgba(11,31,58,.14);
}
.sbpe-brandbar-inner {
  width:min(1240px, calc(100% - 40px));
  min-height:92px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:22px;
}
.sbpe-brandbar img {width:210px;max-height:62px;object-fit:contain;object-position:left center}
.sbpe-brand-copy {color:#fff;border-left:1px solid rgba(255,255,255,.2);padding-left:20px}
.sbpe-brand-copy strong {display:block;font-size:18px;letter-spacing:.2px}
.sbpe-brand-copy span {display:block;font-size:12px;color:#d7dfeb;margin-top:4px}
.sbpe-steps {margin-left:auto;display:flex;align-items:center;gap:8px;color:#cbd5e1;font-size:12px}
.sbpe-steps span {display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:999px;white-space:nowrap}
.sbpe-steps b {display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff}
.sbpe-steps .is-active {background:rgba(199,154,43,.14);color:#fff}
.sbpe-steps .is-active b {background:#C79A2B;color:#0B1F3A}

/* Native checkout phases 1/2 */
body.sbpe-checkout:not(.sbpe-wire) #listings_checkout_form {
  background:#fff;
  border:1px solid #e4e9f0;
  border-radius:18px;
  box-shadow:0 18px 55px rgba(11,31,58,.08);
  overflow:hidden;
  padding:28px !important;
}
body.sbpe-checkout:not(.sbpe-wire) #listings_checkout_form .col-md-8,
body.sbpe-checkout:not(.sbpe-wire) #listings_checkout_form .col-md-4 {
  padding-left:14px !important;padding-right:14px !important;
}
body.sbpe-checkout .lp-checkout-coupon-outer,
body.sbpe-checkout .lp-col-outer {
  border-radius:14px;
}
body.sbpe-checkout .coupon-apply-bt,
body.sbpe-checkout .lp_payment_step_next {
  border-radius:9px !important;
}
body.sbpe-checkout .lp_payment_step_next {
  background:#0B1F3A !important;
  border-color:#0B1F3A !important;
  min-height:48px;
  font-weight:700;
  letter-spacing:.2px;
}
body.sbpe-checkout .lp_payment_step_next:hover {background:#C79A2B !important;color:#0B1F3A !important}

/* Wire receipt / final checkout */
body.sbpe-wire .checkout-invoice-area {
  background:#fff !important;
  border:1px solid #e3e9f0 !important;
  border-radius:18px !important;
  box-shadow:0 18px 55px rgba(11,31,58,.09) !important;
  overflow:hidden !important;
  padding:0 28px 28px !important;
}
body.sbpe-wire .checkout-invoice-area .top-heading-area {
  margin:0 -28px 28px !important;
  padding:20px 28px !important;
  background:linear-gradient(135deg,#0B1F3A,#12345d) !important;
  border-bottom:4px solid #C79A2B !important;
  color:#fff !important;
}
body.sbpe-wire .top-heading-area img {max-height:54px !important;width:auto !important;max-width:210px !important;object-fit:contain}
body.sbpe-wire .top-heading-area p {color:#fff !important;font-size:20px !important;font-weight:800 !important;text-align:center;margin:12px 0 0 !important}
body.sbpe-wire .invoice-area {font-size:14px !important}
body.sbpe-wire .invoice-area > .row:first-child {
  background:#f8fafc;
  border:1px solid #e7ebf0;
  border-radius:12px;
  padding:16px 8px;
  margin-bottom:18px;
}
body.sbpe-wire .invoice-area h4 {color:#0B1F3A !important;font-size:13px !important;text-transform:uppercase;letter-spacing:.6px}
body.sbpe-wire .heading-area {
  background:#eef3f8 !important;
  border:0 !important;
  border-radius:10px 10px 0 0;
  margin-top:8px !important;
  padding:10px 8px !important;
}
body.sbpe-wire .heading-area p {margin:0 !important;color:#0B1F3A !important}
body.sbpe-wire .invoices-company-details {
  display:flex !important;
  align-items:flex-start !important;
  gap:24px !important;
  border:1px solid #e7ebf0 !important;
  border-top:0 !important;
  border-radius:0 0 12px 12px !important;
  padding:22px 8px !important;
}
body.sbpe-wire .invoices-company-details > .col-md-6:first-child {width:31% !important;float:none !important}
body.sbpe-wire .invoices-company-details > .col-md-6:nth-child(2) {width:69% !important;float:none !important}
body.sbpe-wire .invoices-company-details > .col-md-2 {display:none !important}
body.sbpe-wire .invoices-company-details > .col-md-6:nth-child(2) > p {
  margin:0 !important;
  width:100% !important;
}
body.sbpe-wire .invoices-company-details > .col-md-6:nth-child(2) > p > * {
  max-width:none !important;
}
body.sbpe-wire .invoices-company-details [style*="max-width"],
body.sbpe-wire .invoices-company-details [style*="width"] {
  max-width:100% !important;
}
body.sbpe-wire .invoice-price-details {
  margin-top:20px !important;
  display:flex;
  justify-content:flex-end;
}
body.sbpe-wire.sbpe-receipt-final .sbpe-final-item-details {
  margin:16px 0 20px;
  padding:14px 18px;
  border:1px solid #e4e9ef;
  border-radius:10px;
  background:#f8fafc;
  color:#0B1F3A;
}
body.sbpe-wire.sbpe-receipt-final .sbpe-final-item-details > div {
  display:flex;
  gap:12px;
  padding:4px 0;
  overflow-wrap:anywhere;
}
body.sbpe-wire.sbpe-receipt-final .sbpe-final-item-details strong {min-width:110px}
@media(max-width:600px){body.sbpe-wire.sbpe-receipt-final .sbpe-final-item-details > div{flex-direction:column;gap:2px}}
body.sbpe-wire .invoice-price-details > .col-md-6:first-child {display:none !important}
body.sbpe-wire .invoice-price-details > .col-md-6:last-child {
  width:min(460px,100%) !important;
  float:none !important;
  background:#f8fafc;
  border:1px solid #e4e9ef;
  border-radius:12px;
  padding:14px 18px !important;
}
body.sbpe-wire .invoice-price-details ul {border-bottom:1px solid #e6ebf0 !important;padding:9px 0 !important;margin:0 !important}
body.sbpe-wire .invoice-price-details ul:last-child {border-bottom:0 !important;font-weight:800;color:#0B1F3A}
body.sbpe-wire .thankyou-text {
  margin-top:22px !important;
  padding:16px !important;
  background:#fffaf0 !important;
  border:1px solid #ecd79e !important;
  border-radius:10px !important;
}
body.sbpe-wire .checkout-bottom-area {
  margin-top:18px !important;
  padding:16px 18px !important;
  background:#f8fafc !important;
  border:1px solid #e5eaf0 !important;
  border-radius:10px !important;
}
body.sbpe-wire .checkout-dashboard-bt {
  display:inline-flex !important;
  align-items:center;justify-content:center;
  min-height:46px;
  padding:0 22px !important;
  margin:22px 0 0 !important;
  border-radius:9px !important;
  background:#0B1F3A !important;
  color:#fff !important;
  border:0 !important;
  font-weight:700 !important;
  text-transform:none !important;
}
body.sbpe-wire .checkout-dashboard-bt:hover {background:#C79A2B !important;color:#0B1F3A !important}

/* Old RC6 uploader is presentation-conflicting; hide on custom wire screen only.
   Backend verification plugin remains untouched. */
body.sbpe-wire .sbpv-box {display:none !important}

/* Cancel action injected beside native Continue, without replacing native submit logic */
.sbpe-actionbar {
  display:flex;justify-content:flex-end;gap:12px;clear:both;
  margin-top:18px;padding-top:18px;border-top:1px solid #e7ebf0;
}
.sbpe-cancel-btn,.sbpe-btn {
  min-height:46px;border-radius:9px;padding:0 20px;border:1px solid #d7dee8;
  font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
}
.sbpe-cancel-btn,.sbpe-btn-light {background:#fff;color:#0B1F3A}
.sbpe-btn-primary {background:#0B1F3A;color:#fff;border-color:#0B1F3A}
.sbpe-btn-danger {background:#fff5f5;color:#a61b1b;border-color:#efcaca}
.sbpe-cancel-modal[hidden] {display:none !important}
.sbpe-cancel-modal {position:fixed;inset:0;z-index:999999;background:rgba(6,20,38,.68);display:grid;place-items:center;padding:20px}
.sbpe-cancel-card {width:min(520px,100%);background:#fff;border-radius:18px;padding:30px;box-shadow:0 30px 90px rgba(0,0,0,.25);text-align:center;position:relative}
.sbpe-modal-x {position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;color:#64748b;cursor:pointer}
.sbpe-cancel-icon {width:54px;height:54px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#fff3d6;color:#9a6a00;font-size:28px;font-weight:800}
.sbpe-cancel-card h2,.sbpe-cancel-card h3 {color:#0B1F3A;margin:8px 0 10px}
.sbpe-cancel-card p {color:#596579;line-height:1.65}
.sbpe-modal-actions {display:flex;gap:10px;justify-content:center;margin-top:22px}
.sbpe-cancelled {border-top:1px solid #edf0f4;margin-top:20px;padding-top:18px}

@media(max-width:900px){
  .sbpe-brandbar-inner {min-height:auto;padding:16px 0;flex-wrap:wrap}
  .sbpe-brandbar img {width:175px}
  .sbpe-brand-copy {display:none}
  .sbpe-steps {width:100%;margin:0;justify-content:space-between}
  .sbpe-steps span {padding:6px;font-size:11px}
  body.sbpe-checkout .page-container-four {width:min(100% - 24px,1240px) !important;margin-top:18px !important}
  body.sbpe-wire .invoices-company-details {display:block !important}
  body.sbpe-wire .invoices-company-details > .col-md-6:first-child,
  body.sbpe-wire .invoices-company-details > .col-md-6:nth-child(2) {width:100% !important;margin-bottom:18px}
}
@media(max-width:600px){
  .sbpe-brandbar-inner {width:calc(100% - 24px)}
  .sbpe-brandbar img {width:155px}
  .sbpe-steps b {width:21px;height:21px}
  body.sbpe-wire .checkout-invoice-area {padding:0 16px 18px !important}
  body.sbpe-wire .checkout-invoice-area .top-heading-area {margin:0 -16px 20px !important;padding:16px !important}
  .sbpe-modal-actions {flex-direction:column}
}
@media print {
  body.sbpe-checkout {background:#fff !important}
  .sbpe-brandbar,.sbpe-actionbar,.checkout-dashboard-bt,.sbpv-box,
  header,footer,.lp-header,.header-container {display:none !important}
  body.sbpe-checkout .page-container-four {width:100% !important;max-width:none !important;margin:0 !important}
  body.sbpe-wire .checkout-invoice-area {box-shadow:none !important;border:0 !important;padding:0 !important}
  body.sbpe-wire .checkout-invoice-area .top-heading-area {
    margin:0 0 18px !important;
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }
  body.sbpe-wire .invoices-company-details {display:flex !important}
}


/* RC2 — final checkout pending-verification confirmation */
.sbpe-pending-modal[hidden]{display:none!important}
.sbpe-pending-modal{
  position:fixed;inset:0;z-index:1000000;background:rgba(6,20,38,.72);
  display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)
}
.sbpe-pending-card{
  width:min(680px,100%);max-height:calc(100vh - 40px);overflow:auto;
  background:#fff;border-radius:22px;padding:34px;position:relative;text-align:center;
  box-shadow:0 34px 100px rgba(0,0,0,.3);border-top:5px solid #C79A2B
}
.sbpe-pending-icon{
  width:64px;height:64px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;
  background:#eef8f2;color:#18794e;font-size:30px;font-weight:900;border:1px solid #cde9d7
}
.sbpe-pending-kicker{font-size:11px;font-weight:900;letter-spacing:1.5px;color:#9a741b;margin-top:8px}
.sbpe-pending-card h2{color:#0B1F3A;font-size:26px;line-height:1.25;margin:7px 0 12px}
.sbpe-pending-lead{font-size:15px;line-height:1.7;color:#526074;max-width:570px;margin:0 auto 22px}
.sbpe-pending-info{text-align:left;display:grid;gap:10px;margin:0 0 18px}
.sbpe-pending-info>div{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:start;background:#f8fafc;border:1px solid #e7ecf2;border-radius:12px;padding:14px}
.sbpe-pending-info span{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#fff5d9;color:#8c6815;font-size:18px;font-weight:800}
.sbpe-pending-info p{margin:0;color:#5a6678;line-height:1.55;font-size:13px}
.sbpe-pending-info strong{color:#152238}
.sbpe-pending-help{font-size:13px;line-height:1.6;color:#687386;margin:17px 0}
.sbpe-pending-help a{color:#0B1F3A;font-weight:800;text-decoration:none}
.sbpe-pending-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}
.sbpe-pending-note{font-size:11px;color:#8993a2;margin-top:16px}
@media(max-width:600px){
  .sbpe-pending-card{padding:26px 18px}
  .sbpe-pending-card h2{font-size:22px}
  .sbpe-pending-actions{flex-direction:column}
  .sbpe-pending-actions .sbpe-btn{width:100%}
}


/* RC3 — SabahBusiness payment-success / payment-fail pages */
body.sbpe-status-page{background:#f5f7fa!important;color:#152238}
body.sbpe-status-page header,
body.sbpe-status-page .lp-header,
body.sbpe-status-page .header-container,
body.sbpe-status-page footer,
body.sbpe-status-page .footer-upper-bar,
body.sbpe-status-page .footer-bottom-bar{display:none!important}
body.sbpe-status-page .site-content,
body.sbpe-status-page #content,
body.sbpe-status-page .page-container,
body.sbpe-status-page .lp-section-content-container{display:none!important}
.sbpe-status-shell{
  min-height:calc(100vh - 95px);padding:48px 20px 70px;display:grid;place-items:start center;
  background:
    radial-gradient(circle at 15% 0%,rgba(199,154,43,.09),transparent 30%),
    linear-gradient(180deg,#f7f9fc,#eef3f8)
}
.sbpe-status-card{
  width:min(780px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:24px;
  padding:40px;box-shadow:0 24px 70px rgba(11,31,58,.10);text-align:center;position:relative;overflow:hidden
}
.sbpe-status-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#C79A2B}
.sbpe-status-card.is-fail:before{background:#b94343}
.sbpe-status-icon{
  width:68px;height:68px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;
  background:#eef8f2;color:#18794e;border:1px solid #cce8d6;font-size:31px;font-weight:900
}
.sbpe-status-card.is-fail .sbpe-status-icon{background:#fff4f4;color:#a62e2e;border-color:#f0cccc}
.sbpe-status-kicker{font-size:11px;font-weight:900;letter-spacing:1.6px;color:#9a741b}
.sbpe-status-card.is-fail .sbpe-status-kicker{color:#9f3d3d}
.sbpe-status-card h1{font-size:30px;line-height:1.22;color:#0B1F3A;margin:8px auto 12px}
.sbpe-status-lead{max-width:650px;margin:0 auto 26px;color:#596579;font-size:15px;line-height:1.75}
.sbpe-status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:left}
.sbpe-status-grid>div{background:#f8fafc;border:1px solid #e5eaf0;border-radius:13px;padding:17px}
.sbpe-status-grid strong{display:block;color:#0B1F3A;font-size:13px;margin-bottom:6px}
.sbpe-status-grid span{display:block;color:#697587;font-size:12px;line-height:1.55}
.sbpe-status-help{margin:23px auto 0;color:#697587;font-size:13px;line-height:1.65}
.sbpe-status-help a{color:#0B1F3A;font-weight:800;text-decoration:none}
.sbpe-status-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}
.sbpe-status-note{font-size:11px;color:#8a95a4;margin-top:17px}
@media(max-width:700px){
  .sbpe-status-shell{padding:24px 12px 50px}
  .sbpe-status-card{padding:30px 18px}
  .sbpe-status-card h1{font-size:24px}
  .sbpe-status-grid{grid-template-columns:1fr}
  .sbpe-status-actions{flex-direction:column}
  .sbpe-status-actions .sbpe-btn{width:100%}
}


/* RC4 — Payment Settings now visibly own the manual-payment destination */
.sbpe-native-wire-note{display:none!important}
.sbpe-wire-panel{width:min(1180px,calc(100% - 32px));margin:24px auto 42px;background:#fff;border:1px solid #e3e8ef;border-radius:20px;box-shadow:0 18px 55px rgba(11,31,58,.09);overflow:hidden}
.sbpe-wire-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px 30px;background:#0B1F3A;color:#fff;border-bottom:4px solid #C79A2B}
.sbpe-wire-eyebrow,.sbpe-option{font-size:10px;font-weight:900;letter-spacing:1.4px;color:#C79A2B}
.sbpe-wire-head h2{margin:4px 0 5px;color:#fff;font-size:27px}.sbpe-wire-head p{margin:0;color:#d9e2ee;font-size:13px}
.sbpe-pending-pill{white-space:nowrap;background:#fff4cf;color:#7b5b0b;border:1px solid #e7c85c;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:900}
.sbpe-order-strip{display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid #e8edf2;background:#fbfcfe}
.sbpe-order-strip>div{padding:17px 25px;border-right:1px solid #e8edf2}.sbpe-order-strip>div:last-child{border-right:0}
.sbpe-order-strip small{display:block;color:#8490a0;font-size:9px;font-weight:800;letter-spacing:1px}.sbpe-order-strip strong{display:block;margin-top:4px;color:#0B1F3A;font-size:16px}
.sbpe-pay-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:26px 30px 18px}
.sbpe-pay-card{border:1px solid #e3e8ef;border-radius:15px;padding:22px;background:#fff}.sbpe-pay-card h3,.sbpe-proof-card h3{color:#0B1F3A;margin:4px 0 14px;font-size:19px}
.sbpe-qr-card{text-align:center}.sbpe-qr-card .sbpe-option{display:block}.sbpe-qr-card img{display:block;width:min(230px,80%);height:auto;margin:12px auto;border:8px solid #f7f8fa;border-radius:12px}
.sbpe-pay-card p{font-size:12px;color:#6a7688;line-height:1.6;margin:12px 0 0}
.sbpe-bank-details{margin:4px 0 0}.sbpe-bank-details>div{display:grid;grid-template-columns:130px 1fr;padding:11px 0;border-bottom:1px solid #edf0f4}.sbpe-bank-details dt{color:#7a8696;font-size:12px}.sbpe-bank-details dd{margin:0;color:#152238;font-size:13px}.sbpe-bank-details dd strong{font-size:18px;color:#0B1F3A}
.sbpe-proof-card{margin:0 30px 18px;padding:21px 22px;border-radius:15px;background:#f3fbf6;border:1px solid #cfe9d8;display:flex;align-items:center;justify-content:space-between;gap:20px}.sbpe-proof-card p{margin:0;color:#627066;font-size:12px;line-height:1.55}
.sbpe-whatsapp-btn{display:inline-flex;align-items:center;justify-content:center;min-width:260px;background:#16794e;color:#fff!important;text-decoration:none!important;border-radius:10px;padding:14px 18px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.3px}
.sbpe-verification-box{margin:0 30px 18px;padding:16px 19px;border-radius:12px;background:#fff8e5;border:1px solid #ead18a;display:grid;grid-template-columns:180px 1fr;gap:15px;align-items:start}.sbpe-verification-box strong{color:#70530b}.sbpe-verification-box span{font-size:12px;color:#6e6650;line-height:1.55}
.sbpe-wire-support{text-align:center;padding:0 30px 25px;color:#788494;font-size:12px}.sbpe-wire-support span{padding:0 8px}.sbpe-wire-support a{color:#0B1F3A;font-weight:800;text-decoration:none}
body.sbpe-wire .sbpv-box{display:none!important}

/* Invoice dashboard presentation */
body.sbpe-invoice-dashboard #listing-invoices-popup .modal-content{border-radius:18px!important;overflow:hidden}
body.sbpe-invoice-dashboard #listing-invoices-popup .modal-body{background:#fff!important}
body.sbpe-invoice-dashboard #listing-invoices-popup img{height:auto}
body.sbpe-invoice-dashboard #listing-invoices-popup .lp-invoice-total-amount{color:#0B1F3A;font-weight:900}
body.sbpe-invoice-dashboard button.downloadpdffullinv,
body.sbpe-invoice-dashboard button.printthisinvoice{border-radius:8px!important;font-weight:800!important}

@media(max-width:760px){
 .sbpe-wire-head{align-items:flex-start;flex-direction:column}.sbpe-order-strip{grid-template-columns:1fr}.sbpe-order-strip>div{border-right:0;border-bottom:1px solid #e8edf2}
 .sbpe-pay-grid{grid-template-columns:1fr;padding:18px}.sbpe-proof-card{margin:0 18px 15px;flex-direction:column;align-items:stretch}.sbpe-whatsapp-btn{min-width:0;width:100%}
 .sbpe-verification-box{margin:0 18px 15px;grid-template-columns:1fr}.sbpe-wire-support{padding:0 18px 22px}
}




/* Unified RC4 — LOCKED FLOW:
   ListingPro Phase 1 → ListingPro Phase 2 → SabahBusiness Phase 3 →
   Complete Payment → native ListingPro Final Receipt. */
body.sbpe-wire.sbpe-phase3-active .page-container-four,
body.sbpe-wire.sbpe-phase3-active .checkout-transaction-receipt{
  display:none!important;
}
body.sbpe-wire.sbpe-phase3-active #sbpe-wire-panel{
  display:block!important;
  margin-top:28px!important;
}
body.sbpe-wire.sbpe-receipt-final #sbpe-wire-panel{
  display:none!important;
}
body.sbpe-wire.sbpe-receipt-final .page-container-four,
body.sbpe-wire.sbpe-receipt-final .checkout-transaction-receipt{
  display:block!important;
}
body.sbpe-wire .sbpv-box{display:none!important}

.sbpe-final-actions{
  padding:22px 30px 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-top:1px solid #e8edf2;
}
.sbpe-final-cancel{
  min-width:170px;border:1px solid #cfd7e2;border-radius:10px;background:#fff;color:#526074;
  padding:13px 20px;font-size:13px;font-weight:800;cursor:pointer
}
.sbpe-final-cancel:hover{background:#f7f8fa;color:#0B1F3A;border-color:#aeb9c7}
.sbpe-final-continue{
  min-width:210px;border:0;border-radius:10px;background:#0B1F3A;color:#fff;
  padding:14px 24px;font-size:13px;font-weight:900;cursor:pointer;
  box-shadow:0 8px 20px rgba(11,31,58,.14)
}
.sbpe-final-continue:hover{transform:translateY(-1px)}

.sbpe-final-receipt-notice{
  width:min(1115px,calc(100% - 32px));
  margin:22px auto 14px;
  padding:16px 19px;
  border:1px solid #ead18a;
  border-left:5px solid #C79A2B;
  border-radius:12px;
  background:#fff8e5;
}
.sbpe-final-receipt-notice>div{display:grid;gap:4px}
.sbpe-final-receipt-notice strong{color:#0B1F3A;font-size:14px}
.sbpe-final-receipt-notice span{color:#6e6650;font-size:12px;line-height:1.55}

body.sbpe-wire.sbpe-receipt-final .checkout-dashboard-bt{
  display:inline-flex!important;
  align-items:center;justify-content:center;
  background:#0B1F3A!important;color:#fff!important;
  border-radius:9px!important;padding:13px 20px!important;
  font-weight:900!important;text-decoration:none!important;
}

@media(max-width:760px){
  .sbpe-final-actions{padding:20px 18px 22px;flex-direction:column-reverse}
  .sbpe-final-cancel,.sbpe-final-continue{width:100%;min-width:0}
  .sbpe-final-receipt-notice{width:calc(100% - 24px);margin-top:14px}
}


/* RC6 — Phase 2 mandatory SabahBusiness legal/payment agreement */
body.sbpe-checkout:not(.sbpe-wire) .lp-new-term-style.sbpe-legal-agreement{
  display:none;
  position:relative;
  margin:20px 0 16px!important;
  padding:17px 18px!important;
  border:1px solid #d9e0e8!important;
  border-left:4px solid #C79A2B!important;
  border-radius:10px!important;
  background:#fffdf7!important;
  transition:box-shadow .2s ease,border-color .2s ease;
}
body.sbpe-checkout:not(.sbpe-wire) .lp-new-term-style.sbpe-legal-agreement.sbpe-legal-alert{
  border-color:#C79A2B!important;box-shadow:0 0 0 4px rgba(199,154,43,.14)!important
}
body.sbpe-checkout .sbpe-legal-agreement .terms-checkbox-container{float:left;margin:4px 12px 0 0!important}
body.sbpe-checkout .sbpe-legal-copy{overflow:hidden;color:#4e5c6e;font-size:13px;line-height:1.6}
body.sbpe-checkout .sbpe-legal-copy strong{display:block;color:#0B1F3A;font-size:14px;margin-bottom:3px}
body.sbpe-checkout .sbpe-legal-copy p{margin:0 0 4px!important}
body.sbpe-checkout .sbpe-legal-copy a{color:#9a741b!important;font-weight:800;text-decoration:underline!important}
body.sbpe-checkout .sbpe-legal-copy small{display:block;color:#7a5b12;font-weight:700}

/* RC6 — native invoice popup status follows native transaction status */
body.sbpe-invoice-dashboard .lp-infoice-label.is-pending{background:#fff3cd!important;color:#745500!important}
body.sbpe-invoice-dashboard .lp-infoice-label.is-paid{background:#e7f7ee!important;color:#176b3a!important}
body.sbpe-invoice-dashboard .lp-infoice-label.is-failed{background:#fff0f0!important;color:#a12c2c!important}

/* RC7 dual payment-proof verification */
.sbpe-proof-dual{display:block!important}.sbpe-proof-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.sbpe-proof-option{border:1px solid #e5e7eb;border-radius:14px;padding:18px;background:#fff}.sbpe-proof-option strong{color:#0B1F3A}.sbpe-proof-option p{margin:8px 0 14px}.sbpe-upload-proof-form{display:grid;gap:10px}.sbpe-upload-proof-form input[type=file]{width:100%;padding:10px;border:1px solid #d0d5dd;border-radius:8px;background:#fff}.sbpe-upload-btn{border:0;border-radius:8px;background:#0B1F3A;color:#fff;font-weight:700;padding:12px 16px;cursor:pointer}.sbpe-upload-btn:hover{transform:translateY(-1px)}@media(max-width:767px){.sbpe-proof-options{grid-template-columns:1fr}}


/* RC8 — final confirmation popup before native final receipt */
body.sbpe-modal-open{overflow:hidden!important}
.sbpe-thankyou-modal[hidden]{display:none!important}
.sbpe-thankyou-modal{position:fixed;inset:0;z-index:999999;background:rgba(11,31,58,.62);display:flex;align-items:center;justify-content:center;padding:22px}
.sbpe-thankyou-card{width:min(520px,100%);background:#fff;border-radius:18px;padding:34px 30px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.24);border-top:5px solid #C79A2B}
.sbpe-thankyou-mark{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;background:#eef8f2;color:#176b3a;font-size:28px;font-weight:900}
.sbpe-thankyou-card h3{margin:0 0 12px;color:#0B1F3A;font-size:24px}
.sbpe-thankyou-card p{margin:7px 0;color:#667085;line-height:1.6}
.sbpe-view-final-receipt{margin-top:20px;border:0;border-radius:10px;background:#0B1F3A;color:#fff;padding:13px 22px;font-weight:900;cursor:pointer}
.sbpe-view-final-receipt:hover{transform:translateY(-1px)}

body.sbpe-preview-open{overflow:hidden!important}
.sbpe-proof-preview[hidden]{display:none!important}
.sbpe-proof-preview{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(11,31,58,.7)}
.sbpe-proof-preview-card{width:min(680px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:16px;padding:24px;border-top:5px solid #C79A2B;box-shadow:0 24px 70px rgba(0,0,0,.25)}
.sbpe-proof-preview-card h3{margin:0 0 8px;color:#0B1F3A}.sbpe-proof-preview-card p{color:#667085;margin:0 0 14px}
.sbpe-proof-preview-content{display:flex;justify-content:center;align-items:center;min-height:180px;background:#f7f8fa;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}
.sbpe-proof-preview-content img{display:block;max-width:100%;max-height:55vh;object-fit:contain}.sbpe-proof-preview-content iframe{display:block;width:100%;height:min(55vh,550px);border:0}
.sbpe-proof-preview-card .sbpe-proof-preview-name{margin:10px 0;overflow-wrap:anywhere;font-weight:700;color:#0B1F3A}
.sbpe-proof-preview-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.sbpe-proof-preview-actions button{border:0;border-radius:8px;padding:12px 16px;font-weight:700;cursor:pointer}
.sbpe-preview-change{background:#eef1f5;color:#0B1F3A}.sbpe-preview-close{background:#0B1F3A;color:#fff}.sbpe-upload-btn:disabled{opacity:.65;cursor:wait}
.sbpe-proof-received{padding:11px 12px;border:1px solid #acd9be;border-radius:8px;background:#eef8f2;color:#176b3a;font-size:13px;line-height:1.5;margin:12px 0 0}
.sbpe-proof-rejected{padding:11px 12px;border:1px solid #f3b4ae;border-radius:8px;background:#fff1f0;color:#9d251e;font-size:13px;line-height:1.5;margin:12px 0 0}
@media(max-width:600px){.sbpe-proof-preview-card{padding:18px}.sbpe-proof-preview-actions button{width:100%}}

/* RC10d — immutable coupon snapshot shown only when transaction evidence exists. */
.sbpe-coupon-breakdown{line-height:1.8;border-top:1px dashed #d8dde5;padding-top:10px!important;margin-top:6px}
.sbpe-coupon-breakdown strong{display:inline-block;min-width:170px;color:#0b1f3a}
.sbpe-coupon-breakdown span{float:right;font-weight:600}


/* SabahBusiness Premium Clean UI1 — VISUAL ONLY; no checkout state changes.
   Checkout uses existing native stages, fields, legal checkbox, payment proof and submit handlers. */
body.sbpe-checkout {
  background-color:#f7f6f2!important;
  background-image:radial-gradient(ellipse at 8% 5%,rgba(212,180,105,.13),transparent 42%),radial-gradient(ellipse at 96% 85%,rgba(28,75,114,.09),transparent 43%)!important;
  background-attachment:fixed;
}
/* Remove the checkout-only custom banner; retain all functional payment elements. */
body.sbpe-checkout .sbpe-brandbar {display:none!important}
body.sbpe-checkout .page-container-four {
  width:min(1120px,calc(100% - 36px))!important;
  max-width:1120px!important;
  margin:34px auto 52px!important;
}
body.sbpe-checkout:not(.sbpe-wire) #listings_checkout_form,
body.sbpe-wire .checkout-invoice-area {
  border:1px solid rgba(179,169,148,.32)!important;
  border-radius:17px!important;
  box-shadow:0 12px 38px rgba(11,31,58,.075)!important;
}
body.sbpe-checkout:not(.sbpe-wire) #listings_checkout_form {padding:26px!important}
body.sbpe-checkout .lp-checkout-coupon-outer,
body.sbpe-checkout .lp-col-outer {border-radius:12px!important}
body.sbpe-checkout .lp_payment_step_next,
body.sbpe-checkout .coupon-apply-bt,
body.sbpe-checkout .sbpe-final-continue,
body.sbpe-checkout .sbpe-upload-btn,
body.sbpe-checkout .sbpe-view-final-receipt {
  font-size:14px!important;
  letter-spacing:0!important;
  font-weight:700!important;
  border-radius:9px!important;
  min-height:42px!important;
  padding:10px 18px!important;
  box-shadow:none!important;
  transform:none!important;
}
body.sbpe-checkout .lp_payment_step_next,
body.sbpe-checkout .sbpe-final-continue {width:auto!important;max-width:100%!important}
body.sbpe-wire .checkout-invoice-area .top-heading-area {
  background:linear-gradient(125deg,#102b48,#0b1f3a)!important;
  border-bottom:2px solid #c69b42!important;
  padding:17px 24px!important;
}
body.sbpe-wire .checkout-invoice-area .top-heading-area p {font-size:18px!important}
body.sbpe-checkout input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.sbpe-checkout select,
body.sbpe-checkout textarea {max-width:100%;border-radius:9px}
body.sbpe-checkout .sbpe-proof-option,
body.sbpe-checkout .sbpe-final-receipt-notice {box-shadow:none!important}
body.sbpe-checkout .sbpe-legal-agreement {border-radius:12px!important}
@media(max-width:900px){
 body.sbpe-checkout .page-container-four{width:calc(100% - 28px)!important;margin:22px auto 36px!important}
}
@media(max-width:600px){
 body.sbpe-checkout {background-attachment:scroll}
 body.sbpe-checkout .page-container-four{width:calc(100% - 20px)!important;margin:14px auto 28px!important}
 body.sbpe-checkout:not(.sbpe-wire) #listings_checkout_form{padding:16px!important}
 body.sbpe-wire .checkout-invoice-area{padding:0 15px 18px!important}
 body.sbpe-wire .checkout-invoice-area .top-heading-area{margin:0 -15px 18px!important;padding:14px 16px!important}
 body.sbpe-checkout .lp_payment_step_next,
 body.sbpe-checkout .sbpe-final-continue {width:100%!important}
}
