/**
 * SGO Site Builder v1.9.10.11 — ONE rewards design contract.
 * Shared Cart + Checkout BCC / Store Credit cards and modal shell.
 * Earlier plugin CSS remains for unrelated widgets; this file is the final
 * rewards presentation layer. It must load AFTER rewards-ui-fixes.css.
 */
:root{--sgo-reward-ink:#183a2a;--sgo-reward-green:#14613d;--sgo-reward-secondary:#658073;--sgo-reward-stroke:#dbe8df;--sgo-reward-soft:#f1f9f4}
/* Identical outer card size, card rhythm, and aligned headings on both widgets. */
.sgo-sb-benefits-row > .sgo-reward-card,
.sgo-smart-checkout .sgo-co-benefits-row > .sgo-reward-card{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 gap:0!important;width:100%!important;min-width:0!important;min-height:176px!important;
 padding:20px!important;margin:0!important;border:1px solid var(--sgo-reward-stroke)!important;
 border-radius:24px!important;background:#fff!important;box-shadow:none!important;
 color:var(--sgo-reward-ink)!important;overflow:visible!important;position:relative!important;
 align-items:stretch!important;justify-content:flex-start!important;
}
.sgo-sb-benefits-row > .sgo-reward-card.is-active,
.sgo-smart-checkout .sgo-co-benefits-row > .sgo-reward-card.is-active{background:#fff!important;border-color:#cce2d3!important}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__header,
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__header{
 display:grid!important;grid-template-columns:56px minmax(0,1fr) minmax(72px,auto)!important;
 grid-template-rows:auto!important;gap:12px!important;align-items:start!important;
 width:100%!important;min-width:0!important;position:relative!important;margin:0!important;
 padding:0!important;background:transparent!important;box-shadow:none!important;
}
.sgo-reward-card .sgo-reward-card__icon{
 display:flex!important;align-items:flex-start!important;justify-content:center!important;
 grid-row:1!important;grid-column:1!important;width:52px!important;height:52px!important;
 min-width:52px!important;max-width:52px!important;margin:0!important;padding:0!important;
 position:relative!important;transform:none!important;border:0!important;background:none!important;overflow:visible!important;
}
.sgo-reward-card .sgo-reward-card__icon .sgo-points-coin{
 display:block!important;width:48px!important;height:48px!important;max-width:48px!important;
 object-fit:contain!important;filter:drop-shadow(0 5px 7px rgba(79,82,36,.14))!important;
}
.sgo-reward-card .sgo-reward-card__identity,
.sgo-sb-benefits-row .sgo-reward-card :is(.sgo-cart-points-bar__copy,.sgo-co-points-bar__copy),
.sgo-smart-checkout .sgo-reward-card :is(.sgo-cart-points-bar__copy,.sgo-co-points-bar__copy){
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 grid-row:1!important;grid-column:2!important;gap:5px!important;min-width:0!important;
 padding:0!important;margin:0!important;background:none!important;
}
.sgo-reward-card .sgo-reward-card__identity > strong,
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__identity strong,
.sgo-smart-checkout .sgo-reward-card .sgo-reward-card__identity strong{
 font-family:inherit!important;font-size:18px!important;font-weight:800!important;
 line-height:1.2!important;color:var(--sgo-reward-ink)!important;letter-spacing:-.01em!important;
 text-transform:none!important;margin:0!important;padding:0!important;
}
.sgo-reward-card .sgo-reward-card__identity > small,
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__identity small,
.sgo-smart-checkout .sgo-reward-card .sgo-reward-card__identity small{
 font-size:13px!important;line-height:1.35!important;font-weight:400!important;
 color:var(--sgo-reward-secondary)!important;letter-spacing:0!important;margin:0!important;
}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__balance,
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__balance{
 grid-row:1!important;grid-column:3!important;display:flex!important;
 flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;
 margin:0!important;padding:0!important;text-align:right!important;min-width:0!important;
 align-self:start!important;gap:5px!important;
}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__balance > span,
.sgo-smart-checkout .sgo-reward-card .sgo-reward-card__balance > span{
 display:block!important;color:var(--sgo-reward-green)!important;
 font-size:23px!important;line-height:1.08!important;font-weight:850!important;
 white-space:nowrap!important;font-variant-numeric:tabular-nums!important;
}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__balance > small,
.sgo-smart-checkout .sgo-reward-card .sgo-reward-card__balance > small{
 display:block!important;font-size:12px!important;line-height:1.25!important;
 font-weight:400!important;color:var(--sgo-reward-secondary)!important;text-align:right!important;
}
/* Same applied line and action order regardless of markup origin. */
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__applied,
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__applied{
 order:2!important;align-self:flex-start!important;position:static!important;
 margin:14px 0 0!important;padding:0!important;
 font-size:12px!important;line-height:1.35!important;font-weight:750!important;
 color:#1c693f!important;background:transparent!important;border:0!important;
 text-align:left!important;white-space:normal!important;
}
.sgo-reward-card .sgo-reward-card__applied[hidden]{display:none!important}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__actions,
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__actions{
 order:3!important;align-self:stretch!important;display:flex!important;justify-content:flex-start!important;
 margin:auto 0 0!important;padding:14px 0 0!important;gap:8px!important;
}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__button,
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__button{
 box-sizing:border-box!important;order:3!important;align-self:flex-start!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:37px!important;height:auto!important;width:max-content!important;max-width:100%!important;
 padding:9px 16px!important;margin:auto 0 0!important;
 border:1px solid #b9dcca!important;border-radius:999px!important;
 background:#f4faf6!important;color:#175b38!important;
 font-size:13px!important;font-weight:750!important;line-height:1.2!important;
 letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;
 box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
.sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__button:is(:hover,:focus-visible),
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__button:is(:hover,:focus-visible){
 background:#e5f4eb!important;color:#104c2d!important;border-color:#8abe9f!important;
 box-shadow:0 0 0 3px rgba(27,116,63,.10)!important;transform:none!important;
}
.sgo-reward-card .sgo-reward-card__button:focus-visible{outline:2px solid #157a46!important;outline-offset:3px!important}
.sgo-reward-card .sgo-reward-card__button[disabled]{opacity:.6!important;cursor:wait!important}
/* Native coupon plugin keeps owning click, API and WooCommerce updates. Its
 * original launcher remains mounted but stops competing with the shared card.
 * Only the launcher (NOT any modal descendant/containing mount) is hidden. */
.sgo-reward-card--credit .sgo-sb-credit-mount,
.sgo-reward-card--credit .sgo-store-credit-wrap,
.sgo-reward-card--credit .sgo-store-credit-checkout,
.sgo-reward-card--credit .sgo-store-credit-cart{background:transparent!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important}
.sgo-reward-card--credit .sgo-reward-card__native-launcher,
.sgo-reward-card--credit .sgo-reward-card__native-fallback{
 position:absolute!important;inset:auto!important;left:0!important;bottom:0!important;
 width:1px!important;height:1px!important;min-height:1px!important;
 opacity:0!important;border:0!important;padding:0!important;margin:0!important;
 overflow:visible!important;pointer-events:none!important;transform:none!important;
}
.sgo-reward-card--credit .sgo-sb-credit-mount{
 order:5!important;position:absolute!important;top:0!important;left:0!important;
 width:1px!important;height:1px!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;pointer-events:none!important;
}
.sgo-reward-card--credit .sgo-reward-card__header{order:0!important}
.sgo-reward-card--credit .sgo-reward-card__applied{order:2!important}
.sgo-reward-card--credit .sgo-reward-card__credit-action{order:3!important}
/* Folder icon confined to the exact same 52×52 visual slot as BCC coin. */
.sgo-reward-card .sgo-reward-card__folder{
 width:52px!important;height:52px!important;position:relative!important;
 perspective:260px!important;transform:none!important;overflow:visible!important;
}
.sgo-reward-folder__back,.sgo-reward-folder__front,.sgo-reward-folder__paper{
 position:absolute;display:block;box-sizing:border-box;pointer-events:none;
}
.sgo-reward-folder__back{
 width:42px;height:34px;left:5px;bottom:5px;background:#0e7f46;
 border-radius:5px 6px 5px 5px;clip-path:polygon(0 22%,37% 22%,50% 0,93% 0,100% 15%,100% 100%,0 100%);
}
.sgo-reward-folder__paper{
 width:27px;height:35px;left:12px;bottom:12px;border:1px solid #b5e2c5;
 background:#fff;border-radius:4px;transform-origin:bottom center;
 transition:transform .34s cubic-bezier(.16,.84,.27,1);
 box-shadow:0 1px 4px rgba(16,70,38,.07);
}
.sgo-reward-folder__paper--left{transform:translateX(-3px) rotate(-9deg);z-index:1}
.sgo-reward-folder__paper--middle{z-index:3;transform:translateY(-2px)}
.sgo-reward-folder__paper--right{z-index:2;transform:translateX(5px) rotate(9deg)}
.sgo-reward-folder__paper--middle span{
 position:absolute;top:7px;left:1px;right:1px;text-align:center;font-size:6px;
 font-weight:850;color:#0b6237;white-space:nowrap;overflow:hidden;text-overflow:clip;
}
.sgo-reward-folder__front{
 z-index:5;width:43px;height:27px;left:4px;bottom:4px;
 background:linear-gradient(145deg,#5ed696,#1dac65);
 border-radius:3px 5px 6px 5px;
 clip-path:polygon(0 7%,59% 7%,69% 0,100% 0,100% 100%,0 100%);
 box-shadow:inset 0 1px 1px rgba(255,255,255,.24);
 transform-origin:center bottom;transition:transform .34s cubic-bezier(.16,.84,.27,1);
}
@media(hover:hover){
 .sgo-reward-card--credit:is(:hover,:focus-within) .sgo-reward-folder__paper--left{transform:translate(-7px,-7px) rotate(-17deg)}
 .sgo-reward-card--credit:is(:hover,:focus-within) .sgo-reward-folder__paper--middle{transform:translateY(-10px)}
 .sgo-reward-card--credit:is(:hover,:focus-within) .sgo-reward-folder__paper--right{transform:translate(9px,-7px) rotate(17deg)}
 .sgo-reward-card--credit:is(:hover,:focus-within) .sgo-reward-folder__front{transform:rotateX(-15deg)}
}
/* Unified modal shells: same centered geometry, button circles, scrim and
 * motion. Credit's REAL coupon-plugin modal is portaled; never cloned. */
.sgo-bcc-points-modal:not([hidden]){
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 display:none!important;place-items:center!important;padding:16px!important;
 overflow-y:auto!important;overscroll-behavior:contain!important;
}
.sgo-bcc-points-modal.is-open:not([hidden]){display:grid!important}
.sgo-bcc-points-modal[hidden]{display:none!important;pointer-events:none!important}
.sgo-bcc-points-modal .sgo-bcc-points-modal__backdrop{
 position:fixed!important;inset:0!important;background:rgba(13,32,21,.56)!important;
 -webkit-backdrop-filter:blur(7px)!important;backdrop-filter:blur(7px)!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-modal__dialog,
body>.sgo-sb-portal-dialog{
 box-sizing:border-box!important;position:relative!important;
 margin:0!important;max-width:460px!important;
 width:min(100%,460px)!important;max-height:calc(100dvh - 32px)!important;
 border-radius:28px!important;overflow-y:auto!important;
 box-shadow:0 24px 70px rgba(12,36,22,.25)!important;
 scrollbar-width:thin!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-shell{
 padding:10px!important;border-radius:28px!important;background:#fff!important;
 box-shadow:none!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-hero{
 background:#0b623e!important;color:#fff!important;
 border-radius:21px!important;padding:20px 20px 22px!important;
 box-shadow:none!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-hero__value{font-size:38px!important}
.sgo-bcc-points-modal .sgo-bcc-points-body{padding:18px 16px 12px!important}
.sgo-bcc-points-modal .sgo-bcc-points-modal__close,
body>.sgo-sb-portal-dialog :is(.sgo-credit-close,.sgo-store-credit-close,.sgo-credit-modal-close,button[data-sgo-credit-close],[aria-label="Close"]){
 position:absolute!important;top:12px!important;right:12px!important;
 width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
 max-width:40px!important;max-height:40px!important;aspect-ratio:1!important;
 border-radius:50%!important;display:flex!important;align-items:center!important;
 justify-content:center!important;padding:0!important;line-height:1!important;
 border:1px solid #d7e7da!important;background:#fff!important;color:#133d29!important;
 box-shadow:0 4px 12px rgba(18,55,32,.10)!important;transform:none!important;
 cursor:pointer!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-modal__close:is(:hover,:focus-visible),
body>.sgo-sb-portal-dialog :is(.sgo-credit-close,.sgo-store-credit-close,.sgo-credit-modal-close,button[data-sgo-credit-close],[aria-label="Close"]):is(:hover,:focus-visible){
 background:#eaf7ee!important;color:#134b2e!important;border-color:#80c99a!important;
}
body>.sgo-sb-credit-scrim{
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 background:rgba(13,32,21,.56)!important;-webkit-backdrop-filter:blur(7px)!important;
 backdrop-filter:blur(7px)!important;
}
html.sgo-sb-credit-dialog-open body>.sgo-sb-portal-dialog{
 z-index:2147483100!important;position:fixed!important;left:50%!important;top:50%!important;
 transform:translate(-50%,-50%)!important;width:min(460px,calc(100vw - 32px))!important;
 max-height:calc(100dvh - 32px)!important;
}
/* Buttons inside both reward dialogs keep readable hover text. */
.sgo-bcc-points-modal :is(.sgo-cart-points-redeem-button,.sgo-bcc-points-primary,.sgo-co-button.is-primary),
body>.sgo-sb-portal-dialog :is(button[type="submit"],button[data-sgo-credit-apply]){
 color:#fff!important;background:#0c6340!important;border:0!important;border-radius:999px!important;
 box-shadow:none!important;font-weight:800!important;
}
.sgo-bcc-points-modal :is(.sgo-cart-points-redeem-button,.sgo-bcc-points-primary,.sgo-co-button.is-primary):is(:hover,:focus-visible),
body>.sgo-sb-portal-dialog :is(button[type="submit"],button[data-sgo-credit-apply]):is(:hover,:focus-visible){
 color:#fff!important;background:#08462c!important;
}
@media(max-width:650px){
 .sgo-sb-benefits-row > .sgo-reward-card,
 .sgo-smart-checkout .sgo-co-benefits-row > .sgo-reward-card{min-height:152px!important;padding:16px!important;border-radius:20px!important}
 .sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__header,
 .sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card .sgo-reward-card__header{
  grid-template-columns:48px minmax(0,1fr) minmax(64px,auto)!important;gap:9px!important;
 }
 .sgo-reward-card .sgo-reward-card__icon{width:44px!important;height:44px!important;min-width:44px!important;transform:scale(.87)!important;transform-origin:top left!important}
 .sgo-reward-card .sgo-reward-card__icon .sgo-points-coin{width:44px!important;height:44px!important}
 .sgo-reward-card .sgo-reward-card__identity > strong{font-size:16px!important}
 .sgo-reward-card .sgo-reward-card__identity > small{font-size:11px!important}
 .sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__balance > span,
 .sgo-smart-checkout .sgo-reward-card .sgo-reward-card__balance > span{font-size:18px!important}
 .sgo-sb-benefits-row .sgo-reward-card .sgo-reward-card__balance > small,
 .sgo-smart-checkout .sgo-reward-card .sgo-reward-card__balance > small{font-size:10px!important}
 .sgo-bcc-points-modal .sgo-bcc-points-modal__dialog{width:min(100%,440px)!important}
}
@media(prefers-reduced-motion:reduce){
 .sgo-reward-card *, .sgo-bcc-points-modal *,body>.sgo-sb-portal-dialog *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
/* Explicitly outrank historic credit-only sizing rules that caused its card
 * to be 18px shorter than the BCC card on both Cart and Checkout. */
.sgo-sb-benefits-row > .sgo-reward-card.sgo-reward-card--credit,
.sgo-smart-checkout .sgo-co-benefits-row > .sgo-reward-card.sgo-reward-card--credit{
 min-height:176px!important;padding:20px!important;
}
/* In both products, applied text sits directly above the small CTA. */
.sgo-sb-benefits-row .sgo-reward-card:has(.sgo-reward-card__applied:not([hidden])) .sgo-reward-card__applied,
.sgo-smart-checkout .sgo-reward-card:has(.sgo-reward-card__applied:not([hidden])) .sgo-reward-card__applied{
 margin:auto 0 0!important;padding-top:10px!important;
}
.sgo-sb-benefits-row .sgo-reward-card:has(.sgo-reward-card__applied:not([hidden])) .sgo-reward-card__actions,
.sgo-smart-checkout .sgo-reward-card:has(.sgo-reward-card__applied:not([hidden])) .sgo-reward-card__actions{
 margin:0!important;padding-top:8px!important;
}
.sgo-sb-benefits-row .sgo-reward-card:has(.sgo-reward-card__applied:not([hidden])) > .sgo-reward-card__credit-action,
.sgo-smart-checkout .sgo-reward-card:has(.sgo-reward-card__applied:not([hidden])) > .sgo-reward-card__credit-action{
 margin:8px 0 0!important;
}
@media(max-width:650px){
 .sgo-sb-benefits-row > .sgo-reward-card.sgo-reward-card--credit,
 .sgo-smart-checkout .sgo-co-benefits-row > .sgo-reward-card.sgo-reward-card--credit{
  min-height:152px!important;padding:16px!important;
 }
}
/* Both reward popups use the coupon plugin's established horizontal emerald
 * header composition: icon left, short label, balance and explanation right. */
.sgo-bcc-points-modal .sgo-bcc-points-hero{
 display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;
 grid-template-rows:auto auto auto!important;gap:1px 15px!important;
 align-items:center!important;text-align:left!important;min-height:116px!important;
 padding:18px 22px!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-hero__eyebrow{
 grid-column:2!important;grid-row:1!important;justify-self:start!important;
 background:transparent!important;backdrop-filter:none!important;
 padding:0!important;border-radius:0!important;
 letter-spacing:.085em!important;font-size:10px!important;font-weight:850!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-hero__value{display:contents!important}
.sgo-bcc-points-modal .sgo-bcc-points-hero__value > img{
 grid-column:1!important;grid-row:1/4!important;
 width:54px!important;height:54px!important;max-width:54px!important;
 margin:0!important;align-self:center!important;
 filter:drop-shadow(0 4px 9px rgba(0,0,0,.12))!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-hero__value > span{
 grid-column:2!important;grid-row:2!important;display:block!important;
 font-size:31px!important;font-weight:850!important;line-height:1.12!important;
 color:#fff!important;margin:0!important;
}
.sgo-bcc-points-modal .sgo-bcc-points-hero__caption{
 grid-column:2!important;grid-row:3!important;font-size:12px!important;
 line-height:1.35!important;text-align:left!important;margin:0!important;
 color:rgba(255,255,255,.88)!important;
}

/* v1.9.10.12 — temporary non-blocking backdrop while the native coupon
   dialog is identified. The confirmed dialog is portaled above the full scrim. */
body>.sgo-sb-credit-scrim.sgo-sb-credit-scrim--pending{
 z-index:9990!important;pointer-events:none!important;
 background:rgba(12,27,19,.48)!important;
 backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;
}

/* 1.9.10.13: native Store Credit backdrop is an overlay, NOT a close button. */
body>.sgo-sb-credit-scrim,
body>.sgo-sb-credit-scrim.sgo-sb-credit-scrim--pending:not([hidden]){
  box-sizing:border-box!important;position:fixed!important;inset:0!important;
  display:block!important;width:100vw!important;height:100dvh!important;
  min-width:100vw!important;min-height:100dvh!important;max-width:none!important;max-height:none!important;
  aspect-ratio:auto!important;transform:none!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:rgba(12,27,19,.60)!important;
  -webkit-backdrop-filter:blur(6px)!important;backdrop-filter:blur(6px)!important;
  z-index:2147483000!important;opacity:1!important;
}
body>.sgo-sb-credit-scrim.sgo-sb-credit-scrim--pending{pointer-events:none!important;z-index:2147483000!important}
html.sgo-sb-credit-dialog-open body>.sgo-sb-credit-scrim{pointer-events:auto!important}
html.sgo-sb-credit-dialog-open body>.sgo-sb-portal-dialog{z-index:2147483100!important}
/* Native coupon backdrop inside a portal must not shrink to 42px. */
body>.sgo-sb-portal-dialog :is(.sgo-store-credit-backdrop,.sgo-credit-backdrop){
  box-sizing:border-box!important;position:absolute!important;inset:0!important;
  border:0!important;border-radius:0!important;display:block!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;aspect-ratio:auto!important;
  box-shadow:none!important;background:transparent!important;
}
/* Apple HIG: readable hierarchy, consistent tabular numeric balances. */
.sgo-cart .sgo-cart-summary-total > strong[data-sgo-selected-total]{
 color:#14291e!important;font-size:clamp(19px,1.4vw,25px)!important;font-weight:850!important;
 line-height:1.1!important;letter-spacing:-.03em!important;
 font-variant-numeric:tabular-nums!important;white-space:nowrap!important;opacity:1!important;
}
.sgo-cart .sgo-cart-summary-breakdown [data-sgo-selected-credit-row] em{color:#08794b!important}
.sgo-cart .sgo-cart-summary-breakdown [data-sgo-selected-credit-row][hidden]{display:none!important}
@media(max-width:650px){.sgo-cart .sgo-cart-summary-total > strong[data-sgo-selected-total]{font-size:19px!important}}

/* The native coupon backdrop lives INSIDE its dialog and can overlap fields.
   The body-level scrim above is the single actual full-screen overlay. */
html.sgo-sb-credit-dialog-open body>.sgo-sb-portal-dialog :is(.sgo-store-credit-backdrop,.sgo-credit-backdrop){
 display:none!important;pointer-events:none!important;
}

/* =======================================================================
   v1.9.10.14 — Native Store Credit modal ownership (Cart AND Checkout).
   The original coupon popup owns the open class, accessibility state, form
   and dismissal. We style only its existing elements. NO PORTAL/EXTRA SCRIM.
   This supersedes legacy synthetic-overlay rules without creating new layers.
   ======================================================================= */
html body .sgo-store-credit-modal:not(.is-visible),
html body #sgo-store-credit-modal:not(.is-visible),
html body #sgo-store-credit-modal[aria-hidden="true"]{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible:not([aria-hidden="true"]){
  box-sizing:border-box!important;
  position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
  inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;
  max-width:none!important;max-height:none!important;
  min-width:0!important;margin:0!important;padding:16px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  transform:none!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  isolation:isolate!important;z-index:2147482000!important;
  overflow-y:auto!important;
}
html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-backdrop{
  box-sizing:border-box!important;position:fixed!important;inset:0!important;
  width:100vw!important;height:100vh!important;height:100dvh!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  display:block!important;visibility:visible!important;opacity:1!important;
  margin:0!important;padding:0!important;transform:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:rgba(10,25,17,.60)!important;
  -webkit-backdrop-filter:blur(5px)!important;backdrop-filter:blur(5px)!important;
  z-index:0!important;pointer-events:auto!important;
}
html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-dialog{
  box-sizing:border-box!important;position:relative!important;inset:auto!important;
  z-index:1!important;isolation:isolate!important;
  display:block!important;visibility:visible!important;opacity:1!important;
  transform:none!important;width:min(100%,460px)!important;
  max-width:460px!important;max-height:calc(100dvh - 32px)!important;
  margin:auto!important;overflow-y:auto!important;
  background:#fff!important;color:#173a25!important;
  border-radius:24px!important;box-shadow:0 24px 70px rgba(5,28,15,.24)!important;
  pointer-events:auto!important;
}
html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-dialog :is(input,button,select,textarea){
  pointer-events:auto!important;
}
/* A full-page backdrop is never a round close icon, even if it carries the
   native close data attribute. Only BUTTONS are styled as close controls. */
html body #sgo-store-credit-modal .sgo-store-credit-backdrop[data-sgo-credit-close]{
  aspect-ratio:auto!important;border-radius:0!important;min-width:0!important;
  min-height:0!important;max-width:none!important;max-height:none!important;
}
html body #sgo-store-credit-modal .sgo-store-credit-dialog button[data-sgo-credit-close]{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  max-width:42px!important;max-height:42px!important;aspect-ratio:1!important;
  padding:0!important;border-radius:50%!important;background:#fff!important;
  color:#173a25!important;border:1px solid #d7e7dc!important;
}
@media (max-width:520px){
 html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible:not([aria-hidden="true"]){padding:12px!important;}
 html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-dialog{
   width:100%!important;max-height:calc(100dvh - 24px)!important;border-radius:20px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible,
 html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-dialog{
   animation:none!important;transition:none!important;
 }
}

/* v1.9.10.15 — native Store Credit dialog: one visual open/close state.
   Prevent coupon/theme transitions on a child from outliving the native modal's
   backdrop after Apply/Remove. We do not modify the coupon's transaction code. */
html body #sgo-store-credit-modal.sgo-store-credit-modal,
html body #sgo-store-credit-modal .sgo-store-credit-backdrop,
html body #sgo-store-credit-modal .sgo-store-credit-dialog {
  transition:none!important;
  animation:none!important;
  transition-delay:0ms!important;
  animation-delay:0ms!important;
}
html body #sgo-store-credit-modal.sgo-store-credit-modal:not(.is-visible),
html body #sgo-store-credit-modal.sgo-store-credit-modal[aria-hidden="true"]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible:not([aria-hidden="true"]){
  opacity:1!important;
  visibility:visible!important;
}
/* Green Store Credit header floats inside the white dialog, rather than
   touching its outer edges. Keep the native Close control aligned to it. */
html body #sgo-store-credit-modal .sgo-store-credit-dialog > :is(header,.sgo-store-credit-header,.sgo-store-credit-modal-header,.sgo-credit-modal-header,.sgo-credit-modal-head,.sgo-credit-header,.sgo-credit-hero,.sgo-credit-modal-hero):first-child{
  box-sizing:border-box!important;
  margin:12px 12px 0!important;
  width:calc(100% - 24px)!important;
  max-width:calc(100% - 24px)!important;
  border-radius:20px!important;
}
@media(max-width:520px){
  html body #sgo-store-credit-modal .sgo-store-credit-dialog > :is(header,.sgo-store-credit-header,.sgo-store-credit-modal-header,.sgo-credit-modal-header,.sgo-credit-modal-head,.sgo-credit-header,.sgo-credit-hero,.sgo-credit-modal-hero):first-child{
    margin:10px 10px 0!important;
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
    border-radius:16px!important;
  }
}

/* 1.9.10.15: content-box inset even when the Coupon plugin's green header
   uses an unrecognised class. This is inside the ORIGINAL dialog only. */
html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-dialog{
  padding:12px!important;
}
html body #sgo-store-credit-modal .sgo-store-credit-dialog > :is(header,.sgo-store-credit-header,.sgo-store-credit-modal-header,.sgo-credit-modal-header,.sgo-credit-modal-head,.sgo-credit-header,.sgo-credit-hero,.sgo-credit-modal-hero):first-child{
  margin:0 0 0!important;
  width:100%!important;
  max-width:100%!important;
}
@media(max-width:520px){
  html body #sgo-store-credit-modal.sgo-store-credit-modal.is-visible .sgo-store-credit-dialog{padding:10px!important;}
}

/* v1.9.10.16: Empty Store Credit is a disabled, visually inactive action.
   Explicitly override WooCommerce/Elementor button hover colors too. */
.sgo-sb-benefits-row .sgo-reward-card--credit .sgo-reward-card__button:disabled,
.sgo-sb-benefits-row .sgo-reward-card--credit .sgo-reward-card__button:disabled:is(:hover,:focus,:active),
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card--credit .sgo-reward-card__button:disabled,
.sgo-smart-checkout .sgo-co-benefits-row .sgo-reward-card--credit .sgo-reward-card__button:disabled:is(:hover,:focus,:active){
  background:#edf0ee!important;
  border-color:#d8dedb!important;
  color:#89958e!important;
  opacity:1!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
  transform:none!important;
}


/* v1.9.10.17 — primary cart total: never inherit the tiny, grey
   summary-label styling when WooCommerce returns a <span class="amount">.
   Applies identically to initial server markup and live AJAX text/HTML. */
body .sgo-cart .sgo-cart-summary .sgo-cart-summary-total > [data-sgo-selected-total],
body .sgo-cart .sgo-cart-summary .sgo-cart-summary-total > strong.sgo-cart-grand-total {
  font-family:inherit!important;
  font-size:clamp(30px,2.4vw,38px)!important;
  font-weight:850!important;
  line-height:1.1!important;
  letter-spacing:-.035em!important;
  color:#12271c!important;
  opacity:1!important;
  text-align:right!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  visibility:visible!important;
  text-decoration:none!important;
}
/* WooCommerce's price HTML contains spans and bdi: old generic summary
   rules mistakenly styled those as small grey labels. */
body .sgo-cart .sgo-cart-summary .sgo-cart-summary-total > [data-sgo-selected-total] :is(.woocommerce-Price-amount,.woocommerce-Price-currencySymbol,bdi,span){
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
  color:inherit!important;
  opacity:1!important;
  font-variant-numeric:inherit!important;
}
/* Keep the grand total first in the visual hierarchy but reserve room for
   Checkout on narrow devices; do not grow the entire sticky bar. */
@media(max-width:900px){
  html body .sgo-cart .sgo-cart-summary .sgo-cart-summary-total > [data-sgo-selected-total]{
    font-size:clamp(22px,2.7vw,26px)!important;
  }
}
@media(max-width:520px){
  html body .sgo-cart .sgo-cart-summary .sgo-cart-summary-total > [data-sgo-selected-total]{
    font-size:clamp(20px,5.1vw,23px)!important;
    letter-spacing:-.045em!important;
  }
}
