:root{
  --bd-radius:4px;
  --bd-border:#e7e7e7;
  --bd-text:#102744;
  --bd-muted:#63758a;
  --bd-bg:#fff;
  --bd-soft:#f5f4ef;
  --bd-accent:#0875c9;
  --bd-blue:#247fc7;
  --bd-blue-dark:#096db8;
  --bd-orange:#f57a00;
  --bd-orange-dark:#dc6900;
  --bd-green:#418b68;
  --bd-brown:#7b5745;
  --bd-dark:#34353a;
  --bd-wheat:#d59d22;
}
.bd-library,.bd-finder,.bd-detail{font-family:inherit;color:var(--bd-text)}
.bd-library-pro{width:100%}
.bd-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.bd-search-wrap{position:relative;flex:1;min-width:260px}
.bd-search-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:26px;line-height:1;color:#122743;pointer-events:none}
.bd-search{width:100%;height:48px;border:1px solid #dbe1e7;border-radius:10px;padding:0 16px 0 45px;font-size:14px;background:#fff;color:#122743;outline:none;box-shadow:none!important}
.bd-search:focus{border-color:#1582ce;box-shadow:0 0 0 3px rgba(21,130,206,.1)!important}
.bd-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0}
.bd-filter{border:1px solid #d8dfe6;background:#fff;color:#142741;border-radius:10px;padding:11px 15px;min-height:42px;cursor:pointer;font-size:12px;font-weight:700;white-space:nowrap;transition:.15s ease}
.bd-filter:hover{border-color:#1480cb}
.bd-filter.is-active{background:#1480cb;color:#fff;border-color:#1480cb}
.bd-library-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 12px;font-size:12px;color:var(--bd-muted)}
.bd-reset{border:0;background:transparent;color:#0875c9;font:inherit;font-weight:700;cursor:pointer;padding:4px 0}

.bd-recipe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#f3f2ed;padding:0}
.bd-card{--card:#247fc7;--card-dark:#096db8;position:relative;background:#fff;border:1px solid #eceae4;border-radius:5px;overflow:hidden;min-width:0;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.bd-card-main{position:relative;min-height:166px;padding:16px 16px 13px;background:linear-gradient(135deg,var(--card),var(--card-dark));color:#fff;overflow:hidden}
.bd-card-kicker{font-family:"Arial Narrow",Arial,sans-serif;font-size:9px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase;opacity:.92;margin-bottom:8px}
.bd-card h3{position:relative;z-index:2;margin:0 0 10px;font-family:"Arial Narrow",Impact,sans-serif;font-stretch:condensed;font-size:24px;line-height:.98;text-transform:uppercase;letter-spacing:-.5px;color:#fff}
.bd-card h3 a{color:inherit;text-decoration:none}
.bd-card-description{position:relative;z-index:2;margin:0 0 13px;padding-left:16px;color:rgba(255,255,255,.78);font-size:12.5px;line-height:1.45;font-style:italic;min-height:54px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.bd-card-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bd-card-stats div{min-width:0}
.bd-card-stats span{display:block;font-family:"Arial Narrow",Arial,sans-serif;font-size:7px;line-height:1;text-transform:uppercase;letter-spacing:1.1px;font-weight:700;opacity:.85;margin-bottom:5px}
.bd-card-stats strong{display:block;font-family:"Arial Narrow",Impact,sans-serif;font-size:17px;line-height:1;color:#fff;white-space:nowrap}
.bd-card-watermark{position:absolute;right:-6px;bottom:-22px;font-family:Impact,"Arial Narrow",sans-serif;font-size:76px;line-height:1;color:rgba(255,255,255,.18);font-weight:900;pointer-events:none}
.bd-card-actions{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:4px 8px 4px 14px;min-height:44px;background:#fff}
.bd-card-details,.bd-brew-this{border:0;background:transparent;cursor:pointer;font-family:"Arial Narrow",Arial,sans-serif;font-size:9px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.bd-card-details{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--card-dark);padding:10px 0;text-align:left}
.bd-card-details span{font-size:15px;transition:transform .18s ease}
.bd-card-details[aria-expanded="true"] span{transform:rotate(180deg)}
.bd-brew-this{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;border-radius:4px;background:var(--card);color:#fff;padding:8px 12px;transition:.15s ease}
.bd-brew-this:hover{filter:brightness(.92);transform:translateY(-1px)}
.bd-brew-this:disabled{opacity:.48;cursor:not-allowed;transform:none}
.bd-cart-icon{font-size:13px;line-height:1}
.bd-card-expand{border-top:1px solid #eceae4;background:#fff;padding:12px 14px 14px}
.bd-card-formula{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.bd-card-formula span{font-size:8px;letter-spacing:1.2px;font-weight:800;color:#8794a2}
.bd-card-formula strong{font-size:11px;color:#1b314a}
.bd-mini-components{display:grid;gap:5px}
.bd-mini-component{display:grid;grid-template-columns:65px 1fr auto;gap:8px;align-items:center;font-size:10px;line-height:1.25;color:#223b55}
.bd-mini-component.is-unavailable{opacity:.48}
.bd-mini-role{font-weight:800;text-transform:uppercase;font-size:8px;letter-spacing:.7px}
.bd-mini-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bd-mini-status{font-weight:900;color:#25804d}
.bd-mini-component.is-unavailable .bd-mini-status{color:#a34848}
.bd-full-details{display:inline-block;margin-top:11px;color:var(--card-dark);text-decoration:none;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}
.bd-card-message{display:none;padding:9px 12px;border-top:1px solid #e8e8e8;background:#f7fbfe;color:#143c5c;font-size:11px;line-height:1.35}
.bd-card-message.is-visible{display:block}
.bd-card-message a{color:inherit;font-weight:800}

.bd-family-lager{--card:#257fc8;--card-dark:#086ebc}
.bd-family-pale-ale{--card:#fb8200;--card-dark:#ed7000}
.bd-family-ipa{--card:#e65336;--card-dark:#c7432c}
.bd-family-wheat{--card:#d9a52a;--card-dark:#bd8612}
.bd-family-brown-ale{--card:#8b6149;--card-dark:#6c4634}
.bd-family-stout-porter{--card:#41434a;--card-dark:#24262b}

.bd-no-results{padding:36px;text-align:center;background:#f7f7f5;border-radius:8px;margin-top:14px}

/* Finder */
.bd-finder{border:1px solid var(--bd-border);border-radius:24px;padding:28px;background:#fff}.bd-progress{height:6px;background:#f7f7f5;border-radius:99px;overflow:hidden;margin-bottom:28px}.bd-progress span{display:block;height:100%;width:25%;background:#111;transition:.25s}.bd-step{display:none}.bd-step.is-active{display:block}.bd-step-kicker{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#6b6b6b}.bd-step h3{font-size:30px;margin:8px 0 10px}.bd-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.bd-choice{border:1px solid #e7e7e7;background:#fff;border-radius:14px;padding:15px;cursor:pointer;text-align:left}.bd-choice.is-selected{background:#111;color:#fff;border-color:#111}.bd-step-nav{display:flex;justify-content:space-between;gap:10px;margin-top:24px}.bd-next,.bd-prev,.bd-restart,.bd-add-selected{border:0;border-radius:12px;padding:13px 18px;cursor:pointer;font-weight:600}.bd-next,.bd-add-selected{background:#111;color:#fff}.bd-next:disabled,.bd-add-selected:disabled{opacity:.45;cursor:not-allowed}.bd-results-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.bd-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.bd-result-card{border:1px solid #e7e7e7;border-radius:16px;padding:18px;color:inherit;text-decoration:none}.bd-rank{font-weight:700}.bd-result-card p{color:#6b6b6b}

/* Recipe detail */
.bd-detail-hero{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}.bd-detail-hero img{width:100%;border-radius:24px}.bd-detail h1{font-size:clamp(36px,5vw,64px);margin:10px 0}.bd-family{font-weight:700}.bd-specs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.bd-specs span{background:#f7f7f5;padding:10px 12px;border-radius:10px}.bd-formula{display:inline-block;background:#f7f7f5;border-radius:10px;padding:8px 10px;font-weight:600;letter-spacing:.03em}.bd-formula-large{font-size:18px}.bd-components{margin-top:36px;border-top:1px solid #e7e7e7;padding-top:24px}.bd-component-list{display:grid;gap:10px}.bd-component{display:grid;grid-template-columns:auto 90px 1fr auto auto;gap:14px;align-items:center;border:1px solid #e7e7e7;border-radius:14px;padding:14px}.bd-component.is-unavailable{opacity:.55}.bd-role{font-weight:700}.bd-stock{font-size:13px;color:#6b6b6b}.bd-price{font-weight:700}.bd-purchase{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f7f7f5;padding:16px;border-radius:16px}.bd-purchase strong{display:block;font-size:24px}.bd-cart-message{margin-top:10px}

@media(max-width:1180px){.bd-toolbar{align-items:flex-start;flex-direction:column}.bd-filters{width:100%}.bd-recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.bd-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-results-grid{grid-template-columns:1fr}.bd-detail-hero{grid-template-columns:1fr}.bd-component{grid-template-columns:auto 80px 1fr auto}.bd-stock{grid-column:3/5}.bd-choice-grid{grid-template-columns:1fr}}
@media(max-width:620px){.bd-recipe-grid{grid-template-columns:1fr}.bd-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.bd-filter{flex:0 0 auto}.bd-library-meta{align-items:flex-start}.bd-card-main{min-height:170px}.bd-card h3{font-size:27px}.bd-card-description{font-size:13px}.bd-finder{padding:20px}.bd-step h3{font-size:25px}.bd-purchase{position:sticky;bottom:10px;z-index:5}.bd-component{grid-template-columns:auto 1fr auto}.bd-role{grid-column:2}.bd-product-name{grid-column:2/4}.bd-stock{grid-column:2}.bd-price{grid-column:3;grid-row:1}.bd-add-selected{max-width:58%}}

/* Recipe popup */
body.bd-modal-open{overflow:hidden}
.bd-card-main.bd-open-recipe{cursor:pointer}
.bd-modal{position:fixed;inset:0;z-index:999999;display:none}
.bd-modal.is-open{display:block}
.bd-modal-backdrop{position:absolute;inset:0;background:rgba(9,22,38,.72);backdrop-filter:blur(5px)}
.bd-modal-dialog{position:relative;width:min(980px,calc(100% - 32px));max-height:calc(100vh - 32px);margin:16px auto;background:#fff;border-radius:20px;overflow:auto;box-shadow:0 30px 90px rgba(0,0,0,.32)}
.bd-modal-close{position:sticky;top:14px;float:right;margin:14px 14px -58px 0;z-index:20;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#102744;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 4px 18px rgba(0,0,0,.16)}
.bd-modal-loading,.bd-modal-error{padding:80px 30px;text-align:center;font-weight:700}
.bd-modal-head{--card:#247fc7;--card-dark:#096db8;display:grid;grid-template-columns:1.35fr .65fr;gap:28px;padding:38px;background:linear-gradient(135deg,var(--card),var(--card-dark));color:#fff}
.bd-modal-head h2{margin:8px 0 12px;color:#fff;font-family:"Arial Narrow",Impact,sans-serif;font-size:44px;line-height:1;text-transform:uppercase}
.bd-modal-head p{max-width:650px;color:rgba(255,255,255,.84);font-size:15px;line-height:1.6;font-style:italic}
.bd-modal-head img{width:100%;height:230px;object-fit:cover;border-radius:14px;align-self:center}
.bd-modal-kicker,.bd-section-kicker{font-size:10px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase}
.bd-modal-specs{display:flex;gap:22px;flex-wrap:wrap;margin-top:20px}
.bd-modal-specs span{display:grid;gap:3px}.bd-modal-specs strong{font-size:22px}.bd-modal-specs small{font-size:9px;letter-spacing:1px;opacity:.8}
.bd-modal-formula{display:inline-block;margin-top:20px;padding:9px 12px;border:1px solid rgba(255,255,255,.28);border-radius:8px;font-weight:800;letter-spacing:.6px}
.bd-modal-recipe .bd-components{margin:0;padding:30px 38px;border:0}
.bd-modal-recipe .bd-components h2{margin-top:0;font-size:26px}
.bd-modal-recipe .bd-component{grid-template-columns:auto 90px 1fr auto auto;background:#fff}
.bd-purchase-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bd-add-all{border:1px solid #102744;background:#fff;color:#102744;border-radius:12px;padding:13px 18px;cursor:pointer;font-weight:700}
.bd-recipe-steps{padding:6px 38px 42px;border-top:1px solid #eceff2}
.bd-recipe-steps h3{font-size:30px;margin:7px 0 22px;color:#102744}
.bd-recipe-steps ol{list-style:none;counter-reset:bdstep;padding:0;margin:0;display:grid;gap:14px}
.bd-recipe-steps li{counter-increment:bdstep;position:relative;padding:17px 18px 17px 62px;background:#f6f8fa;border-radius:12px;line-height:1.55;color:#263c54}
.bd-recipe-steps li:before{content:counter(bdstep);position:absolute;left:16px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#147fca;color:#fff;font-weight:900}
.bd-empty-steps{padding:18px;background:#fff7df;border:1px solid #f3df9b;border-radius:12px;color:#6d5715}
.bd-result-card{width:100%;text-align:left;background:#fff;cursor:pointer}
@media(max-width:700px){.bd-modal-dialog{width:100%;max-height:100vh;height:100%;margin:0;border-radius:0}.bd-modal-head{grid-template-columns:1fr;padding:28px 22px}.bd-modal-head h2{font-size:34px}.bd-modal-head img{height:180px}.bd-modal-recipe .bd-components,.bd-recipe-steps{padding-left:20px;padding-right:20px}.bd-modal-recipe .bd-component{grid-template-columns:auto 1fr auto}.bd-modal-recipe .bd-product-name{grid-column:2/4}.bd-modal-recipe .bd-stock{grid-column:2}.bd-modal-recipe .bd-price{grid-column:3;grid-row:1}.bd-modal-recipe .bd-purchase{align-items:stretch;flex-direction:column}.bd-purchase-actions{justify-content:stretch}.bd-purchase-actions button{flex:1}.bd-recipe-steps h3{font-size:25px}}

/* ===== v1.3.0 visual refresh: neutral recipe cards + 6 family-specific beer glasses ===== */
.bd-library-pro{--bd-navy:#082b53;--bd-blue:#087fc9;--bd-cream:#fbfaf6;--bd-line:#dde5ec;color:var(--bd-navy)}
.bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bd-library-pro .bd-card{background:#fff;border:1px solid #e3e8ed;border-radius:12px;box-shadow:0 5px 18px rgba(13,39,66,.06);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.bd-library-pro .bd-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(13,39,66,.11);border-color:#ccd8e2}
.bd-library-pro .bd-card-main{min-height:230px;background:#fff!important;color:var(--bd-navy)!important;padding:20px 16px 15px;display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;position:relative}
.bd-library-pro .bd-card-copy{min-width:0;align-self:stretch;display:flex;flex-direction:column}
.bd-library-pro .bd-card-kicker{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#087fc9;margin-bottom:7px}
.bd-library-pro .bd-card h3{font-size:21px;line-height:1.05;color:var(--bd-navy);margin:0 0 8px;text-transform:uppercase}
.bd-library-pro .bd-card-description{font-size:12px;line-height:1.45;color:#607489;font-style:italic;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bd-library-pro .bd-card-stats{margin-top:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;border-top:1px solid #e7edf2;padding-top:10px}
.bd-library-pro .bd-card-stats span{display:block;font-size:7px;letter-spacing:.08em;color:#7b8da0;font-weight:800}
.bd-library-pro .bd-card-stats strong{display:block;font-size:14px;line-height:1.1;color:#0a315d;margin-top:3px}
.bd-library-pro .bd-card-actions{background:#fff;border-top:1px solid #e7edf2;padding:8px 10px;gap:8px}
.bd-library-pro .bd-card-details{color:#087fc9;background:transparent;font-weight:800;font-size:10px;letter-spacing:.05em}
.bd-library-pro .bd-brew-this{border-radius:7px;background:#087fc9!important;color:#fff!important;padding:10px 12px;font-size:10px;font-weight:900;box-shadow:none}
.bd-library-pro .bd-brew-this:disabled{background:#b8d3e6!important}
.bd-card-watermark{display:none!important}

/* Beer visual shared structure */
.bd-beer-visual{position:relative;width:78px;height:150px;margin:auto;flex:0 0 auto;filter:drop-shadow(0 8px 8px rgba(17,38,60,.15))}
.bd-beer-visual .bd-glass-shell{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:50px;height:125px;overflow:hidden;border:2px solid rgba(160,176,188,.72);background:linear-gradient(90deg,rgba(255,255,255,.65),rgba(255,255,255,.12) 34%,rgba(255,255,255,.34) 82%,rgba(255,255,255,.64));box-shadow:inset 4px 0 7px rgba(255,255,255,.35),inset -3px 0 6px rgba(110,130,145,.08)}
.bd-beer-visual .bd-beer-liquid{position:absolute;left:4px;right:4px;bottom:4px;height:84%;background:linear-gradient(90deg,var(--beer-dark),var(--beer) 42%,var(--beer-light));overflow:visible}
.bd-beer-visual .bd-beer-foam{position:absolute;left:-1px;right:-1px;top:-6px;height:12px;background:#fff8e8;border-radius:55% 55% 38% 38%;box-shadow:0 2px 2px rgba(255,255,255,.75)}
.bd-beer-visual .bd-beer-foam:before,.bd-beer-visual .bd-beer-foam:after{content:"";position:absolute;background:#fff8e8;border-radius:50%;width:13px;height:10px;top:-3px}.bd-beer-visual .bd-beer-foam:before{left:8px}.bd-beer-visual .bd-beer-foam:after{right:7px}
.bd-glass-stem,.bd-glass-base{display:none;position:absolute;left:50%;transform:translateX(-50%);background:rgba(188,199,207,.58)}
/* 1 Lager / Pilsner: tall slender pilsner glass, pale gold */
.bd-beer-lager{--beer:#f5b51d;--beer-light:#ffd95a;--beer-dark:#d98a00}
.bd-beer-lager .bd-glass-shell{width:43px;height:130px;clip-path:polygon(5% 0,95% 0,80% 100%,20% 100%);border-radius:3px 3px 10px 10px}
.bd-beer-lager .bd-beer-liquid{clip-path:polygon(3% 0,97% 0,81% 100%,19% 100%)}
/* 2 Pale Ale: shaker pint, amber */
.bd-beer-pale{--beer:#d96c16;--beer-light:#f59a39;--beer-dark:#9d3c07}
.bd-beer-pale .bd-glass-shell{width:54px;height:126px;clip-path:polygon(3% 0,97% 0,84% 100%,16% 100%);border-radius:5px 5px 9px 9px}
.bd-beer-pale .bd-beer-liquid{clip-path:polygon(2% 0,98% 0,85% 100%,15% 100%)}
/* 3 IPA: tulip stem, vivid orange */
.bd-beer-ipa{--beer:#ee8b0c;--beer-light:#ffbf38;--beer-dark:#bd5200}
.bd-beer-ipa .bd-glass-shell{width:59px;height:91px;top:14px;border-radius:12px 12px 28px 28px;clip-path:polygon(5% 0,95% 0,100% 48%,88% 78%,67% 100%,33% 100%,12% 78%,0 48%)}
.bd-beer-ipa .bd-beer-liquid{left:5px;right:5px;bottom:5px;height:83%;border-radius:8px 8px 24px 24px;clip-path:polygon(3% 0,97% 0,100% 48%,86% 80%,67% 100%,33% 100%,14% 80%,0 48%)}
.bd-beer-ipa .bd-glass-stem{display:block;top:103px;width:5px;height:27px;border-radius:3px}
.bd-beer-ipa .bd-glass-base{display:block;top:128px;width:38px;height:5px;border-radius:50%}
/* 4 Wheat: tall weizen, hazy yellow */
.bd-beer-wheat{--beer:#efb72d;--beer-light:#ffe071;--beer-dark:#cf8611}
.bd-beer-wheat .bd-glass-shell{width:49px;height:132px;clip-path:polygon(14% 0,86% 0,97% 20%,89% 66%,75% 100%,25% 100%,11% 66%,3% 20%);border-radius:10px}
.bd-beer-wheat .bd-beer-liquid{clip-path:polygon(10% 0,90% 0,98% 19%,89% 67%,75% 100%,25% 100%,11% 67%,2% 19%)}
/* 5 Brown Ale: rounded nonic pint, chestnut */
.bd-beer-brown{--beer:#8d3f18;--beer-light:#bc6527;--beer-dark:#58220e}
.bd-beer-brown .bd-glass-shell{width:56px;height:124px;border-radius:9px 9px 14px 14px;clip-path:polygon(5% 0,95% 0,91% 38%,100% 47%,92% 58%,82% 100%,18% 100%,8% 58%,0 47%,9% 38%)}
.bd-beer-brown .bd-beer-liquid{clip-path:polygon(3% 0,97% 0,92% 38%,100% 47%,92% 58%,83% 100%,17% 100%,8% 58%,0 47%,8% 38%)}
/* 6 Stout / Porter: stout goblet, near-black */
.bd-beer-stout{--beer:#21130f;--beer-light:#47281b;--beer-dark:#090706}
.bd-beer-stout .bd-glass-shell{width:61px;height:101px;top:12px;border-radius:9px 9px 25px 25px;clip-path:polygon(3% 0,97% 0,91% 54%,76% 88%,63% 100%,37% 100%,24% 88%,9% 54%)}
.bd-beer-stout .bd-beer-liquid{left:5px;right:5px;bottom:5px;height:82%;border-radius:7px 7px 20px 20px;clip-path:polygon(2% 0,98% 0,92% 54%,77% 89%,63% 100%,37% 100%,23% 89%,8% 54%)}
.bd-beer-stout .bd-beer-foam{background:#e8d4ac}.bd-beer-stout .bd-beer-foam:before,.bd-beer-stout .bd-beer-foam:after{background:#e8d4ac}
.bd-beer-stout .bd-glass-stem{display:block;top:111px;width:6px;height:18px;border-radius:3px}
.bd-beer-stout .bd-glass-base{display:block;top:127px;width:42px;height:6px;border-radius:50%}

/* Finder results redesigned */
.bd-results{border:1px solid #e1e6ea;border-radius:20px;background:#fff;padding:22px;box-shadow:0 9px 30px rgba(14,40,67,.06)}
.bd-results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-top:4px solid #14202b;padding-top:16px;margin-bottom:20px}
.bd-results-head h3{margin:2px 0 4px;font-size:25px;color:#102f55}
.bd-results-head p{margin:0;color:#65798d;font-size:13px}
.bd-results-head .bd-step-kicker{color:#7b8894;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.bd-results-head .bd-restart,.bd-results-empty .bd-restart{border:1px solid #dbe3ea;background:#f5f6f7;color:#27384b;border-radius:10px;padding:10px 16px;font-weight:800;font-size:11px;cursor:pointer}
.bd-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bd-result-card{position:relative;display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:center;min-height:190px;padding:16px;border:1px solid #e0e6eb;border-radius:14px;background:linear-gradient(180deg,#fff,#fcfdfd);color:#17334e;text-align:left;box-shadow:0 4px 12px rgba(13,39,66,.04);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.bd-result-card:hover{transform:translateY(-2px);border-color:#bed4e5;box-shadow:0 10px 24px rgba(13,39,66,.09)}
.bd-result-card .bd-beer-visual{width:86px;height:154px}
.bd-result-copy{min-width:0;display:flex;flex-direction:column;align-self:stretch}
.bd-result-top{display:flex;gap:8px;align-items:center;margin-bottom:4px}.bd-rank{font-size:14px;font-weight:900;color:#087fc9}.bd-result-family{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#75879a;font-weight:800}
.bd-result-card h4{margin:0 0 6px;font-size:19px;line-height:1.1;color:#102f55;text-transform:uppercase}.bd-result-card p{font-size:12px;line-height:1.35;color:#6a7d8f;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bd-why{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 9px}.bd-why-chip{font-size:8px;font-weight:800;padding:4px 6px;border-radius:999px;background:#eef6fb;color:#0b6aa4}
.bd-result-bottom{margin-top:auto;padding-top:8px;border-top:1px solid #e7edf2;display:flex;align-items:end;justify-content:space-between;gap:8px}.bd-result-bottom strong{display:block;font-size:18px;color:#0c315a}.bd-result-bottom small{display:block;font-size:8px;color:#7b8b9b}.bd-result-cta{font-size:9px;font-weight:900;color:#0b6fae;white-space:nowrap}
.bd-results-empty{padding:25px;text-align:center}.bd-results-empty h3{color:#143455;margin:5px 0}.bd-results-empty p{color:#6a7d8f}

@media(max-width:1100px){.bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-results-grid{grid-template-columns:1fr}.bd-result-card{min-height:175px}}
@media(max-width:640px){.bd-library-pro .bd-recipe-grid{grid-template-columns:1fr}.bd-library-pro .bd-card-main{grid-template-columns:82px minmax(0,1fr);min-height:215px;padding:16px 13px}.bd-beer-visual{transform:scale(.9);transform-origin:center}.bd-library-pro .bd-card h3{font-size:19px}.bd-results{padding:14px;border-radius:14px}.bd-results-head{flex-direction:column}.bd-results-head .bd-restart{align-self:flex-start}.bd-result-card{grid-template-columns:82px minmax(0,1fr);padding:12px}.bd-result-card .bd-beer-visual{transform:scale(.82);margin-left:-6px}.bd-result-card h4{font-size:17px}.bd-result-cta{font-size:8px}}

/* ===== v1.4.0: bundled photographic beer images + collision-proof toolbar ===== */
.bd-library-pro .bd-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  margin-bottom:18px!important;
}
.bd-library-pro .bd-search-wrap{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  position:relative;
  z-index:2;
}
.bd-library-pro .bd-search{
  display:block;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.bd-library-pro .bd-filters{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  margin:0!important;
  position:relative;
  z-index:1;
}
.bd-library-pro .bd-filter{flex:0 0 auto!important;margin:0!important}
.bd-library-pro .bd-library-meta{clear:both;margin-top:4px!important}

/* Replace CSS-drawn glasses with local photographic WebP assets. */
.bd-beer-visual{
  width:96px!important;
  height:164px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:auto!important;
  filter:none!important;
  overflow:hidden;
  border-radius:12px;
  background:#faf9f6;
}
.bd-beer-visual img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.bd-library-pro .bd-card-main{
  grid-template-columns:104px minmax(0,1fr)!important;
  gap:16px!important;
  min-height:238px!important;
}
.bd-library-pro .bd-card .bd-beer-visual{width:100px!important;height:178px!important}
.bd-result-card .bd-beer-visual{width:108px!important;height:164px!important}
.bd-result-card{grid-template-columns:116px minmax(0,1fr)!important}

/* Hide legacy generated-glass internals if old cached markup is ever present. */
.bd-beer-visual .bd-glass-shell,
.bd-beer-visual .bd-beer-liquid,
.bd-beer-visual .bd-beer-foam,
.bd-beer-visual .bd-glass-stem,
.bd-beer-visual .bd-glass-base{display:none!important}

@media(max-width:900px){
  .bd-library-pro .bd-filters{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:5px!important;-webkit-overflow-scrolling:touch}
  .bd-library-pro .bd-filter{white-space:nowrap!important}
}
@media(max-width:640px){
  .bd-library-pro .bd-card-main{grid-template-columns:90px minmax(0,1fr)!important;gap:12px!important}
  .bd-library-pro .bd-card .bd-beer-visual{width:86px!important;height:154px!important;transform:none!important}
  .bd-result-card{grid-template-columns:88px minmax(0,1fr)!important}
  .bd-result-card .bd-beer-visual{width:82px!important;height:132px!important;transform:none!important;margin:0!important}
}

/* ===== v1.5.0: approved mockup layout + transparent centered photography ===== */
.bd-library-pro{
  --bd-navy:#0a2e5b;
  --bd-sky:#087fc9;
  --bd-copy:#60758e;
  --bd-line:#dde5ec;
  --bd-soft:#f7f7f5;
  max-width:1480px;
  margin-inline:auto;
}
.bd-library-pro .bd-toolbar{
  display:grid!important;
  grid-template-columns:minmax(320px,34%) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
  margin-bottom:18px!important;
}
.bd-library-pro .bd-search-wrap{min-width:0!important;width:100%!important}
.bd-library-pro .bd-search{
  height:52px!important;
  border:1px solid #d7e0e8!important;
  border-radius:15px!important;
  padding-left:48px!important;
  font-size:14px!important;
  color:var(--bd-navy)!important;
  background:#fff!important;
}
.bd-library-pro .bd-search-icon{left:17px!important;font-size:28px!important;color:var(--bd-navy)!important}
.bd-library-pro .bd-filters{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  width:100%!important;
  overflow:visible!important;
}
.bd-library-pro .bd-filter{
  min-height:44px!important;
  padding:10px 15px!important;
  border-radius:12px!important;
  border-color:#d7e0e8!important;
  background:#fff!important;
  color:#142d4b!important;
  font-size:11px!important;
  letter-spacing:0!important;
  box-shadow:none!important;
}
.bd-library-pro .bd-filter.is-active{
  color:#fff!important;
  background:var(--bd-sky)!important;
  border-color:var(--bd-sky)!important;
  box-shadow:0 7px 16px rgba(8,127,201,.18)!important;
}

.bd-family-showcase{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin:2px 0 22px;
}
.bd-family-tile{
  appearance:none;
  border:1px solid transparent;
  border-radius:13px;
  background:#f7f7f5;
  min-width:0;
  padding:12px 8px 11px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  cursor:pointer;
  color:var(--bd-navy);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.bd-family-tile:hover,.bd-family-tile.is-active{
  transform:translateY(-2px);
  border-color:#c7dced;
  background:#fff;
  box-shadow:0 8px 22px rgba(16,49,82,.08);
}
.bd-family-tile .bd-beer-visual{width:74px!important;height:114px!important;margin:0 auto 5px!important}
.bd-family-tile strong{font-size:12px;line-height:1.2;text-align:center;color:var(--bd-navy)}
.bd-family-tile span{font-size:10px;line-height:1.25;text-align:center;color:#7a8a9a;margin-top:3px}

.bd-library-pro .bd-library-meta{
  margin:0 0 13px!important;
  min-height:34px;
  color:#657b92!important;
}
.bd-library-meta-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}
.bd-library-meta-actions label{font-size:11px;font-weight:600;color:#536c85;display:flex;align-items:center;gap:8px}
.bd-sort{height:35px;border:1px solid #d7e0e8;border-radius:8px;background:#fff;color:#183654;padding:0 30px 0 10px;font-size:11px}
.bd-library-pro .bd-reset{font-size:10px!important;text-transform:uppercase;letter-spacing:.03em;color:#087fc9!important}

.bd-library-pro .bd-recipe-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  background:transparent!important;
  padding:0!important;
}
.bd-library-pro .bd-card{
  border:1px solid #e1e7ec!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 4px 15px rgba(15,44,72,.055)!important;
}
.bd-library-pro .bd-card:hover{box-shadow:0 10px 28px rgba(15,44,72,.10)!important;border-color:#cedae4!important}
.bd-library-pro .bd-card-main{
  background:#fff!important;
  color:var(--bd-navy)!important;
  display:grid!important;
  grid-template-columns:118px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  min-height:245px!important;
  padding:16px 14px 12px!important;
}
.bd-library-pro .bd-card .bd-beer-visual,
.bd-result-card .bd-beer-visual,
.bd-family-tile .bd-beer-visual{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  filter:drop-shadow(0 8px 7px rgba(20,39,57,.13))!important;
}
.bd-library-pro .bd-card .bd-beer-visual{width:112px!important;height:196px!important;margin:auto!important}
.bd-beer-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  margin:0 auto!important;
}
.bd-library-pro .bd-card-copy{display:flex!important;flex-direction:column!important;align-self:stretch!important;min-width:0!important;padding-top:1px!important}
.bd-library-pro .bd-card-kicker{font-size:9px!important;letter-spacing:.09em!important;color:#0b82cc!important;margin:0 0 8px!important;white-space:nowrap!important}
.bd-library-pro .bd-card h3{font-size:20px!important;line-height:1.02!important;letter-spacing:-.02em!important;color:var(--bd-navy)!important;margin:0 0 9px!important}
.bd-library-pro .bd-card-description{
  margin:0 0 12px!important;
  padding:0!important;
  min-height:57px!important;
  font-size:14px!important;
  line-height:1.4!important;
  color:#687d93!important;
  -webkit-line-clamp:4!important;
}
.bd-library-pro .bd-card-stats{
  margin-top:auto!important;
  padding-top:10px!important;
  gap:5px!important;
  border-top:0!important;
}
.bd-library-pro .bd-card-stats span{font-size:6.5px!important;color:#8797a8!important;letter-spacing:.06em!important}
.bd-library-pro .bd-card-stats strong{font-size:13px!important;color:#0a315f!important;margin-top:3px!important}
.bd-library-pro .bd-card-actions{
  min-height:50px!important;
  grid-template-columns:1fr auto!important;
  padding:7px 9px 7px 12px!important;
  gap:8px!important;
  border-top:1px solid #e7edf2!important;
}
.bd-library-pro .bd-card-details{font-size:9px!important;letter-spacing:.04em!important;color:#087fc9!important;padding:9px 0!important}
.bd-library-pro .bd-brew-this{
  min-height:36px!important;
  border-radius:7px!important;
  padding:9px 13px!important;
  background:#087fc9!important;
  font-size:9px!important;
  letter-spacing:.06em!important;
}

/* Finder result cards match the same approved visual language. */
.bd-results{border-radius:18px!important;padding:20px!important;box-shadow:0 8px 24px rgba(14,40,67,.055)!important}
.bd-results-head{border-top:0!important;padding-top:0!important;align-items:flex-start!important}
.bd-results-head .bd-step-kicker{color:#0a315f!important;font-weight:800!important;text-transform:none!important;font-size:11px!important}
.bd-results-head h3{font-size:28px!important;margin:3px 0 5px!important}
.bd-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.bd-result-card{
  grid-template-columns:112px minmax(0,1fr)!important;
  min-height:188px!important;
  padding:15px!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:none!important;
  align-items:center!important;
}
.bd-result-card .bd-beer-visual{width:104px!important;height:156px!important;margin:0 auto!important}
.bd-result-copy{align-self:stretch!important}
.bd-result-card h4{font-size:18px!important;margin:2px 0 6px!important}
.bd-result-card p{font-size:11.5px!important;line-height:1.38!important}
.bd-result-bottom{margin-top:auto!important}

@media(max-width:1200px){
  .bd-library-pro .bd-toolbar{grid-template-columns:1fr!important}
  .bd-family-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .bd-library-pro .bd-filters{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:5px!important}
  .bd-family-showcase{grid-template-columns:repeat(3,minmax(135px,1fr));overflow-x:auto;padding-bottom:6px}
  .bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bd-results-grid{grid-template-columns:1fr!important}
  .bd-result-card{grid-template-columns:100px minmax(0,1fr)!important}
}
@media(max-width:620px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:1fr!important}
  .bd-library-pro .bd-card-main{grid-template-columns:104px minmax(0,1fr)!important;min-height:228px!important;padding:14px 12px!important}
  .bd-library-pro .bd-card .bd-beer-visual{width:98px!important;height:176px!important}
  .bd-library-pro .bd-card h3{font-size:19px!important}
  .bd-family-showcase{grid-template-columns:repeat(2,minmax(140px,1fr))}
  .bd-library-meta-actions{justify-content:flex-start}
  .bd-result-card{grid-template-columns:88px minmax(0,1fr)!important}
  .bd-result-card .bd-beer-visual{width:82px!important;height:132px!important}
}

/* ===== v1.5.1: Elementor-safe toolbar + corrected recipe modal ===== */
/* Search is deliberately isolated from filters. This prevents collisions in
   Elementor columns/containers whose actual content width is smaller than the viewport. */
.bd-library-pro .bd-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"search" "filters"!important;
  gap:12px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 20px!important;
}
.bd-library-pro .bd-search-wrap{
  grid-area:search!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  position:relative!important;
}
.bd-library-pro .bd-search{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.bd-library-pro .bd-filters{
  grid-area:filters!important;
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.bd-library-pro .bd-filter{
  flex:0 0 auto!important;
  max-width:100%!important;
  margin:0!important;
}

/* Modal shell */
.bd-modal-dialog{
  width:min(1040px,calc(100% - 36px))!important;
  max-height:calc(100vh - 36px)!important;
  margin:18px auto!important;
  border-radius:22px!important;
  overflow:auto!important;
  background:#fff!important;
  box-shadow:0 30px 90px rgba(4,25,48,.30)!important;
}
.bd-modal-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  float:none!important;
  margin:0!important;
  z-index:30!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #dfe7ee!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#0a2e5b!important;
  font-size:27px!important;
  line-height:1!important;
  box-shadow:0 5px 18px rgba(15,44,72,.13)!important;
}
.bd-modal-head{
  --card:#087fc9!important;
  --card-dark:#087fc9!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(240px,.55fr)!important;
  gap:30px!important;
  align-items:center!important;
  padding:36px 72px 34px 38px!important;
  background:linear-gradient(135deg,#0b7fc8 0%,#0874ba 100%)!important;
  color:#fff!important;
  overflow:hidden!important;
}
.bd-modal-head > div:first-child{min-width:0!important}
.bd-modal-head h2{
  margin:7px 0 11px!important;
  color:#fff!important;
  font-size:clamp(34px,4vw,48px)!important;
  line-height:.98!important;
}
.bd-modal-head p{
  margin:0!important;
  max-width:620px!important;
  color:rgba(255,255,255,.88)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.bd-modal-head > img{
  justify-self:center!important;
  align-self:center!important;
  display:block!important;
  width:210px!important;
  height:230px!important;
  max-width:100%!important;
  max-height:230px!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 12px 12px rgba(0,0,0,.18))!important;
}
.bd-modal-specs{
  display:flex!important;
  gap:20px!important;
  flex-wrap:wrap!important;
  margin-top:18px!important;
}
.bd-modal-formula{margin-top:17px!important}

/* Product rows are easier to scan and cannot collapse awkwardly. */
.bd-modal-recipe .bd-components{
  margin:0!important;
  padding:28px 38px 30px!important;
  border:0!important;
  background:#fff!important;
}
.bd-modal-recipe .bd-components h2{
  margin:0 0 16px!important;
  color:#152b44!important;
  font-size:25px!important;
}
.bd-modal-recipe .bd-component-list{gap:10px!important}
.bd-modal-recipe .bd-component{
  display:grid!important;
  grid-template-columns:22px 82px minmax(0,1fr) auto auto!important;
  gap:12px!important;
  align-items:center!important;
  padding:13px 14px!important;
  border:1px solid #e2e8ed!important;
  border-radius:12px!important;
  background:#fff!important;
  min-width:0!important;
}
.bd-modal-recipe .bd-product-name{min-width:0!important;overflow-wrap:anywhere!important}
.bd-modal-recipe .bd-stock,.bd-modal-recipe .bd-price{white-space:nowrap!important}
.bd-modal-recipe .bd-purchase{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:18px!important;
  margin-top:16px!important;
  padding:16px!important;
  border-radius:14px!important;
  background:#f6f7f7!important;
}
.bd-purchase-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
.bd-purchase-actions .bd-add-all,
.bd-purchase-actions .bd-add-selected{
  min-height:42px!important;
  border-radius:9px!important;
  padding:10px 15px!important;
  font-size:10px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
.bd-purchase-actions .bd-add-all{border:1px solid #0a2e5b!important;background:#fff!important;color:#0a2e5b!important}
.bd-purchase-actions .bd-add-selected{border:1px solid #0a2e5b!important;background:#0a2e5b!important;color:#fff!important}
.bd-purchase-actions .bd-add-selected:disabled{border-color:#adb5bd!important;background:#adb5bd!important;color:#fff!important}

@media(max-width:760px){
  .bd-modal-dialog{width:100%!important;height:100%!important;max-height:100vh!important;margin:0!important;border-radius:0!important}
  .bd-modal-head{grid-template-columns:1fr!important;gap:18px!important;padding:64px 22px 26px!important}
  .bd-modal-head > img{width:150px!important;height:175px!important;max-height:175px!important;grid-row:1!important}
  .bd-modal-head > div:first-child{grid-row:2!important}
  .bd-modal-recipe .bd-components{padding:24px 18px!important}
  .bd-modal-recipe .bd-component{grid-template-columns:22px 70px minmax(0,1fr)!important;gap:9px!important}
  .bd-modal-recipe .bd-stock{grid-column:3!important;white-space:normal!important}
  .bd-modal-recipe .bd-price{grid-column:3!important;justify-self:start!important}
  .bd-modal-recipe .bd-purchase{align-items:stretch!important;flex-direction:column!important}
  .bd-purchase-actions{justify-content:stretch!important}
  .bd-purchase-actions button{flex:1 1 100%!important}
}

@media(max-width:900px){
  .bd-library-pro .bd-filters{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0 0 5px!important;
    scrollbar-width:thin;
  }
}


/* ===== v1.5.2: visual-only family filters + reliable centered modal photo ===== */
/* The text-only family chips were removed from markup. Search stands on its own. */
.bd-library-pro .bd-toolbar{
  display:block!important;
  width:100%!important;
  margin:0 0 18px!important;
}
.bd-library-pro .bd-search-wrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.bd-library-pro .bd-filters{display:none!important}

/* Visual family cards are now the only family filtering UI. */
.bd-family-showcase{margin-top:0!important}
.bd-family-tile.is-active{
  border-color:#087fc9!important;
  background:#f5fbff!important;
  box-shadow:0 0 0 2px rgba(8,127,201,.10),0 8px 20px rgba(15,44,72,.08)!important;
}

/* Modal always uses the bundled transparent family glass, never recipe_image_url. */
.bd-modal-head{
  grid-template-columns:minmax(0,1fr) 250px!important;
}
.bd-modal-photo{
  width:250px!important;
  height:280px!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:center!important;
  align-self:center!important;
  overflow:visible!important;
  background:transparent!important;
  padding:8px!important;
  margin:0 auto!important;
}
.bd-modal-photo .bd-beer-visual{
  position:relative!important;
  display:flex!important;
  width:190px!important;
  height:260px!important;
  max-width:100%!important;
  max-height:100%!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 auto!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  filter:drop-shadow(0 12px 12px rgba(0,0,0,.18))!important;
}
.bd-modal-photo .bd-beer-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
/* Neutralize the obsolete direct-image rule from older versions. */
.bd-modal-head > img{display:none!important}

@media(max-width:760px){
  .bd-modal-head{grid-template-columns:1fr!important}
  .bd-modal-photo{
    width:100%!important;
    height:205px!important;
    grid-row:1!important;
    padding:0!important;
  }
  .bd-modal-photo .bd-beer-visual{width:145px!important;height:195px!important}
  .bd-modal-head > div:first-child{grid-row:2!important}
}

/* ===== v1.5.3: client-ready modal + clean photographic assets ===== */
.bd-modal-backdrop{
  background:rgba(8,20,38,.78)!important;
  backdrop-filter:blur(8px)!important;
}
.bd-modal-dialog{
  width:min(1080px,calc(100% - 36px))!important;
  max-height:calc(100vh - 36px)!important;
  margin:18px auto!important;
  border-radius:24px!important;
  overflow:auto!important;
  background:#fff!important;
  box-shadow:0 34px 100px rgba(4,22,45,.34)!important;
}
.bd-modal-close{
  position:absolute!important;
  top:18px!important;
  right:18px!important;
  float:none!important;
  margin:0!important;
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(8,44,78,.10)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0b2b52!important;
  font-size:26px!important;
  font-weight:700!important;
  box-shadow:0 10px 30px rgba(5,35,65,.15)!important;
}
.bd-modal-head{
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr)!important;
  align-items:center!important;
  gap:42px!important;
  min-height:370px!important;
  padding:48px 56px!important;
  background:linear-gradient(135deg,#0f70b7 0%,#1588d3 100%)!important;
  color:#fff!important;
}
.bd-modal-head > div:first-child{min-width:0!important}
.bd-modal-kicker{
  display:block!important;
  margin-bottom:10px!important;
  color:rgba(255,255,255,.82)!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:1.7px!important;
}
.bd-modal-head h2{
  margin:0 0 14px!important;
  color:#fff!important;
  font-size:clamp(34px,4vw,54px)!important;
  line-height:.98!important;
  letter-spacing:-.9px!important;
}
.bd-modal-head p{
  max-width:650px!important;
  margin:0!important;
  color:rgba(255,255,255,.88)!important;
  font-size:15px!important;
  line-height:1.6!important;
}
.bd-modal-specs{
  display:flex!important;
  align-items:flex-end!important;
  gap:0!important;
  margin-top:26px!important;
}
.bd-modal-specs span{
  min-width:80px!important;
  padding-right:22px!important;
  margin-right:22px!important;
  border-right:1px solid rgba(255,255,255,.26)!important;
}
.bd-modal-specs span:last-child{border-right:0!important;margin-right:0!important;padding-right:0!important}
.bd-modal-specs strong{font-size:24px!important;line-height:1!important}
.bd-modal-specs small{margin-top:5px!important;font-size:9px!important;letter-spacing:1.2px!important}
.bd-modal-formula{
  margin-top:24px!important;
  padding:10px 14px!important;
  border:1px solid rgba(255,255,255,.42)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.05)!important;
  font-size:15px!important;
}
.bd-modal-photo{
  width:100%!important;
  height:286px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  border-radius:22px!important;
  overflow:hidden!important;
  background:#f5f5f3!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.58),0 18px 38px rgba(4,35,67,.18)!important;
}
.bd-modal-photo .bd-beer-visual{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  filter:none!important;
  overflow:hidden!important;
}
.bd-modal-photo .bd-beer-visual img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  background:#f5f5f3!important;
  box-shadow:none!important;
  transform:none!important;
}
.bd-modal-recipe .bd-components{
  margin:0!important;
  padding:34px 42px 30px!important;
  background:#fff!important;
}
.bd-components-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin-bottom:18px!important;
}
.bd-components-head .bd-section-kicker{display:block!important;margin-bottom:5px!important;color:#7a8795!important}
.bd-modal-recipe .bd-components h2{
  margin:0!important;
  color:#102a4e!important;
  font-size:28px!important;
  line-height:1.1!important;
}
.bd-select-all{
  border:0!important;
  background:transparent!important;
  color:#087fc9!important;
  font-weight:800!important;
  cursor:pointer!important;
  padding:8px 0!important;
}
.bd-modal-recipe .bd-component-list{display:grid!important;gap:10px!important}
.bd-modal-recipe .bd-component{
  display:grid!important;
  grid-template-columns:22px 78px 68px minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:76px!important;
  padding:10px 16px!important;
  border:1px solid #e3e9ef!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 2px 9px rgba(15,42,78,.025)!important;
}
.bd-modal-recipe .bd-component:hover{border-color:#cfdbe6!important;box-shadow:0 6px 18px rgba(15,42,78,.05)!important}
.bd-modal-recipe .bd-component.is-unavailable{background:#fbfbfb!important;opacity:.7!important}
.bd-modal-recipe .bd-component-check{width:18px!important;height:18px!important;margin:0!important;accent-color:#0b84d4!important}
.bd-modal-recipe .bd-role{color:#132d52!important;font-weight:800!important}
.bd-product-thumb{
  width:58px!important;
  height:58px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border-radius:9px!important;
  background:#f6f7f8!important;
}
.bd-product-thumb-img{width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important}
.bd-product-placeholder{font-size:22px!important;font-weight:800!important;color:#a4afba!important}
.bd-modal-recipe .bd-product-name{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;color:#102a4e!important}
.bd-modal-recipe .bd-product-name strong{font-size:14px!important;line-height:1.3!important}
.bd-modal-recipe .bd-product-name small{font-size:11px!important;line-height:1.35!important;color:#7b8794!important;font-weight:500!important}
.bd-modal-recipe .bd-stock{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  color:#7c8792!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.bd-modal-recipe .bd-stock:before{content:"";width:8px;height:8px;border-radius:50%;background:#aeb6bd;display:block}
.bd-modal-recipe .bd-stock.is-in-stock:before{background:#38a349}
.bd-modal-recipe .bd-price{min-width:82px!important;text-align:right!important;color:#102a4e!important;font-size:15px!important;font-weight:800!important;white-space:nowrap!important}
.bd-modal-recipe .bd-purchase{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  margin-top:16px!important;
  padding:18px 20px!important;
  border-radius:14px!important;
  background:#f4f5f6!important;
}
.bd-total-box{display:flex!important;flex-direction:column!important;gap:3px!important}
.bd-total-box span{color:#7b8590!important;font-size:13px!important}
.bd-total-box strong{color:#102a4e!important;font-size:26px!important;line-height:1!important}
.bd-purchase-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
.bd-purchase-actions button{
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:10px!important;
  font-weight:800!important;
  letter-spacing:.15px!important;
}
.bd-add-all{border:1px solid #0d3159!important;background:#fff!important;color:#0d3159!important}
.bd-add-selected{border:1px solid #087fc9!important;background:#087fc9!important;color:#fff!important}
.bd-add-selected:disabled{border-color:#c8ced4!important;background:#c8ced4!important;color:#fff!important}
.bd-recipe-steps{
  padding:30px 42px 34px!important;
  border-top:1px solid #e5eaf0!important;
  background:#fff!important;
}
.bd-recipe-steps h3{margin:6px 0 18px!important;color:#102a4e!important;font-size:30px!important}
.bd-empty-steps{
  padding:17px 18px!important;
  border:1px solid #f0cf72!important;
  border-radius:12px!important;
  background:#fff8dc!important;
  color:#7c5b17!important;
  line-height:1.55!important;
}

/* Recipe/family imagery: use the new clean photo crops without stretching. */
.bd-beer-visual{background:#f5f5f3!important;overflow:hidden!important}
.bd-beer-visual img{object-fit:contain!important;object-position:center!important;background:#f5f5f3!important}
.bd-card .bd-beer-visual,.bd-family-tile .bd-beer-visual{border-radius:12px!important}

@media(max-width:820px){
  .bd-modal-dialog{width:100%!important;height:100%!important;max-height:100vh!important;margin:0!important;border-radius:0!important}
  .bd-modal-head{grid-template-columns:1fr!important;gap:22px!important;padding:64px 22px 28px!important}
  .bd-modal-photo{grid-row:1!important;width:100%!important;height:220px!important;max-width:360px!important;margin:0 auto!important}
  .bd-modal-head > div:first-child{grid-row:2!important}
  .bd-modal-specs{gap:0!important;overflow-x:auto!important}
  .bd-modal-specs span{min-width:70px!important;padding-right:14px!important;margin-right:14px!important}
  .bd-modal-recipe .bd-components,.bd-recipe-steps{padding-left:18px!important;padding-right:18px!important}
  .bd-components-head{align-items:center!important}
  .bd-modal-recipe .bd-component{grid-template-columns:22px 64px minmax(0,1fr) auto!important;gap:10px!important;padding:10px 12px!important}
  .bd-modal-recipe .bd-role{grid-column:3!important;font-size:12px!important;color:#6c7783!important}
  .bd-product-thumb{grid-column:2!important;grid-row:1 / span 3!important;width:54px!important;height:54px!important}
  .bd-modal-recipe .bd-product-name{grid-column:3 / 5!important}
  .bd-modal-recipe .bd-stock{grid-column:3!important;white-space:normal!important}
  .bd-modal-recipe .bd-price{grid-column:4!important;grid-row:3!important;align-self:end!important}
  .bd-modal-recipe .bd-purchase{align-items:stretch!important;flex-direction:column!important}
  .bd-purchase-actions{display:grid!important;grid-template-columns:1fr!important}
}

/* ===== v1.5.4: rebuilt transparent beer imagery + modal presentation fix ===== */
/* Images are true transparent PNGs bundled with the plugin. Never paint a box behind them. */
.bd-beer-visual,
.bd-library-pro .bd-card .bd-beer-visual,
.bd-family-tile .bd-beer-visual,
.bd-result-card .bd-beer-visual,
.bd-modal-photo .bd-beer-visual{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  box-shadow:none!important;
}
.bd-beer-visual img,
.bd-library-pro .bd-card .bd-beer-visual img,
.bd-family-tile .bd-beer-visual img,
.bd-result-card .bd-beer-visual img,
.bd-modal-photo .bd-beer-visual img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
  margin:auto!important;
}

/* Cards: consistent centered visual column. */
.bd-library-pro .bd-card-main{
  grid-template-columns:126px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:center!important;
}
.bd-library-pro .bd-card .bd-beer-visual{
  width:116px!important;
  height:196px!important;
  margin:auto!important;
  filter:drop-shadow(0 8px 7px rgba(17,39,62,.15))!important;
}
.bd-family-tile .bd-beer-visual{
  width:72px!important;
  height:116px!important;
  margin:0 auto 7px!important;
  filter:drop-shadow(0 5px 5px rgba(17,39,62,.12))!important;
}
.bd-result-card .bd-beer-visual{
  width:98px!important;
  height:158px!important;
  filter:drop-shadow(0 7px 6px rgba(17,39,62,.14))!important;
}

/* Modal: glass lives directly on the blue hero, not inside a white/grey image card. */
.bd-modal-head{
  grid-template-columns:minmax(0,1.45fr) minmax(230px,.55fr)!important;
  min-height:340px!important;
  overflow:hidden!important;
}
.bd-modal-photo{
  width:100%!important;
  height:280px!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
}
.bd-modal-photo .bd-beer-visual{
  width:230px!important;
  height:280px!important;
  max-width:100%!important;
  margin:auto!important;
  filter:drop-shadow(0 16px 15px rgba(0,22,48,.28))!important;
}
.bd-modal-photo .bd-beer-visual img{
  max-width:220px!important;
  max-height:275px!important;
}

@media(max-width:820px){
  .bd-modal-head{grid-template-columns:1fr!important;gap:18px!important;padding:58px 22px 28px!important}
  .bd-modal-photo{grid-row:1!important;height:210px!important;max-width:320px!important;margin:0 auto!important}
  .bd-modal-photo .bd-beer-visual{width:170px!important;height:210px!important}
  .bd-modal-photo .bd-beer-visual img{max-width:165px!important;max-height:205px!important}
  .bd-modal-head > div:first-child{grid-row:2!important}
}
@media(max-width:640px){
  .bd-library-pro .bd-card-main{grid-template-columns:92px minmax(0,1fr)!important}
  .bd-library-pro .bd-card .bd-beer-visual{width:82px!important;height:150px!important}
}

/* ===== v1.6.0: photographic beer-family visual system ===== */
:root{--bd-card-radius:14px;--bd-navy:#0c2d56;--bd-blue:#0b82d4;--bd-soft:#f7f6f2}

/* Recipe cards: photographic hero on top, content below. */
.bd-library-pro .bd-card{
  border-radius:var(--bd-card-radius)!important;
  overflow:hidden!important;
  border:1px solid #e2e8ee!important;
  background:#fff!important;
  box-shadow:0 7px 20px rgba(17,43,70,.07)!important;
}
.bd-library-pro .bd-card:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 14px 32px rgba(17,43,70,.12)!important;
  border-color:#cad8e4!important;
}
.bd-library-pro .bd-card-main{
  display:block!important;
  min-height:0!important;
  padding:0!important;
  background:#fff!important;
  color:var(--bd-navy)!important;
}
.bd-library-pro .bd-card .bd-beer-visual{
  display:block!important;
  width:100%!important;
  height:178px!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:0!important;
  background:#24170f!important;
  filter:none!important;
}
.bd-library-pro .bd-card .bd-beer-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 52%!important;
  margin:0!important;
}
.bd-library-pro .bd-card-copy{
  display:flex!important;
  flex-direction:column!important;
  min-height:205px!important;
  padding:15px 16px 14px!important;
  background:#fff!important;
}
.bd-library-pro .bd-card-kicker{
  margin:0 0 6px!important;
  color:#0b82d4!important;
  font-size:9px!important;
  letter-spacing:.13em!important;
  font-weight:800!important;
}
.bd-library-pro .bd-card h3{
  margin:0 0 8px!important;
  color:var(--bd-navy)!important;
  font-size:21px!important;
  line-height:1.03!important;
}
.bd-library-pro .bd-card-description{
  min-height:50px!important;
  margin:0 0 13px!important;
  padding:0!important;
  color:#667b90!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.bd-library-pro .bd-card-stats{
  margin-top:auto!important;
  padding-top:11px!important;
  border-top:1px solid #edf1f4!important;
}
.bd-library-pro .bd-card-actions{
  min-height:50px!important;
  padding:6px 9px 6px 14px!important;
  border-top:1px solid #edf1f4!important;
}
.bd-library-pro .bd-brew-this{
  min-height:36px!important;
  border-radius:8px!important;
  padding:0 13px!important;
}

/* Family selector tiles use the same real photography. */
.bd-family-showcase{gap:12px!important}
.bd-family-tile{
  padding:0 0 13px!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:#fff!important;
  border:1px solid #e3e8ed!important;
  box-shadow:0 5px 16px rgba(15,44,72,.05)!important;
}
.bd-family-tile .bd-beer-visual{
  width:100%!important;
  height:118px!important;
  margin:0 0 10px!important;
  overflow:hidden!important;
  filter:none!important;
  background:#24170f!important;
}
.bd-family-tile .bd-beer-visual img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 52%!important;
  margin:0!important;
}
.bd-family-tile strong,.bd-family-tile span{padding-left:10px!important;padding-right:10px!important}

/* Finder result cards: strong photo column with consistent crop. */
.bd-result-card{
  grid-template-columns:118px minmax(0,1fr)!important;
  padding:0!important;
  overflow:hidden!important;
  min-height:194px!important;
  align-items:stretch!important;
}
.bd-result-card .bd-beer-visual{
  width:118px!important;
  height:100%!important;
  min-height:194px!important;
  margin:0!important;
  overflow:hidden!important;
  filter:none!important;
  background:#24170f!important;
}
.bd-result-card .bd-beer-visual img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  margin:0!important;
}
.bd-result-card .bd-result-copy{padding:15px 14px 14px!important}

/* Popup: photography becomes an intentional right-side hero panel. */
.bd-modal-head{
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important;
  gap:28px!important;
  padding:36px 38px!important;
  min-height:350px!important;
  align-items:stretch!important;
  background:linear-gradient(135deg,#116db2 0%,#0b84d4 58%,#1296e6 100%)!important;
}
.bd-modal-photo{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:278px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:18px!important;
  background:#24170f!important;
  box-shadow:0 16px 34px rgba(2,31,58,.24)!important;
}
.bd-modal-photo:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(4,42,78,.12),rgba(0,0,0,0) 40%,rgba(0,0,0,.08));
}
.bd-modal-photo .bd-beer-visual{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  overflow:hidden!important;
  filter:none!important;
}
.bd-modal-photo .bd-beer-visual img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  margin:0!important;
}

/* Search stays isolated; only the image tiles are category filters. */
.bd-toolbar{display:block!important;width:100%!important;margin-bottom:14px!important}
.bd-search-wrap{width:100%!important;max-width:none!important;margin:0!important}
.bd-family-showcase{margin-top:0!important}

@media(max-width:980px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bd-family-showcase{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .bd-modal-head{grid-template-columns:1fr 280px!important}
}
@media(max-width:700px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:1fr!important}
  .bd-family-showcase{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}
  .bd-library-pro .bd-card .bd-beer-visual{height:205px!important}
  .bd-library-pro .bd-card-copy{min-height:190px!important}
  .bd-modal-head{grid-template-columns:1fr!important;gap:18px!important;padding:58px 20px 26px!important}
  .bd-modal-photo{grid-row:1!important;width:100%!important;max-width:none!important;height:225px!important;min-height:225px!important}
  .bd-modal-head > div:first-child{grid-row:2!important}
  .bd-result-card{grid-template-columns:105px minmax(0,1fr)!important}
  .bd-result-card .bd-beer-visual{width:105px!important;min-height:186px!important}
}


/* ===== v1.6.1: image ratio / crop fix ===== */
.bd-beer-visual{position:relative!important;isolation:isolate!important;background:#1b140f!important}
.bd-beer-visual:before{
  content:"";
  position:absolute;
  inset:-14px;
  z-index:0;
  background-image:var(--bd-photo)!important;
  background-size:cover!important;
  background-position:center!important;
  filter:blur(18px) brightness(.72) saturate(.9)!important;
  transform:scale(1.08)!important;
  opacity:.95!important;
  pointer-events:none;
}
.bd-beer-visual:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(11,24,38,.22),rgba(0,0,0,0) 28%,rgba(0,0,0,0) 72%,rgba(11,24,38,.22));
  pointer-events:none;
}
.bd-beer-visual img{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
}

/* 16:9 card hero: no zooming/cropping of the square source photos. */
.bd-library-pro .bd-card .bd-beer-visual{
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  min-height:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}
.bd-library-pro .bd-card .bd-beer-visual img{object-fit:contain!important}

/* Category image tiles use the same controlled ratio. */
.bd-family-tile .bd-beer-visual{
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  min-height:0!important;
  margin:0 0 10px!important;
  overflow:hidden!important;
}
.bd-family-tile .bd-beer-visual img{object-fit:contain!important}

/* Finder result: fixed photo column, full image visible. */
.bd-result-card .bd-beer-visual{
  width:132px!important;
  height:auto!important;
  min-height:188px!important;
  overflow:hidden!important;
}
.bd-result-card .bd-beer-visual img{object-fit:contain!important}
.bd-result-card{grid-template-columns:132px minmax(0,1fr)!important}

/* Popup: keep the full photo composition visible, no hero crop. */
.bd-modal-photo{
  min-height:270px!important;
  aspect-ratio:4/3!important;
  height:auto!important;
  overflow:hidden!important;
}
.bd-modal-photo .bd-beer-visual{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.bd-modal-photo .bd-beer-visual img{object-fit:contain!important;object-position:center!important}
.bd-modal-photo:after{z-index:3!important}

@media(max-width:980px){
  .bd-result-card{grid-template-columns:112px minmax(0,1fr)!important}
  .bd-result-card .bd-beer-visual{width:112px!important;min-height:174px!important}
}
@media(max-width:700px){
  .bd-library-pro .bd-card .bd-beer-visual{aspect-ratio:16/10!important;height:auto!important}
  .bd-family-tile .bd-beer-visual{aspect-ratio:16/10!important}
  .bd-modal-photo{aspect-ratio:16/10!important;height:auto!important;min-height:0!important}
  .bd-result-card{grid-template-columns:100px minmax(0,1fr)!important}
  .bd-result-card .bd-beer-visual{width:100px!important;min-height:168px!important}
}
\n\n/* ===== v1.6.2: true landscape image assets, no runtime crop tricks ===== */\n.bd-beer-visual{background:#24170f!important;isolation:auto!important}\n.bd-beer-visual:before,.bd-beer-visual:after{content:none!important;display:none!important}\n.bd-beer-visual img{position:static!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center center!important}\n.bd-library-pro .bd-card .bd-beer-visual{width:100%!important;height:auto!important;aspect-ratio:16/9!important;min-height:0!important;overflow:hidden!important}\n.bd-family-tile{overflow:hidden!important;padding:0 0 11px!important}\n.bd-family-tile .bd-beer-visual{width:100%!important;height:auto!important;aspect-ratio:16/9!important;margin:0 0 10px!important;overflow:hidden!important}\n.bd-result-card .bd-beer-visual{width:132px!important;height:188px!important;min-height:188px!important;overflow:hidden!important}\n.bd-result-card .bd-beer-visual img{object-fit:cover!important}\n.bd-modal-photo{aspect-ratio:16/9!important;height:auto!important;min-height:0!important;overflow:hidden!important}\n.bd-modal-photo .bd-beer-visual{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}\n.bd-modal-photo .bd-beer-visual img{object-fit:cover!important;object-position:center center!important}\n@media(max-width:700px){\n  .bd-library-pro .bd-card .bd-beer-visual,.bd-family-tile .bd-beer-visual,.bd-modal-photo{aspect-ratio:16/9!important}\n  .bd-result-card{grid-template-columns:104px minmax(0,1fr)!important}\n  .bd-result-card .bd-beer-visual{width:104px!important;height:148px!important;min-height:148px!important}\n}\n
/* ===== v1.6.3: popup photo from previous asset set + larger Ubuntu listing typography ===== */
/* Listing typography only. Google-hosted Ubuntu is enqueued by the plugin; fallbacks remain safe. */
.bd-library-pro,
.bd-library-pro button,
.bd-library-pro input,
.bd-library-pro select,
.bd-library-pro textarea{
  font-family:"Ubuntu",Arial,sans-serif!important;
}
.bd-library-pro .bd-card-kicker{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.08em!important;
}
.bd-library-pro .bd-card h3{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:23px!important;
  line-height:1.06!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.bd-library-pro .bd-card-description{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:400!important;
}
.bd-library-pro .bd-card-stats span{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:8px!important;
  font-weight:500!important;
}
.bd-library-pro .bd-card-stats strong{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:15px!important;
  font-weight:700!important;
}
.bd-library-pro .bd-card-details,
.bd-library-pro .bd-brew-this{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:10px!important;
  font-weight:700!important;
}
.bd-family-tile strong{font-family:"Ubuntu",Arial,sans-serif!important;font-size:12px!important}
.bd-family-tile span{font-family:"Ubuntu",Arial,sans-serif!important;font-size:9px!important}

/* Popup photo: use the previous square family photo directly, without nested hero/blur/crop layers. */
.bd-modal-head{
  grid-template-columns:minmax(0,1fr) 270px!important;
  align-items:center!important;
}
.bd-modal-photo{
  position:relative!important;
  width:270px!important;
  height:270px!important;
  min-height:270px!important;
  aspect-ratio:1/1!important;
  justify-self:end!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:20px!important;
  background:#20150f!important;
  box-shadow:0 16px 34px rgba(2,31,58,.24)!important;
}
.bd-modal-photo:before,.bd-modal-photo:after{content:none!important;display:none!important}
.bd-modal-photo .bd-beer-visual{display:none!important}
.bd-modal-photo-img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
@media(max-width:980px){
  .bd-modal-head{grid-template-columns:minmax(0,1fr) 230px!important}
  .bd-modal-photo{width:230px!important;height:230px!important;min-height:230px!important}
}
@media(max-width:700px){
  .bd-library-pro .bd-card h3{font-size:21px!important}
  .bd-library-pro .bd-card-description{font-size:13.5px!important}
  .bd-modal-head{grid-template-columns:1fr!important}
  .bd-modal-photo{
    grid-row:1!important;
    width:min(250px,78vw)!important;
    height:min(250px,78vw)!important;
    min-height:0!important;
    justify-self:center!important;
  }
  .bd-modal-head > div:first-child{grid-row:2!important}
}

/* ===== v1.7.0 compact editorial recipe cards ===== */
.bd-library-pro .bd-recipe-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  background:transparent!important;
}
.bd-library-pro .bd-card-compact{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  background:#fff!important;
  border:1px solid #e8ecef!important;
  border-radius:10px!important;
  overflow:hidden!important;
  box-shadow:0 3px 12px rgba(16,39,68,.06)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
.bd-library-pro .bd-card-compact:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 10px 24px rgba(16,39,68,.11)!important;
  border-color:#dfe6eb!important;
}
.bd-library-pro .bd-card-compact .bd-card-main{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  height:132px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:#eee!important;
  cursor:pointer!important;
  overflow:hidden!important;
  appearance:none!important;
}
.bd-library-pro .bd-card-compact .bd-beer-visual,
.bd-library-pro .bd-card-compact .bd-beer-card{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  background:#eee!important;
  overflow:hidden!important;
  display:block!important;
}
.bd-library-pro .bd-card-compact .bd-beer-visual img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:0!important;
  display:block!important;
}
.bd-library-pro .bd-card-compact .bd-card-copy{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  padding:14px 14px 10px!important;
  min-width:0!important;
}
.bd-library-pro .bd-card-compact h3{
  margin:0 0 5px!important;
  color:#182b3d!important;
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:17px!important;
  line-height:1.05!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:-.02em!important;
}
.bd-library-pro .bd-card-compact .bd-card-abv{
  margin:0 0 10px!important;
  color:#e15158!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:700!important;
}
.bd-library-pro .bd-card-compact .bd-card-description{
  margin:0 0 12px!important;
  color:#354758!important;
  font-size:11px!important;
  line-height:1.45!important;
  font-style:normal!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  min-height:48px!important;
}
.bd-library-pro .bd-card-compact .bd-formula-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-top:auto!important;
}
.bd-library-pro .bd-card-compact .bd-formula-chips span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:26px!important;
  min-height:23px!important;
  padding:3px 7px!important;
  border-radius:5px!important;
  background:#f4f7ef!important;
  color:#68794a!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:700!important;
  border:1px solid #edf1e6!important;
}
.bd-library-pro .bd-card-compact .bd-card-actions{
  padding:0 14px 14px!important;
  border:0!important;
  background:#fff!important;
  display:block!important;
}
.bd-library-pro .bd-card-compact .bd-card-details{
  width:auto!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  color:#7b983b!important;
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  cursor:pointer!important;
  text-align:left!important;
}
.bd-library-pro .bd-card-compact .bd-card-details span{
  display:inline-block!important;
  margin-left:4px!important;
  transition:transform .15s ease!important;
}
.bd-library-pro .bd-card-compact:hover .bd-card-details span{transform:translateX(3px)!important}
.bd-library-pro .bd-card-compact .bd-card-message{display:none!important}

/* compact toolbar closer to reference */
.bd-library-pro .bd-library-meta{
  margin:0 0 12px!important;
  align-items:center!important;
}
.bd-library-pro .bd-library-meta>strong{
  color:#1d2f3f!important;
  font-size:14px!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
}
.bd-library-pro .bd-library-meta>strong:before{
  content:"♨";
  color:#7a963f;
  margin-right:7px;
}
.bd-library-pro .bd-sort{
  height:34px!important;
  border:1px solid #dce3e8!important;
  border-radius:8px!important;
  padding:0 30px 0 10px!important;
  background:#fff!important;
  color:#22384d!important;
  font-size:11px!important;
}

@media(max-width:1250px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:980px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bd-library-pro .bd-card-compact .bd-card-main{height:120px!important}
}
@media(max-width:460px){
  .bd-library-pro .bd-recipe-grid{grid-template-columns:1fr!important}
  .bd-library-pro .bd-card-compact .bd-card-main{height:180px!important}
}


/* ===== v1.7.1: working text-only family filters + tighter cards ===== */
.bd-library-pro .bd-card.bd-is-filtered-out{
  display:none!important;
}

/* Simple title-only filter pills */
.bd-library-pro .bd-family-showcase.bd-family-pills{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  margin:14px 0 22px!important;
  padding:0!important;
  overflow:visible!important;
}
.bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile{
  width:auto!important;
  min-width:0!important;
  height:36px!important;
  aspect-ratio:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  margin:0!important;
  border:1px solid #d8e0e6!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#22384d!important;
  box-shadow:none!important;
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:700!important;
  text-transform:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transition:background .15s ease,color .15s ease,border-color .15s ease!important;
}
.bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile:hover{
  border-color:#8ba148!important;
  color:#6d8435!important;
}
.bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile.is-active{
  background:#809a3c!important;
  border-color:#809a3c!important;
  color:#fff!important;
}
.bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile .bd-beer-visual,
.bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile strong,
.bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile span{
  display:none!important;
}

/* Tighter editorial cards: remove the artificial vertical gap */
.bd-library-pro .bd-card-compact .bd-card-main{
  height:118px!important;
}
.bd-library-pro .bd-card-compact .bd-card-copy{
  flex:0 0 auto!important;
  padding:12px 13px 8px!important;
}
.bd-library-pro .bd-card-compact h3{
  margin-bottom:4px!important;
  font-size:16px!important;
}
.bd-library-pro .bd-card-compact .bd-card-abv{
  margin-bottom:8px!important;
}
.bd-library-pro .bd-card-compact .bd-card-description{
  margin-bottom:9px!important;
  min-height:0!important;
  -webkit-line-clamp:2!important;
  line-height:1.4!important;
}
.bd-library-pro .bd-card-compact .bd-formula-chips{
  margin-top:0!important;
  padding-top:2px!important;
}
.bd-library-pro .bd-card-compact .bd-card-actions{
  margin-top:0!important;
  padding:8px 13px 12px!important;
}

@media(max-width:700px){
  .bd-library-pro .bd-family-showcase.bd-family-pills{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    padding-bottom:4px!important;
    -webkit-overflow-scrolling:touch;
  }
  .bd-library-pro .bd-family-showcase.bd-family-pills .bd-family-tile{
    flex:0 0 auto!important;
  }
  .bd-library-pro .bd-card-compact .bd-card-main{height:112px!important}
}
@media(max-width:460px){
  .bd-library-pro .bd-card-compact .bd-card-main{height:165px!important}
}


/* ===== v1.7.2: show 5 recipes initially, reveal 5 more per click ===== */
.bd-library-pro .bd-card.bd-is-collapsed{display:none!important;}
.bd-library-pro .bd-load-more-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:24px 0 4px;
}
.bd-library-pro .bd-load-more-wrap[hidden]{display:none!important;}
.bd-library-pro .bd-load-more{
  appearance:none;
  border:1px solid #7f963e;
  border-radius:999px;
  background:#819a3e;
  color:#fff;
  min-height:44px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:"Ubuntu",Arial,sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(68,88,29,.14);
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease;
}
.bd-library-pro .bd-load-more:hover{
  background:#718735;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(68,88,29,.18);
}
.bd-library-pro .bd-load-more span{font-size:16px;line-height:1;}


/* ===== v1.7.3 TRUE COMPACT CARD HEIGHT FIX =====
   Important: cards are no longer flex columns that stretch to the tallest grid item. */
.bd-library-pro .bd-recipe-grid{
  align-items:start!important;
  grid-auto-rows:auto!important;
}
.bd-library-pro .bd-card-compact{
  display:block!important;
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
}
.bd-library-pro .bd-card-compact .bd-card-copy{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  padding:12px 13px 7px!important;
}
.bd-library-pro .bd-card-compact .bd-card-description{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  height:auto!important;
  min-height:0!important;
  margin:0 0 9px!important;
}
.bd-library-pro .bd-card-compact .bd-formula-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin:0!important;
  padding:0!important;
}
.bd-library-pro .bd-card-compact .bd-card-actions{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:7px 13px 11px!important;
  border-top:0!important;
}
.bd-library-pro .bd-card-compact .bd-card-details{
  display:inline-flex!important;
  width:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:5px 0!important;
}


/* ===== v1.7.6 SAFE LISTING CONTROLS ===== */
.bd-library-pro .bd-library-count-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
}
.bd-library-pro .bd-library-count-head img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}
.bd-library-pro .bd-library-count-head strong{
  font-family:"Ubuntu",Arial,sans-serif;
  font-size:22px;
  line-height:1;
  font-weight:800;
  color:#1c2d45;
  letter-spacing:.01em;
}
.bd-library-pro .bd-family-showcase.bd-family-pills{
  margin-bottom:18px!important;
}
.bd-library-pro .bd-library-meta{
  justify-content:flex-end!important;
}
.bd-library-pro .bd-load-more{
  min-height:54px!important;
  padding:0 32px!important;
  font-size:13px!important;
}
@media(max-width:700px){
  .bd-library-pro .bd-library-count-head img{width:22px;height:22px;}
  .bd-library-pro .bd-library-count-head strong{font-size:22px;}
  .bd-library-pro .bd-load-more{min-height:50px!important;padding:0 24px!important;font-size:12px!important;}
}


/* ===== v1.7.8 FILTER + COUNT CACHE-SAFE FIX ===== */
.bd-library-pro .bd-library-count-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 14px!important;
}
.bd-library-pro .bd-library-count-head img{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
}
.bd-library-pro .bd-library-count-head strong,
.bd-library-pro .bd-library-count-head [data-bd-count]{
  font-family:"Ubuntu",Arial,sans-serif!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:800!important;
}
.bd-library-pro .bd-card.bd-is-filtered-out,
.bd-library-pro .bd-card.bd-is-collapsed{
  display:none!important;
}
@media(max-width:700px){
  .bd-library-pro .bd-library-count-head img{
    width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;
  }
  .bd-library-pro .bd-library-count-head strong,
  .bd-library-pro .bd-library-count-head [data-bd-count]{font-size:22px!important;}
}


/* ===== Guided Finder v2 ===== */
.bd-finder-v2{max-width:980px;margin:0 auto;border:1px solid #e8eadf;border-radius:18px;padding:18px;background:#fff;box-shadow:0 8px 24px rgba(23,42,68,.06);font-family:"Ubuntu",Arial,sans-serif}
.bd-finder-progress{display:flex;align-items:flex-start;margin:0 4px 22px}.bd-progress-node{display:flex;flex-direction:column;align-items:center;min-width:72px;color:#a7a7a0;font-size:10px;font-weight:700}.bd-progress-node span{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#bcbdb8;color:#fff;font-size:12px;position:relative;z-index:2}.bd-progress-node small{margin-top:5px;font-size:10px}.bd-progress-node.is-active,.bd-progress-node.is-done{color:#6f8f29}.bd-progress-node.is-active span,.bd-progress-node.is-done span{background:#78962d}.bd-finder-progress>i{height:4px;background:#dadbd5;flex:1;margin:10px -8px 0;position:relative}.bd-progress-node.is-done+i{background:#78962d}
.bd-finder-heading{display:flex;gap:12px;align-items:flex-start;margin:0 0 16px}.bd-finder-heading>img{width:36px;height:36px;object-fit:contain}.bd-finder-heading span{display:block;color:#70756d;font-size:11px;margin-bottom:3px}.bd-finder-heading h3{font-size:24px!important;line-height:1.1!important;margin:0 0 5px!important;color:#16253a!important}.bd-finder-heading p{font-size:13px!important;margin:0!important;color:#747b82!important}
.bd-finder-v2 .bd-choice-grid{margin:12px 0 16px}.bd-family-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bd-finder-v2 .bd-choice{border:1px solid #e2e4dd;border-radius:8px;background:#fff;color:#17263c!important;box-shadow:none;transition:.18s}.bd-finder-v2 .bd-choice:hover{border-color:#9bb257;transform:translateY(-1px)}.bd-finder-v2 .bd-choice.is-selected{background:#f3f7e8!important;color:#17263c!important;border:2px solid #7e9b34!important;box-shadow:0 0 0 2px rgba(126,155,52,.08)}
.bd-family-choice{padding:8px!important;text-align:center!important}.bd-family-choice img{display:block;width:100%;height:92px;object-fit:cover;border-radius:5px;margin-bottom:8px}.bd-family-choice strong,.bd-flavour-choice strong{display:block;font-size:12px;line-height:1.25}.bd-family-choice small{display:block;font-size:10px;color:#8a8f95;margin-top:3px}.bd-choice-big-icon{height:92px;display:flex;align-items:center;justify-content:center;font-size:46px;color:#76952e;background:#f4f7ec;border-radius:5px;margin-bottom:8px}
.bd-list-choice-grid{grid-template-columns:1fr;gap:7px}.bd-list-choice{display:grid!important;grid-template-columns:50px 1fr;align-items:center;text-align:left!important;padding:11px 14px!important}.bd-choice-line-icon{width:40px;height:40px;border:1px solid #dfe4d2;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;color:#76952e}.bd-list-choice strong{display:block;font-size:14px;margin-bottom:3px}.bd-list-choice small{display:block;color:#7f858b;font-size:11px}
.bd-flavour-choice-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.bd-flavour-choice{padding:6px!important;text-align:center!important}.bd-flavour-thumb{height:62px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:34px;background:linear-gradient(135deg,#f4f1df,#e7edd8);margin-bottom:7px}.bd-flavour-choice:nth-child(2n) .bd-flavour-thumb{background:linear-gradient(135deg,#f7e2bb,#f0c86c)}.bd-flavour-choice:nth-child(3n) .bd-flavour-thumb{background:linear-gradient(135deg,#e5eed9,#bcd38d)}
.bd-finder-v2 .bd-step-nav{border-top:1px solid #edf0e9;padding-top:12px;margin-top:14px}.bd-finder-v2 .bd-prev,.bd-finder-v2 .bd-next,.bd-finder-v2 .bd-restart{border:1px solid #d6d9d2;border-radius:6px;padding:11px 16px;font-size:12px;font-weight:700;background:#fff;color:#4e5965}.bd-finder-v2 .bd-next,.bd-results-new{background:#ffb800!important;border-color:#ffb800!important;color:#17202a!important;min-width:150px}.bd-finder-v2 .bd-next:disabled{opacity:.45}.bd-finder-v2 .bd-next b{margin-left:12px}
.bd-finder-results-head{margin-bottom:12px}.bd-results-title{display:flex;gap:12px;align-items:flex-start}.bd-results-trophy{width:38px;height:38px;border-radius:50%;background:#ef3340;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px}.bd-results-title>div>span{font-size:12px;font-weight:800;color:#222}.bd-results-title h3{font-size:24px!important;margin:2px 0 3px!important}.bd-results-title p{font-size:11px!important;color:#7b8085!important;margin:0!important}.bd-finder-results-list{display:flex;flex-direction:column;gap:8px}.bd-finder-result{display:grid;grid-template-columns:70px 1fr 78px;gap:12px;align-items:center;width:100%;background:#fff;border:1px solid #e3e6dd;border-radius:8px;padding:8px;text-align:left;color:#18263a;cursor:pointer}.bd-finder-result:hover{border-color:#92aa50;box-shadow:0 4px 12px rgba(78,105,31,.1)}.bd-finder-result .bd-beer-visual{width:58px;height:88px}.bd-finder-result-copy{min-width:0}.bd-result-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}.bd-result-meta b{font-size:11px}.bd-result-meta span{font-size:11px;font-weight:800;text-transform:uppercase}.bd-result-meta em{font-style:normal;font-size:9px;font-weight:700;border-radius:4px;padding:3px 5px;background:#f3f5ef}.bd-result-meta em:first-of-type{color:#ef4b45;background:#fff1ef}.bd-finder-result-copy p{font-size:10px!important;line-height:1.35!important;color:#5e6670!important;margin:0 0 5px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.bd-result-link{font-size:10px;color:#ef5b45}.bd-match{width:62px;height:62px;border:4px solid #77972d;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#77972d}.bd-match span{font-size:18px;font-weight:800;line-height:1}.bd-match small{font-size:9px;margin-top:4px}.bd-results-actions{display:flex;justify-content:space-between;margin-top:14px;gap:10px}.bd-results-actions button{min-width:135px}
@media(max-width:760px){.bd-finder-v2{padding:14px}.bd-finder-progress{overflow-x:auto;padding-bottom:4px}.bd-progress-node{min-width:64px}.bd-family-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-flavour-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-finder-heading h3{font-size:20px!important}.bd-finder-result{grid-template-columns:58px 1fr 58px;gap:8px}.bd-finder-result .bd-beer-visual{width:48px;height:72px}.bd-match{width:52px;height:52px;border-width:3px}.bd-match span{font-size:15px}.bd-results-actions{flex-direction:column}.bd-results-actions button{width:100%}.bd-family-choice img{height:110px}}

/* ===== Guided Finder v2.1 - screenshot icon fidelity ===== */
.bd-finder-v2{max-width:760px;border-radius:10px;padding:14px 16px;box-shadow:0 3px 14px rgba(23,42,68,.05)}
.bd-finder-progress{margin:0 2px 16px;align-items:flex-start}
.bd-progress-node{min-width:72px;font-size:9px}
.bd-progress-node span{width:18px;height:18px;font-size:9px}
.bd-progress-node small{font-size:9px;margin-top:3px}
.bd-finder-progress>i{height:3px;margin:8px -8px 0}

.bd-finder-heading{gap:9px;margin-bottom:10px;align-items:center}
.bd-finder-heading>img{width:28px;height:28px;object-fit:contain;object-position:center;flex:0 0 28px}
.bd-finder-heading span{font-size:10px;margin-bottom:2px}
.bd-finder-heading h3{font-size:20px!important;line-height:1.1!important;margin:0 0 3px!important;color:#111!important}
.bd-finder-heading p{font-size:10px!important;line-height:1.35!important;color:#777!important}

.bd-finder-v2 .bd-choice-grid{margin:8px 0 12px}
.bd-family-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.bd-family-choice{padding:5px!important;min-height:130px;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start}
.bd-family-choice img{width:100%;height:74px;object-fit:contain!important;object-position:center!important;border-radius:0;margin:0 0 5px;background:#fff}
.bd-family-choice strong{font-size:10px!important;line-height:1.15!important;text-align:center}
.bd-family-choice small{font-size:9px!important;margin-top:2px}
.bd-choice-big-icon{width:100%;height:74px!important;background:#fff!important;margin:0 0 5px!important;display:flex;align-items:center;justify-content:center}
.bd-choice-big-icon img{width:38px!important;height:38px!important;object-fit:contain!important;margin:0!important}

.bd-list-choice-grid{gap:5px}
.bd-list-choice{grid-template-columns:46px 1fr!important;min-height:56px;padding:7px 10px!important;border-radius:6px!important}
.bd-choice-line-icon{width:38px;height:38px;border:0!important;border-radius:0!important;background:transparent!important;padding:0;overflow:visible;font-size:0!important}
.bd-choice-line-icon img{display:block;width:38px;height:38px;object-fit:contain;object-position:center;margin:auto}
.bd-list-choice strong{font-size:12px!important;margin-bottom:2px}
.bd-list-choice small{font-size:9px!important;line-height:1.25!important}

.bd-flavour-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.bd-flavour-choice{padding:4px!important;border-radius:6px!important}
.bd-flavour-thumb{height:54px!important;margin-bottom:4px!important;background:#fff!important;border-radius:4px!important;overflow:hidden;font-size:0!important}
.bd-flavour-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.bd-flavour-choice strong{font-size:9px!important;line-height:1.15!important;text-align:center}

.bd-finder-v2 .bd-step-nav{padding-top:9px;margin-top:10px}
.bd-finder-v2 .bd-prev,.bd-finder-v2 .bd-next,.bd-finder-v2 .bd-restart{padding:9px 14px;font-size:10px;border-radius:5px}
.bd-finder-v2 .bd-next,.bd-results-new{min-width:135px}

.bd-results-title{gap:9px;align-items:center}
.bd-results-trophy{width:30px!important;height:30px!important;border-radius:0!important;background:transparent!important;display:flex;align-items:center;justify-content:center;padding:0}
.bd-results-trophy img{display:block;width:30px;height:30px;object-fit:contain;object-position:center}
.bd-results-title>div>span{font-size:10px}
.bd-results-title h3{font-size:20px!important;margin:1px 0 2px!important}
.bd-results-title p{font-size:9px!important}
.bd-finder-results-list{gap:5px}
.bd-finder-result{grid-template-columns:58px 1fr 62px;gap:9px;border-radius:6px;padding:6px}
.bd-finder-result .bd-beer-visual{width:50px;height:70px}
.bd-result-meta{gap:4px;margin-bottom:3px}
.bd-result-meta b,.bd-result-meta span{font-size:9px}
.bd-result-meta em{font-size:8px;padding:2px 4px}
.bd-finder-result-copy p{font-size:9px!important;line-height:1.3!important;margin-bottom:3px!important}
.bd-result-link{font-size:9px}
.bd-match{width:50px;height:50px;border-width:3px}
.bd-match span{font-size:15px}.bd-match small{font-size:8px;margin-top:2px}
.bd-results-actions{margin-top:10px}

@media(max-width:760px){
  .bd-finder-v2{max-width:100%;padding:12px}
  .bd-finder-progress{overflow:visible}
  .bd-progress-node{min-width:56px}
  .bd-family-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bd-family-choice{min-height:120px}
  .bd-family-choice img{height:68px}
  .bd-flavour-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bd-finder-heading h3{font-size:18px!important}
  .bd-finder-heading>img{width:26px;height:26px;flex-basis:26px}
  .bd-list-choice{grid-template-columns:42px 1fr!important}
  .bd-choice-line-icon,.bd-choice-line-icon img{width:34px;height:34px}
  .bd-finder-result{grid-template-columns:52px 1fr 52px}
  .bd-match{width:46px;height:46px}
}

/* ===== Guided Finder v2.2 - BeerDeli supplied family photography + UI spec ===== */
.bd-finder-v2{
  --bdf-green:#98BC78;
  --bdf-green-dark:#6f932f;
  --bdf-red:#F16A78;
  --bdf-yellow:#FABC55;
  --bdf-text:#171717;
  --bdf-muted:#6B6B6B;
  --bdf-bg:#FAFAF8;
  --bdf-border:#E7E7E3;
  max-width:980px!important;
  margin:0 auto!important;
  padding:20px 22px!important;
  background:var(--bdf-bg)!important;
  border:1px solid var(--bdf-border)!important;
  border-radius:14px!important;
  box-shadow:0 8px 28px rgba(0,0,0,.05)!important;
  color:var(--bdf-text)!important;
  font-family:"Ubuntu",Arial,sans-serif!important;
}

.bd-finder-progress{margin:0 6px 22px!important}
.bd-progress-node{min-width:82px!important;color:#a7aaa2!important;font-size:10px!important}
.bd-progress-node span{width:22px!important;height:22px!important;background:#bbbdb7!important;font-size:10px!important}
.bd-progress-node small{font-size:10px!important;margin-top:5px!important;white-space:nowrap}
.bd-progress-node.is-active,.bd-progress-node.is-done{color:var(--bdf-green-dark)!important}
.bd-progress-node.is-active span,.bd-progress-node.is-done span{background:var(--bdf-green-dark)!important}
.bd-finder-progress>i{height:3px!important;background:#dadcd5!important;margin:10px -8px 0!important}
.bd-progress-node.is-done+i{background:var(--bdf-green-dark)!important}

.bd-finder-heading{gap:11px!important;margin-bottom:16px!important;align-items:flex-start!important}
.bd-finder-heading>img{width:34px!important;height:34px!important;flex:0 0 34px!important;object-fit:contain!important;object-position:center!important}
.bd-finder-heading span{font-size:11px!important;color:var(--bdf-muted)!important;margin-bottom:3px!important}
.bd-finder-heading h3{font-size:24px!important;line-height:1.12!important;margin:0 0 5px!important;color:var(--bdf-text)!important;font-weight:800!important}
.bd-finder-heading p{font-size:13px!important;line-height:1.4!important;color:var(--bdf-muted)!important;margin:0!important}

/* Screen 1: use the exact family images supplied by the user. */
.bd-family-choice-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important;margin:12px 0 16px!important}
.bd-family-choice{
  position:relative;
  min-width:0!important;
  min-height:170px!important;
  padding:7px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  text-align:center!important;
  border:1px solid var(--bdf-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.bd-family-choice>img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0 0 8px!important;
  border-radius:6px!important;
  background:#fff!important;
}
.bd-family-choice strong{font-size:11px!important;line-height:1.2!important;color:var(--bdf-text)!important;text-align:center!important;padding:0 2px}
.bd-family-choice small{font-size:9px!important;color:var(--bdf-muted)!important;margin-top:4px!important}
.bd-family-choice:hover{border-color:var(--bdf-green)!important;transform:translateY(-2px)!important;box-shadow:0 7px 18px rgba(80,112,45,.08)!important}
.bd-family-choice.is-selected{border:2px solid var(--bdf-green)!important;background:#F5FAF0!important;box-shadow:0 0 0 2px rgba(152,188,120,.12)!important}
.bd-family-choice.is-selected:after{
  content:"✓";
  position:absolute;
  top:8px;
  right:8px;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bdf-green-dark);
  color:#fff;
  font-size:12px;
  font-weight:800;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.bd-choice-big-icon{height:auto!important;aspect-ratio:1/1!important;margin:0 0 8px!important;border-radius:6px!important;background:#F5FAF0!important;display:flex!important;align-items:center!important;justify-content:center!important}
.bd-choice-big-icon img{width:54px!important;height:54px!important;object-fit:contain!important;margin:0!important}

/* Screens 2 & 4 */
.bd-list-choice-grid{gap:8px!important;margin:12px 0 16px!important}
.bd-list-choice{grid-template-columns:54px 1fr!important;min-height:66px!important;padding:10px 14px!important;border-radius:9px!important;background:#fff!important}
.bd-choice-line-icon{width:42px!important;height:42px!important;border:0!important;background:transparent!important;display:flex!important;align-items:center!important;justify-content:center!important}
.bd-choice-line-icon img{width:42px!important;height:42px!important;object-fit:contain!important;object-position:center!important;margin:auto!important}
.bd-list-choice strong{font-size:14px!important;line-height:1.25!important;color:var(--bdf-text)!important;margin-bottom:3px!important}
.bd-list-choice small{font-size:11px!important;line-height:1.35!important;color:var(--bdf-muted)!important}

/* Screen 3 */
.bd-flavour-choice-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:12px 0 16px!important}
.bd-flavour-choice{padding:6px!important;border-radius:9px!important;background:#fff!important}
.bd-flavour-thumb{height:78px!important;margin-bottom:6px!important;border-radius:6px!important;background:#fff!important;overflow:hidden!important}
.bd-flavour-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.bd-flavour-choice strong{font-size:10px!important;line-height:1.2!important;color:var(--bdf-text)!important;text-align:center!important}

/* Controls */
.bd-finder-v2 .bd-step-nav{border-top:1px solid #ecece8!important;padding-top:12px!important;margin-top:14px!important}
.bd-finder-v2 .bd-prev,.bd-finder-v2 .bd-next,.bd-finder-v2 .bd-restart{border-radius:8px!important;padding:11px 17px!important;font-size:12px!important;font-weight:800!important}
.bd-finder-v2 .bd-prev,.bd-finder-v2 .bd-restart{background:#fff!important;border:1px solid #d7d9d4!important;color:#51565c!important}
.bd-finder-v2 .bd-next,.bd-results-new{background:var(--bdf-yellow)!important;border:1px solid var(--bdf-yellow)!important;color:#171717!important;min-width:160px!important}
.bd-finder-v2 .bd-next:hover,.bd-results-new:hover{filter:brightness(1.03);transform:translateY(-1px)}
.bd-finder-v2 .bd-next:disabled{opacity:.45!important;transform:none!important}

/* Results - preserve existing ranking/logic; only visual treatment follows reference. */
.bd-results-title{gap:10px!important;align-items:center!important}
.bd-results-trophy{width:36px!important;height:36px!important;background:transparent!important;border-radius:0!important}
.bd-results-trophy img{display:block!important;width:36px!important;height:36px!important;object-fit:contain!important}
.bd-results-title>div>span{font-size:11px!important;color:var(--bdf-muted)!important}
.bd-results-title h3{font-size:23px!important;color:var(--bdf-text)!important;margin:1px 0 3px!important}
.bd-results-title p{font-size:11px!important;color:var(--bdf-muted)!important}
.bd-finder-results-list{gap:8px!important}
.bd-finder-result{grid-template-columns:68px 1fr 68px!important;gap:12px!important;border:1px solid var(--bdf-border)!important;border-radius:9px!important;padding:8px!important;background:#fff!important}
.bd-finder-result:hover{border-color:var(--bdf-green)!important;box-shadow:0 5px 16px rgba(0,0,0,.06)!important}
.bd-match{border-color:var(--bdf-green-dark)!important;color:var(--bdf-green-dark)!important}

@media(max-width:1199px){
  .bd-family-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .bd-family-choice{min-height:0!important}
}
@media(max-width:767px){
  .bd-finder-v2{max-width:100%!important;padding:16px!important;border-radius:12px!important}
  .bd-finder-progress{overflow-x:auto!important;padding-bottom:4px!important}
  .bd-progress-node{min-width:68px!important}
  .bd-family-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .bd-family-choice{min-height:0!important}
  .bd-flavour-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bd-flavour-thumb{height:86px!important}
  .bd-list-choice{grid-template-columns:50px 1fr!important}
  .bd-finder-heading h3{font-size:20px!important}
  .bd-finder-heading>img{width:30px!important;height:30px!important;flex-basis:30px!important}
  .bd-finder-v2 .bd-step-nav{position:sticky;bottom:10px;z-index:8;background:rgba(250,250,248,.96);padding:10px 0 0!important;backdrop-filter:blur(5px)}
  .bd-finder-v2 .bd-next{min-width:155px!important}
  .bd-finder-result{grid-template-columns:58px 1fr 54px!important;gap:8px!important}
}

/* ===== v1.8.3 Finder: high-quality vector artwork ===== */
.bd-finder-v2 .bd-finder-heading > img,
.bd-finder-v2 .bd-choice-line-icon img,
.bd-finder-v2 .bd-choice-big-icon img,
.bd-finder-v2 .bd-results-trophy img{
  image-rendering:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.bd-finder-v2 .bd-flavour-thumb{
  height:92px!important;
  padding:4px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  overflow:hidden!important;
}
.bd-finder-v2 .bd-flavour-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  filter:none!important;
  image-rendering:auto!important;
}
.bd-finder-v2 .bd-flavour-choice{
  overflow:hidden!important;
}
@media(max-width:760px){
  .bd-finder-v2 .bd-flavour-thumb{height:104px!important;}
}
