.ebb-root{
  --ebb-primary:#ff5a36;
  --ebb-ink:#3f2638;
  --ebb-muted:#746870;
  --ebb-radius:12px;
  --ebb-modal-width:1100px;
  --ebb-cols-desktop:4;
  --ebb-cols-mobile:2;
  font-family:inherit;
  margin:14px 0;
  box-sizing:border-box;
}
.ebb-root *{box-sizing:border-box}
.ebb-modal,.ebb-modal *{box-sizing:border-box}

/* Offer card */
.ebb-offer-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border:2px solid var(--ebb-primary);
  border-radius:var(--ebb-radius);
  padding:12px 14px;
  background:#fff;
}

/* Optional animated offer border.
   Uses the same robust technique as the Liquid reference: a large conic-gradient
   pseudo-element rotates behind the card while a white inner layer masks the
   center, leaving only the moving highlight visible on the border. */
.ebb-root.ebb-border-animation .ebb-offer-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:0;
  padding:14px 16px;
  background:var(--ebb-primary);
}
.ebb-root.ebb-border-animation .ebb-offer-card::before{
  content:"";
  position:absolute;
  left:-50%;
  top:-50%;
  width:200%;
  height:200%;
  z-index:0;
  pointer-events:none;
  background:conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(255,255,255,0) 307deg,
    rgba(255,255,255,.24) 314deg,
    rgba(255,255,255,.58) 321deg,
    rgba(255,255,255,.92) 328deg,
    #fff 332deg,
    #fff 337deg,
    rgba(255,255,255,.92) 341deg,
    rgba(255,255,255,.58) 347deg,
    rgba(255,255,255,.24) 352deg,
    rgba(255,255,255,0) 357deg,
    transparent 360deg
  );
  animation:ebbOfferBorderSpin 4s linear infinite;
  will-change:transform;
}
.ebb-root.ebb-border-animation .ebb-offer-card::after{
  content:"";
  position:absolute;
  inset:2px;
  z-index:1;
  border-radius:calc(var(--ebb-radius) - 2px);
  background:#fff;
  pointer-events:none;
}
.ebb-root.ebb-border-animation .ebb-offer-card > *{
  position:relative;
  z-index:2;
}
@keyframes ebbOfferBorderSpin{
  to{transform:rotate(1turn)}
}
.ebb-offer-icon{width:38px;height:38px;color:var(--ebb-primary);display:grid;place-items:center}
.ebb-offer-icon svg{width:31px;height:31px}
.ebb-offer-copy{min-width:0}
.ebb-offer-eyebrow{font-size:10px;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--ebb-primary);margin-bottom:3px}
.ebb-offer-title{font-size:17px;line-height:1.22;font-weight:800;color:var(--ebb-ink)}
.ebb-offer-subtitle{font-size:12px;line-height:1.4;color:var(--ebb-muted);margin-top:3px}
.ebb-open,.ebb-add-bundle,.ebb-card-action{appearance:none;border:0;background:var(--ebb-primary);color:#fff;font:inherit;font-weight:750;cursor:pointer;border-radius:calc(var(--ebb-radius) - 4px);transition:transform .15s ease,opacity .15s ease}
.ebb-open{min-width:180px;height:46px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ebb-open:active,.ebb-add-bundle:active,.ebb-card-action:active{transform:scale(.98)}
.ebb-plus{font-size:28px;font-weight:300;line-height:1}
.ebb-inline-notice{font-size:12px;margin-top:7px;color:#b42318}

/* Modal shell */
.ebb-modal{position:fixed;inset:0;z-index:2147483647;display:none;align-items:center;justify-content:center;padding:22px}
.ebb-modal.is-open{display:flex}
.ebb-overlay{position:absolute;inset:0;border:0;background:rgba(39,27,35,.58);cursor:pointer}
.ebb-dialog{position:relative;z-index:2;width:min(var(--ebb-modal-width),100%);max-height:90vh;overflow:hidden;display:flex;flex-direction:column;background:#fff;border-radius:calc(var(--ebb-radius) + 2px);box-shadow:0 22px 70px rgba(31,20,27,.24)}
.ebb-close{position:absolute;right:9px;top:7px;width:38px;height:38px;border:0;background:transparent;color:var(--ebb-ink);font-size:26px;line-height:1;cursor:pointer;z-index:5;border-radius:8px}
.ebb-close:hover{background:#f8f5f7}
.ebb-modal-head{text-align:center;padding:16px 50px 11px;border-bottom:1px solid #eee8eb;flex:0 0 auto}
.ebb-modal-head h2{margin:0;font:inherit;font-size:23px;line-height:1.15;font-weight:850;color:var(--ebb-ink)}
.ebb-modal-head p{margin:5px auto 0;max-width:700px;color:var(--ebb-muted);font-size:12px;line-height:1.4}
.ebb-body{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden;padding:13px 18px 15px}

/* Progress: main product is step 1 */
.ebb-progress-region{flex:0 0 auto;min-width:0}
.ebb-progress-wrap{width:100%;overflow-x:auto;overflow-y:hidden;margin:0;padding:0 0 2px;scrollbar-width:thin}
.ebb-progress{display:grid;grid-template-columns:repeat(var(--ebb-step-count,4),minmax(0,1fr));width:100%;min-width:0;padding:0 12px;margin:0 auto}
.ebb-step{position:relative;min-width:0;text-align:center;padding:0 8px}
.ebb-step-track{position:absolute;top:11px;left:-50%;width:100%;height:2px;background:#ded8db;z-index:0}
.ebb-step:first-child .ebb-step-track{display:none}
.ebb-step.is-reached .ebb-step-track{background:var(--ebb-primary)}
.ebb-step-node{position:relative;z-index:1;width:22px;height:22px;margin:0 auto 5px;border:2px solid #cfc8cc;border-radius:50%;background:#fff;display:grid;place-items:center;color:#8b8087;font-size:9px;font-weight:800}
.ebb-step.is-reached .ebb-step-node{border-color:var(--ebb-primary);background:var(--ebb-primary);color:#fff}
.ebb-step.is-current .ebb-step-node{box-shadow:0 0 0 4px rgba(255,90,54,.11)}
.ebb-step-label{font-size:10px;line-height:1.2;color:var(--ebb-muted);font-weight:700;white-space:nowrap}
.ebb-step-value{font-size:15px;line-height:1.15;color:var(--ebb-ink);font-weight:850;margin-top:2px;white-space:nowrap}
.ebb-step.is-current:not(.is-main) .ebb-step-value{color:var(--ebb-primary)}
.ebb-step.is-main{text-align:left}
.ebb-main-step{display:flex;align-items:center;justify-content:center;gap:9px;max-width:235px;margin:7px auto 0;min-width:0}
.ebb-main-step__media{width:48px;height:48px;flex:0 0 48px;border-radius:8px;overflow:hidden;background:#f7f7f7;border:1px solid #ebe5e8;display:grid;place-items:center}
.ebb-main-step__media img{width:100%;height:100%;object-fit:contain;display:block}
.ebb-main-step__copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.ebb-main-step__label{font-size:9px;line-height:1.2;text-transform:uppercase;letter-spacing:.055em;font-weight:850;color:var(--ebb-primary);white-space:nowrap}
.ebb-main-step__name{max-width:170px;font-size:11.5px;line-height:1.25;font-weight:800;color:var(--ebb-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ebb-main-step__included{font-size:11px;line-height:1.2;font-weight:800;color:var(--ebb-ink)}
.ebb-mobile-main-summary{display:none}
.ebb-next-reward{text-align:center;min-height:24px;font-size:11.5px;font-weight:750;color:var(--ebb-primary);padding:4px 10px 9px}

/* Products section */
.ebb-products-region{min-height:0;flex:1 1 auto;display:flex;flex-direction:column}
.ebb-products-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px;padding-top:11px;border-top:1px solid #eee8eb}
.ebb-products-head h3{margin:0;font:inherit;font-size:15px;line-height:1.25;font-weight:850;color:var(--ebb-ink)}
.ebb-products-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.ebb-search-toggle{appearance:none;min-height:31px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #ddd4d9;border-radius:8px;background:#fff;color:var(--ebb-ink);font:inherit;font-size:10.5px;font-weight:750;cursor:pointer}
.ebb-search-toggle svg{width:14px;height:14px;flex:0 0 auto}
.ebb-search-toggle:hover,.ebb-search-toggle.is-active{border-color:var(--ebb-primary);color:var(--ebb-primary)}
.ebb-search-toggle:disabled{opacity:.45;cursor:default}
.ebb-search-panel{margin:0 0 9px}
.ebb-search-panel[hidden]{display:none!important}
.ebb-search-field{height:38px;display:grid;grid-template-columns:18px minmax(0,1fr) 30px;gap:6px;align-items:center;padding:0 5px 0 10px;border:1px solid #ddd4d9;border-radius:9px;background:#fff}
.ebb-search-field:focus-within{border-color:var(--ebb-primary);box-shadow:0 0 0 2px rgba(255,90,54,.08)}
.ebb-search-field>svg{width:15px;height:15px;color:var(--ebb-muted)}
.ebb-search{width:100%;height:100%;min-width:0;border:0!important;outline:0!important;padding:0 2px;font:inherit;font-size:12px;color:var(--ebb-ink);background:transparent!important;box-shadow:none!important}
.ebb-search::-webkit-search-cancel-button{display:none}
.ebb-search-close{width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--ebb-muted);font:inherit;font-size:20px;line-height:1;cursor:pointer}
.ebb-search-close:hover{background:#f6f2f4;color:var(--ebb-ink)}
.ebb-products-scroll{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
.ebb-status{padding:7px 0;text-align:center;color:var(--ebb-muted);font-size:11.5px}
.ebb-status:empty{display:none}
.ebb-grid{display:grid;grid-template-columns:repeat(var(--ebb-cols-desktop),minmax(0,1fr));gap:10px;align-items:stretch}
.ebb-card{position:relative;display:flex;flex-direction:column;border:1px solid #e8e1e5;border-radius:10px;padding:8px;background:#fff;min-width:0;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.ebb-card:hover{border-color:#d7cdd2;transform:translateY(-1px)}
.ebb-card.is-selected{border-color:var(--ebb-primary);box-shadow:0 0 0 1px var(--ebb-primary)}
.ebb-card-media{height:132px;display:grid;place-items:center;border-radius:7px;background:#f8f8f8;overflow:hidden}
.ebb-card-media img{width:100%;height:100%;object-fit:contain;display:block}
.ebb-card-title{font-size:11.5px;line-height:1.3;font-weight:750;color:var(--ebb-ink);margin:7px 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px}
.ebb-card-price{font-size:12px;line-height:1.3;font-weight:800;color:var(--ebb-price,#3155d7);margin-bottom:7px;min-height:16px}
.ebb-card-price del{opacity:.55;color:var(--ebb-price,#3155d7)}
.ebb-card-price ins{text-decoration:none;color:var(--ebb-discount-price,var(--ebb-price,#3155d7))}

/* Popup-only price color overrides. Keep !important scoped to our modal so theme rules cannot win. */
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price .amount,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price .woocommerce-Price-amount,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price .woocommerce-Price-currencySymbol,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price bdi{
  color:var(--ebb-price,#3155d7)!important;
}
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price del,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price del *,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price del .amount,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price del .woocommerce-Price-amount,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price del .woocommerce-Price-currencySymbol{
  color:var(--ebb-price,#3155d7)!important;
}
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price ins,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price ins *,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price ins .amount,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price ins .woocommerce-Price-amount,
html body .ebb-modal[data-ebb-modal] .ebb-dialog .ebb-card .ebb-card-price ins .woocommerce-Price-currencySymbol{
  color:var(--ebb-discount-price,var(--ebb-price,#3155d7))!important;
}
.ebb-variation{width:100%;min-height:34px;border:1px solid #ddd4d9;border-radius:7px;padding:0 8px;background:#fff;margin-bottom:7px;font:inherit;font-size:10.5px;color:var(--ebb-ink)}
.ebb-card-controls{display:block;margin-top:auto}
.ebb-card-action{width:100%;min-width:0;min-height:36px;padding:7px 10px;font-size:10.5px}
.ebb-card.is-selected .ebb-card-action{background:var(--ebb-ink)}

/* Footer */
.ebb-footer{border-top:1px solid #ebe5e8;background:#fff;padding:9px 18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,32%);align-items:center;gap:16px;flex:0 0 auto;box-shadow:0 -8px 20px rgba(50,32,43,.035)}
.ebb-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;align-items:stretch}
.ebb-totals div{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;min-width:0;padding:2px 18px}
.ebb-totals div+div:before{content:"";position:absolute;left:0;top:10%;bottom:10%;width:1px;background:#eee8eb}
.ebb-totals span{font-size:9px;text-transform:uppercase;letter-spacing:.055em;color:var(--ebb-muted);white-space:nowrap}
.ebb-totals strong{font-size:14px;line-height:1.25;color:var(--ebb-ink);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ebb-add-bundle{width:100%;min-width:0;min-height:43px;padding:8px 16px;justify-self:stretch;font-size:14px}
.ebb-add-bundle:disabled{opacity:.45;cursor:not-allowed}
.ebb-add-bundle.is-loading{opacity:.7;pointer-events:none}

@media (prefers-reduced-motion:reduce){
  .ebb-root.ebb-border-animation .ebb-offer-card::before{animation:none!important}
}

@media(max-width:900px) and (min-width:651px){
  .ebb-card-media{height:122px}
  .ebb-progress{padding-left:6px;padding-right:6px}
  .ebb-step{padding-left:5px;padding-right:5px}
  .ebb-main-step__media{width:44px;height:44px;flex-basis:44px}
}

@media(max-width:650px){
  .ebb-root{margin:12px 0}
  .ebb-offer-card{grid-template-columns:34px minmax(0,1fr);gap:9px;padding:11px}
  .ebb-root.ebb-border-animation .ebb-offer-card{padding:13px}
  .ebb-offer-icon{width:31px;height:31px}
  .ebb-offer-title{font-size:15px}
  .ebb-open{grid-column:1/3;width:100%;min-width:0;margin-top:2px}

  /* Full-screen mobile builder: header, progress and footer stay fixed. */
  .ebb-modal{padding:0;align-items:stretch;justify-content:stretch}
  .ebb-dialog{width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0}
  .ebb-modal-head{padding:calc(12px + env(safe-area-inset-top)) 44px 8px;flex:0 0 auto}
  .ebb-modal-head h2{font-size:18px}
  .ebb-modal-head p{font-size:10.5px;line-height:1.35;margin-top:4px}
  .ebb-close{right:4px;top:calc(3px + env(safe-area-inset-top));width:42px;height:42px}
  .ebb-body{padding:8px 10px 9px;flex:1 1 auto;min-height:0;overflow:hidden}

  /* Progress never scrolls with the product list. */
  .ebb-progress-region{flex:0 0 auto}
  .ebb-progress-wrap{margin-top:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .ebb-progress-wrap::-webkit-scrollbar{display:none}
  .ebb-progress{min-width:var(--ebb-progress-mobile-min,100%);padding-left:2px;padding-right:2px}
  .ebb-step{padding:0 3px;text-align:center}
  .ebb-step.is-main{text-align:center}
  .ebb-step-track{top:10px}
  .ebb-step-node{width:21px;height:21px;margin-bottom:4px}
  .ebb-step-label{font-size:8.5px;line-height:1.15}
  .ebb-step-value{font-size:13.5px;line-height:1.1;margin-top:2px}

  /* On mobile the image sits directly below step 1; the long product name moves below the stepper. */
  .ebb-main-step{flex-direction:column;justify-content:flex-start;align-items:center;gap:3px;margin:5px auto 0;max-width:none}
  .ebb-main-step__media{width:34px;height:34px;flex:0 0 34px;border-radius:6px}
  .ebb-main-step__copy{align-items:center;gap:1px}
  .ebb-main-step__label,.ebb-main-step__name{display:none}
  .ebb-main-step__included{font-size:9px;line-height:1.15;text-align:center;white-space:nowrap}
  .ebb-mobile-main-summary{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;margin:6px 0 0;padding:6px 8px;border:1px solid #eee8eb;border-radius:8px;background:#fbfafb;color:var(--ebb-ink);font-size:10px;line-height:1.25}
  .ebb-mobile-main-summary__label{flex:0 0 auto;color:var(--ebb-muted);font-weight:700}
  .ebb-mobile-main-summary__name{min-width:0;max-width:72%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;color:var(--ebb-ink)}
  .ebb-next-reward{min-height:0;font-size:10.5px;line-height:1.3;padding:6px 8px 8px}

  /* Product section occupies the remaining height; only its product list scrolls. */
  .ebb-products-region{min-height:0;flex:1 1 auto;display:flex;flex-direction:column}
  .ebb-products-head{flex:0 0 auto;margin:0 0 7px;padding-top:8px}
  .ebb-products-head h3{font-size:13px}
  .ebb-products-actions{gap:5px}
  .ebb-search-toggle{min-height:30px;padding:0 9px;font-size:10px}
  .ebb-search-toggle svg{width:13px;height:13px}
  .ebb-search-panel{flex:0 0 auto;margin-bottom:7px}
  .ebb-search-field{height:36px}
  .ebb-search{font-size:11px}
  .ebb-products-scroll{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:1px}
  .ebb-grid{grid-template-columns:repeat(var(--ebb-cols-mobile),minmax(0,1fr));gap:8px}
  .ebb-card{padding:7px}
  .ebb-card-media{height:105px}
  .ebb-card-title{font-size:10.5px;min-height:28px;margin-top:6px}
  .ebb-card-price{font-size:10.5px;margin-bottom:6px}
  .ebb-variation{min-height:32px;font-size:10px;margin-bottom:6px}
  .ebb-card-action{min-height:34px;font-size:10px;padding-left:6px;padding-right:6px}

  /* Compact sticky footer. */
  .ebb-footer{padding:7px 10px calc(7px + env(safe-area-inset-bottom));display:block;flex:0 0 auto}
  .ebb-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:7px}
  .ebb-totals div{min-width:0;padding:2px 5px}
  .ebb-totals div+div:before{top:5%;bottom:5%}
  .ebb-totals span{font-size:7.5px;letter-spacing:.04em;white-space:normal;line-height:1.1;min-height:17px;display:flex;align-items:center;justify-content:center}
  .ebb-totals strong{font-size:11.5px;overflow:hidden;text-overflow:ellipsis}
  .ebb-add-bundle{width:100%;min-width:0;min-height:41px;font-size:13px}
}

@media(max-width:390px){
  .ebb-modal-head{padding-left:40px;padding-right:40px}
  .ebb-modal-head h2{font-size:17px}
  .ebb-modal-head p{font-size:10px}
  .ebb-body{padding-left:8px;padding-right:8px}
  .ebb-grid{grid-template-columns:1fr}
  .ebb-card{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:9px;align-items:start}
  .ebb-card-media{grid-row:1/4;width:92px;height:92px}
  .ebb-card-title{grid-column:2;margin:1px 0 3px;min-height:0;font-size:11px;-webkit-line-clamp:2}
  .ebb-card-price{grid-column:2;margin:0 0 6px;font-size:11px}
  .ebb-variation{grid-column:2;margin-bottom:6px}
  .ebb-card-controls{grid-column:2}
  .ebb-card-action{min-height:34px}
  .ebb-mobile-main-summary__name{max-width:66%}
}

@media(prefers-reduced-motion:reduce){
  .ebb-open,.ebb-add-bundle,.ebb-card-action,.ebb-card{transition:none}
}

/* Bundle prices outside the builder (cart / checkout / mini-cart). */
.ebb-price-discount del{opacity:.55}
.ebb-price-discount ins{text-decoration:none;color:var(--ebb-discount-price,#3155d7);font-weight:700}
