.mv-referral-checkout{margin:14px 0;padding:15px;border:1px solid rgba(255,211,79,.28);border-radius:16px;background:linear-gradient(145deg,rgba(12,27,65,.88),rgba(8,15,42,.92));display:grid;gap:10px}.mv-referral-checkout h3{margin:2px 0 4px}.mv-referral-checkout p{margin:0;color:#b8c7e9;line-height:1.45}.mv-referral-checkout small{color:#8fa5d2;line-height:1.4}.mv-referral-entry{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.mv-referral-entry input{min-width:0;text-transform:uppercase}.mv-referral-status{min-height:1.2em}.mv-referral-status.is-ok{color:#8df0b8}.mv-referral-status.is-error{color:#ff9c9c}.mv-referral-account-note{color:#ffd980!important}@media(max-width:620px){.mv-referral-entry{grid-template-columns:1fr}.mv-referral-entry .btn{width:100%}}

/* v0.5.321.2 — referral discount owns only the late-checkout visual amount.
   Native builder/cart/shipping totals remain untouched underneath. */
html[data-mv-referral-pricing-active="1"] .builder-pricebar .builder-pricebar-total{position:relative}
html[data-mv-referral-pricing-active="1"] .builder-pricebar [data-live-price]{color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}
html[data-mv-referral-pricing-active="1"] .builder-pricebar .builder-pricebar-total::after{content:attr(data-mv-referral-sticky-display)!important;position:absolute;left:0;bottom:0;color:#ffe14d!important;-webkit-text-fill-color:#ffe14d!important;font-size:28px;font-weight:700;line-height:1;white-space:nowrap;pointer-events:none}
@media(max-width:760px){html[data-mv-referral-pricing-active="1"] .builder-pricebar .builder-pricebar-total::after{font-size:24px}}

/* v0.5.321.3 — make the applied referral benefit explicit without taking ownership of native totals. */
.mv-referral-status.is-applied{min-height:0;padding:10px 12px;border:1px solid rgba(95,239,173,.44);border-radius:12px;background:linear-gradient(135deg,rgba(12,83,73,.42),rgba(22,50,103,.55));color:#8df0b8;font-weight:900;box-shadow:inset 0 0 18px rgba(67,231,165,.06)}
html[data-mv-referral-pricing-active="1"] .builder-pricebar .builder-pricebar-meta::after{content:attr(data-mv-referral-note);display:block;margin-top:3px;color:#8df0b8;font-weight:900;letter-spacing:.08px}
@media(max-width:760px){html[data-mv-referral-pricing-active="1"] .builder-pricebar .builder-pricebar-meta::after{font-size:7.5px;line-height:1.15}}


/* v0.5.321.5 — active referral requires account creation for guest checkout. */
.mv-checkout-account-v1[data-referral-required="1"] .mv-checkout-account-toggle{border-color:rgba(255,211,79,.42);background:rgba(255,211,79,.06)}
.mv-checkout-account-v1[data-referral-required="1"] .mv-checkout-account-toggle input{cursor:not-allowed}
.mv-referral-account-required{margin:8px 0 10px;color:#ffd980!important;font-weight:800}


/* v0.5.321.6 — referral amount presentation stays declarative while native builder owns totals. */
.mv-referral-applied-summary{display:grid;gap:7px;padding:11px 13px;border:1px solid rgba(95,239,173,.42);border-radius:12px;background:rgba(20,91,75,.24);color:#dfffee;font-weight:800}.mv-referral-applied-summary[hidden]{display:none!important}.mv-referral-calc-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.mv-referral-calc-row strong{color:#dfffee;white-space:nowrap}.mv-referral-calc-row .mv-referral-calc-discount{color:#8df0b8}.mv-referral-calc-row.is-total{padding-top:7px;border-top:1px solid rgba(141,240,184,.24);font-weight:900}.mv-referral-calc-row.is-total strong{color:#ffe14d;font-size:1.08em}
html[data-mv-referral-pricing-active="1"] [data-review-price][data-mv-referral-review-display]{position:relative;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}
html[data-mv-referral-pricing-active="1"] [data-review-price][data-mv-referral-review-display]::after{content:attr(data-mv-referral-review-display);position:absolute;right:0;top:0;color:#ffe14d!important;-webkit-text-fill-color:#ffe14d!important;font:inherit;font-weight:900;white-space:nowrap}
html[data-mv-referral-pricing-active="1"] [data-review-referral]:not([hidden]){border-color:rgba(95,239,173,.34);background:rgba(20,91,75,.12)}

/* v0.5.321.7 — replace duplicate discount callout with before/discount/after calculation. */
