.ebc{box-sizing:border-box;max-width:900px;padding:22px;border:1px solid #dce5ea;border-radius:14px;background:#fff;color:#263842;font:inherit}.ebc *{box-sizing:border-box}.ebc h2{font-size:1.3em;margin:0 0 10px}.ebc-info,.ebc-foot{font-size:.88em;color:#596c76}.ebc-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.ebc label{display:block;font-weight:600}.ebc input,.ebc textarea{width:100%;padding:10px;border:1px solid #aabdc6;border-radius:7px;font:inherit}.ebc details{margin:12px 0}.ebc summary{cursor:pointer}.ebc textarea{margin-top:8px}.ebc-run{background:#156c84!important;color:white!important;border:0;border-radius:8px;padding:11px 23px;cursor:pointer}.ebc-tablewrap{overflow-x:auto;margin-top:16px}.ebc table{width:100%;border-collapse:collapse;font-size:.9em}.ebc th,.ebc td{padding:10px 7px;border-bottom:1px solid #dce5ea;text-align:left;vertical-align:top}.ebc th{background:#f0f6f8}.ebc td:nth-child(2),.ebc td:nth-child(3){text-align:right;white-space:nowrap}.ebc .ebc-warning{color:#9a4a1c}.ebc .ebc-ok{color:#236b42}.ebc a{overflow-wrap:anywhere}.ebc-total{font-weight:700;margin-top:14px}.ebc-foot{margin-top:16px}@media(max-width:520px){.ebc{padding:14px}.ebc-inputs{grid-template-columns:1fr}.ebc table{font-size:.82em}.ebc th,.ebc td{padding:8px 4px}}

.ebc-consent{display:block;margin:14px 0;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px}.ebc-consent input{margin-right:6px}

/* v14: checkbox and mobile results */
.ebc .ebc-consent{display:flex;align-items:flex-start;gap:9px;line-height:1.55}
.ebc .ebc-consent input{width:auto!important;flex:0 0 18px;height:18px;margin:3px 0 0}
.ebc .ebc-result a{display:inline-block;margin-top:4px;overflow-wrap:normal;word-break:normal}
@media(max-width:640px){
 .ebc-tablewrap{overflow:visible}.ebc table,.ebc tbody,.ebc tr,.ebc td{display:block;width:100%}
 .ebc thead{display:none}.ebc tr{border:1px solid #dce5ea;border-radius:10px;margin:0 0 12px;padding:8px 12px;background:#fff}
 .ebc td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;border:0!important;padding:7px 0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
 .ebc td:before{content:attr(data-label);font-size:.85em;font-weight:700;color:#52646d}
 .ebc td:first-child{font-weight:700;border-bottom:1px solid #dce5ea!important;grid-template-columns:1fr}
 .ebc td:first-child:before{display:none}
}

.ebc .ebc-affiliate{display:inline-block;background:#156c84;color:#fff!important;text-decoration:none;padding:9px 15px;border-radius:7px;font-weight:700;margin-top:8px}.ebc .ebc-affiliate:hover{background:#0e5063;color:#fff!important}

/* v16: compact desktop headers, clearer price hierarchy */
.ebc .ebc-tablewrap{max-width:100%}
@media(min-width:641px){
 .ebc table{min-width:790px;table-layout:auto}
 .ebc th{font-weight:750;white-space:nowrap;font-size:.94em}
 .ebc th:nth-child(3),.ebc th:nth-child(4){text-align:right}
 .ebc td:nth-child(3),.ebc td:nth-child(4){text-align:right;white-space:nowrap}
}
.ebc .ebc-pay{font-weight:800;color:#ba2633;font-size:1.08em}
.ebc .ebc-reward{font-weight:750;color:#265e80}
.ebc .ebc-pending{color:#596c76}
@media(max-width:640px){
 .ebc td.ebc-pay{font-weight:800;color:#ba2633}
 .ebc td.ebc-reward{font-weight:750;color:#265e80}
}

/* v17: distinguish the primary calculate action from store links */
.ebc a.ebc-affiliate, .ebc .ebc-result a.ebc-affiliate {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;max-width:100%;min-height:0!important;
  padding:5px 12px!important;margin-top:5px!important;
  background:#202124!important;color:#fff!important;
  border:1px solid #202124!important;border-radius:4px!important;
  font-size:12px!important;font-weight:600!important;line-height:1.35!important;
  text-decoration:none!important;box-shadow:none!important;
  transition:background-color .15s ease;
}
.ebc a.ebc-affiliate:hover,.ebc a.ebc-affiliate:focus-visible {
  background:#454545!important;border-color:#454545!important;color:#fff!important;
}
.ebc a.ebc-affiliate:focus-visible {outline:2px solid #777!important;outline-offset:2px}


/* v18: no duplicate regular-price column; fluid desktop table */
.ebc .ebc-run{display:block!important;width:min(100%,360px)!important;margin:12px auto!important;padding:8px 24px!important;min-height:0!important;line-height:1.4!important;font-weight:700!important}
@media(min-width:641px){
 .ebc .ebc-tablewrap{overflow-x:visible!important;width:100%!important}
 .ebc .ebc-tablewrap table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:clamp(11px,1.05vw,14px)!important}
 .ebc .ebc-tablewrap th,.ebc .ebc-tablewrap td{padding:9px 5px!important;overflow-wrap:anywhere;word-break:normal}
 .ebc .ebc-tablewrap th{white-space:normal!important;line-height:1.35}
 .ebc .ebc-tablewrap th:nth-child(1){width:23%}
 .ebc .ebc-tablewrap th:nth-child(2){width:22%}
 .ebc .ebc-tablewrap th:nth-child(3){width:18%}
 .ebc .ebc-tablewrap th:nth-child(4){width:37%}
 .ebc .ebc-tablewrap td:nth-child(2),.ebc .ebc-tablewrap td:nth-child(3){text-align:right!important;white-space:normal!important}
 .ebc .ebc-tablewrap td:nth-child(4){font-size:.94em}
}
/* v18: mobile cards and wider, centered black affiliate buttons */
@media(max-width:640px){
 .ebc .ebc-tablewrap table{font-size:15px!important}
 .ebc .ebc-tablewrap td{grid-template-columns:minmax(112px,43%) minmax(0,1fr)!important;gap:9px!important;line-height:1.5!important}
 .ebc .ebc-tablewrap td:before{font-size:13px!important}
 .ebc .ebc-tablewrap td:first-child{font-size:17px!important;grid-template-columns:1fr!important}
 .ebc .ebc-pay{font-size:17px!important}
 .ebc .ebc-tablewrap td:last-child{display:block!important}
 .ebc .ebc-tablewrap td:last-child:before{display:block!important;margin-bottom:5px}
 .ebc a.ebc-affiliate,.ebc .ebc-result a.ebc-affiliate{display:flex!important;width:min(100%,280px)!important;min-height:34px!important;margin:12px auto 4px!important;padding:7px 18px!important;font-size:14px!important}
}

.ebc .ebc-consent-note{font-size:12px;color:#64748b;margin:-6px 0 12px;line-height:1.6}

/* v20: center the comparison tool on desktop and emphasize store names */
@media (min-width:641px){
 .ebc{margin-left:auto!important;margin-right:auto!important;width:100%;}
 .ebc .ebc-tablewrap td:first-child{font-weight:800!important;font-size:15px!important;line-height:1.5!important;}
}
@media (max-width:640px){
 .ebc .ebc-tablewrap td:first-child{font-weight:800!important;}
}


/* v21: distinct, accessible expandable per-volume price input */
.ebc details > summary{
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;
  list-style:none;cursor:pointer;
  background:#eaf6ed!important;color:#216b3c!important;
  border:1px solid #a6d6b3!important;border-radius:8px;
  padding:12px 14px!important;font-weight:700!important;
  font-size:1em!important;line-height:1.5!important;
  transition:background-color .15s ease;
}
.ebc details > summary::-webkit-details-marker{display:none}
.ebc details > summary::after{
  content:"";display:block;flex:none;width:8px;height:8px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);transition:transform .15s ease;
  margin-right:3px;margin-top:-4px;
}
.ebc details[open] > summary{border-radius:8px 8px 4px 4px;background:#dff0e4!important}
.ebc details[open] > summary::after{transform:rotate(225deg);margin-top:4px}
.ebc details > summary:hover{background:#dff0e4!important}
.ebc details > summary:focus-visible{outline:3px solid #236b42;outline-offset:3px}
@media(max-width:640px){.ebc details > summary{font-size:15px!important;padding:12px!important}}

/* v22: slightly smaller labels on narrow smartphones only */
@media(max-width:640px){
  .ebc details > summary{font-size:clamp(12.5px,3.55vw,14px)!important;padding:10px 7px!important;gap:4px!important;letter-spacing:-.035em!important;white-space:nowrap!important;}
  .ebc details > summary::after{width:7px;height:7px;margin-right:1px;}
  .ebc .ebc-consent{font-size:clamp(12px,3.4vw,13.5px)!important;gap:5px!important;padding:10px 6px!important;letter-spacing:-.035em!important;white-space:nowrap!important;align-items:center!important;}
  .ebc .ebc-consent input{flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;}
}

/* v25: center all desktop result columns except store names */
@media (min-width:641px) {
  .ebc .ebc-tablewrap th:first-child,
  .ebc .ebc-tablewrap td:first-child {text-align:left!important;}
  .ebc .ebc-tablewrap th:not(:first-child),
  .ebc .ebc-tablewrap td:not(:first-child) {text-align:center!important;}
  .ebc .ebc-tablewrap td:last-child a.ebc-affiliate {margin-left:auto!important;margin-right:auto!important;}
}

/* v38: Show the actual configured benefit alongside estimated prices. */
@media(min-width:641px){
 .ebc .ebc-tablewrap th:nth-child(1){width:19%!important}
 .ebc .ebc-tablewrap th:nth-child(2){width:23%!important}
 .ebc .ebc-tablewrap th:nth-child(3){width:18%!important}
 .ebc .ebc-tablewrap th:nth-child(4){width:14%!important}
 .ebc .ebc-tablewrap th:nth-child(5){width:26%!important}
 .ebc .ebc-tablewrap td:nth-child(5){font-size:.94em}
}
.ebc .ebc-benefit{font-weight:600;line-height:1.5;font-size:.94em}
@media(max-width:640px){
 .ebc .ebc-benefit{font-size:14px!important}
}

/* v39: emphasize the normal price on mobile, de-emphasize volume count. */
.ebc .ebc-total-count{font-weight:400;font-size:.85em;margin-left:.25em;color:#596c76}
@media(max-width:640px){
 .ebc .ebc-total-main{font-size:19px!important;font-weight:700!important}
 .ebc .ebc-total-count{font-size:12px!important;font-weight:400!important}
}

/* v40: equal-size volume count; lighter and smaller benefit parentheses. */
.ebc .ebc-total-count{font-size:1em!important;font-weight:700!important;color:inherit!important}
.ebc .ebc-benefit-detail{font-size:.85em!important;font-weight:400!important;color:#596c76;line-height:1.5}
@media(max-width:640px){
 .ebc .ebc-total-count{font-size:19px!important;font-weight:700!important}
 .ebc .ebc-benefit-detail{font-size:12px!important;font-weight:400!important}
}

/* v42: No first-time offer; show input normal price without discount emphasis. */
.ebc-normal-pay{font-weight:600;color:inherit;}

/* v45: five-column comparison with the CTA in its own column */
.ebc .ebc-checked{margin:10px 0 0;font-size:.85em;color:#596c76}
.ebc .ebc-tablewrap td.ebc-normal-pay{color:inherit!important;font-weight:700!important}
@media(min-width:521px){.ebc .ebc-tablewrap th:nth-child(1){width:19%!important}.ebc .ebc-tablewrap th:nth-child(2){width:27%!important}.ebc .ebc-tablewrap th:nth-child(3){width:18%!important}.ebc .ebc-tablewrap th:nth-child(4){width:15%!important}.ebc .ebc-tablewrap th:nth-child(5){width:21%!important}}

/* v46: Keep the concise parenthetical benefit detail intact on mobile.
   On narrow cards, move the entire benefit to its own line to avoid overflow. */
.ebc .ebc-benefit-detail{display:inline-block;white-space:nowrap;max-width:100%;vertical-align:baseline;}
@media(max-width:640px){
 .ebc .ebc-tablewrap td:nth-child(2){display:block!important;min-width:0!important;white-space:normal!important;text-align:left!important;}
 .ebc .ebc-tablewrap td:nth-child(2)::before{display:block!important;margin-bottom:3px;}
 .ebc .ebc-benefit-detail{font-size:12px!important;font-weight:400!important;white-space:nowrap!important;}
}

.ebc .ebc-example-note{font-size:.8em;color:#687981;margin:4px 0 12px;line-height:1.6;}

/* Space between expanded price-entry heading and guidance */
.ebc details[open] > summary + p{margin-top:10px!important;}

/* Match the per-volume entry guidance to the introductory description. */
.ebc details > p{font-size:.88em;}

/* Keep both explanatory paragraphs visually identical in SWELL and other themes. */
.ebc p.ebc-info,
.ebc details > p {
  font-size: .88em !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: normal !important;
}

/* Align both small notes exactly, including SWELL overrides. */
.ebc p.ebc-example-note,
.ebc p.ebc-consent-note {
  font-size: .8em !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: normal !important;
}
