/* Greenbalance search: scoped presentation, no external assets. */
/* Keep Divi's row/column layout intact. Certificate centre: 25px top margin + 75px / 2; form: 50px.
   Match Divi's #et-boc specificity on Theme Builder archives and product templates too. */
.et-l--header .et_pb_text_inner:has(>.gbs-search)>p:empty,.et-l--header .et_pb_text_inner:has(>.gbs-search)>p:has(>span:empty:only-child){display:none}
@media(min-width:981px){.et-l--header .et_pb_module:has(.gbs-search),.et-db #et-boc .et-l--header .et_pb_module:has(.gbs-search){width:80%;min-width:0;margin-top:37.5px!important;margin-bottom:0!important}}
.gbs-search,.gbs-page{--gbs-green:#235d39;--gbs-ink:#183126;--gbs-border:#dce5dd;--gbs-soft:#f6faf3;color:var(--gbs-ink);font-family:inherit;line-height:1.5;box-sizing:border-box;text-size-adjust:100%}
.gbs-search *,.gbs-page *{box-sizing:border-box}.gbs-search{position:relative;width:100%;max-width:600px;text-align:left}
.gbs-form{container-type:inline-size;display:flex;align-items:center;width:100%;min-height:54px;padding:4px!important;border:1px solid #bdcebf;border-radius:10px;background:#fff;margin:0!important;box-shadow:0 2px 5px #18312606;transition:border-color .15s,box-shadow .15s}
.gbs-form:focus-within{border-color:#235d39;box-shadow:0 0 0 3px #235d3918}.gbs-form input.gbs-input{flex:1;min-width:0;width:100%;border:0!important;box-shadow:none!important;outline:none!important;padding:10px 12px!important;font:inherit!important;font-size:16px!important;color:#183126!important;background:transparent!important;height:44px;margin:0!important}.gbs-input::placeholder{color:#738177;opacity:1;font-size:14px;font-size:clamp(12px,5cqw,14px)}
.gbs-submit{height:44px;width:46px;min-width:46px;padding:0;border:0;border-radius:7px;background:#235d39;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}.gbs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.gbs-clear[hidden]{display:none!important}.gbs-clear{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:7px;background:transparent;color:#627264;cursor:pointer}.gbs-clear svg{display:block;width:16px;height:16px;pointer-events:none}.gbs-form:has(.gbs-clear:not([hidden])) .gbs-input::-webkit-search-cancel-button{display:none}
@media(min-width:981px){.et-l--header .gbs-clear{flex-basis:40px;width:40px;height:40px}}
.gbs-popup[hidden],.gbs-popup-footer[hidden]{display:none!important}.gbs-popup{position:absolute;top:calc(100% + 12px);left:var(--gbs-popup-left,0px);width:800px;max-width:calc(100vw - 32px);max-height:var(--gbs-popup-height,600px);display:flex;flex-direction:column;z-index:100010;background:#fff;border:1px solid var(--gbs-border);box-shadow:0 12px 36px #18312620;border-radius:14px;overflow:hidden;text-transform:none;letter-spacing:normal;font-size:14px;line-height:1.5}
.gbs-popup.gbs-above{top:auto;bottom:calc(100% + 12px)}.gbs-popup-head{padding:14px 20px 16px;flex-shrink:0;border-bottom:1px solid var(--gbs-border)}.gbs-popup-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px}.gbs-popup-top strong{font-weight:700}.gbs-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:#f2f5ef;color:#385741;cursor:pointer;padding:0;margin:0;line-height:1}.gbs-close svg{display:block;width:20px;height:20px;flex:none;pointer-events:none}.gbs-live{margin:0 0 12px!important;font-size:13px;line-height:1.5;color:#627264;padding:0!important}.gbs-shortcuts{display:flex;gap:8px;flex-wrap:wrap}.gbs-shortcuts:empty{display:none}.gbs-shortcuts button{display:inline-flex;align-items:center;gap:8px;border:1px solid #dce5dd;border-radius:7px;background:#fff;color:#235d39;font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;min-height:34px;padding:6px 10px;cursor:pointer}.gbs-shortcuts button span{font-size:11px;border-radius:4px;background:#f0f4ed;padding:2px 5px;font-variant-numeric:tabular-nums}
.gbs-matches{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdccba transparent}.gbs-start{margin:0!important;padding:22px!important;color:#647268;font-size:14px}.gbs-loading .gbs-live{display:flex;gap:8px;align-items:center}.gbs-loading .gbs-live:before{content:'';display:block;width:12px;height:12px;border:2px solid #dce5dd;border-top-color:#235d39;border-radius:50%;animation:gbs-spin .7s linear infinite}@keyframes gbs-spin{to{transform:rotate(360deg)}}
.gbs-popup.gbs-starting{width:620px}.gbs-starting .gbs-popup-head{border-bottom:0;padding-bottom:0}.gbs-starting .gbs-popup-top strong{font-size:18px;color:#235d39}.gbs-starting .gbs-live{margin:4px 0 0!important}.gbs-starting .gbs-matches{background:#fff}
.gbs-popup-head:has(strong[hidden]){display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px 12px}.gbs-popup-head:has(strong[hidden]) .gbs-popup-top{display:contents}.gbs-popup-head:has(strong[hidden]) .gbs-close{grid-column:2;grid-row:1}.gbs-popup-head:has(strong[hidden]) .gbs-live{grid-column:1;grid-row:1;margin:0!important}.gbs-popup-head:has(strong[hidden]) .gbs-shortcuts{grid-column:1/-1;grid-row:2}
.gbs-suggestion-chips{display:flex;flex-wrap:wrap;gap:10px;padding:18px 20px 24px}.gbs-suggestion{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;max-width:100%;padding:10px 15px;border:1px solid #bdcebf;border-radius:24px;background:#fff;color:#235d39;font-family:inherit;font-size:15px;font-weight:600;line-height:1.4;cursor:pointer;text-align:left;text-transform:none;letter-spacing:normal;box-shadow:none}.gbs-suggestion svg{flex:0 0 17px}.gbs-suggestion span{overflow-wrap:anywhere}
@media(max-width:980px){.gbs-search.is-open .gbs-popup.gbs-starting{width:100%}.gbs-suggestion-chips{padding:8px 0 12px;gap:8px}.gbs-suggestion{font-size:15px;padding:10px 14px}.gbs-starting .gbs-popup-top strong{font-size:18px}}
.gbs-products-column,.gbs-content-column{min-width:0}.gbs-group{margin:0;padding:16px 18px}.gbs-group-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;min-height:24px}.gbs-group-title h3,.gbs-group>h3{font-family:inherit!important;font-weight:700!important;font-size:14px!important;line-height:1.4!important;padding:0!important;color:#183126;margin:0!important}.gbs-group-title>span{font-size:11px;color:#657367;white-space:nowrap}.gbs-hit{display:flex!important;align-items:center;gap:12px;padding:10px 8px!important;border-radius:8px;text-decoration:none!important;color:#183126!important;font-size:14px;line-height:1.45;white-space:normal!important;min-height:78px;transition:background .12s}.gbs-hit+.gbs-hit{border-top:1px solid #e8eee5}.gbs-hit:focus-visible{background:#edf3e8;outline:2px solid #235d39;outline-offset:-2px}.gbs-hit img{height:54px;width:54px;object-fit:contain;flex:0 0 54px;border-radius:6px;background:#fff}.gbs-group-gb_recept .gbs-hit img,.gbs-group-post .gbs-hit img{object-fit:cover}.gbs-hit-content{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}.gbs-hit-title{font-weight:650;overflow-wrap:anywhere}.gbs-hit-arrow{flex:0 0 auto;color:#819581;font-size:17px}.gbs-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-size:14px;color:#235d39;font-variant-numeric:tabular-nums}.gbs-price strong{font-weight:750}.gbs-price del{color:#728174;font-size:12px}.gbs-price:has(del) strong{color:#e02b20}.gbs-kind{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#60785e;line-height:1.4}
.gbs-popup-footer{padding:12px 20px;background:#fff;border-top:1px solid var(--gbs-border);flex-shrink:0}.gbs-all,.gbs-button{display:inline-flex!important;align-items:center;justify-content:center;gap:12px;min-height:50px;border:1px solid #235d39!important;border-radius:8px!important;padding:10px 18px!important;color:#235d39!important;background:#fff!important;font-family:Montserrat,system-ui,sans-serif;font-size:14px;font-weight:800;text-decoration:none!important;cursor:pointer}.gbs-all{width:100%;background:#235d39!important;color:white!important}.gbs-all span{font:400 22px/1 system-ui}.gbs-empty{margin:16px 18px!important;padding:18px 20px!important;background:var(--gbs-soft);border:1px solid #dce5dd;border-radius:10px;line-height:1.65;font-size:14px;color:#526b56}.gbs-empty strong{display:block;color:#183126;margin-bottom:4px}.gbs-matches>.gbs-button{margin:18px}
.gbs-open-host{overflow:visible!important;z-index:10001!important}.gbs-search button:focus-visible,.gbs-all:focus-visible{outline:3px solid #235d39;outline-offset:3px}
.gbs-group-page .gbs-hit{min-height:44px}
.gbs-hit[hidden]{display:none!important}
@media(min-width:981px){.gbs-content-column>.gbs-group+.gbs-group{border-top:1px solid var(--gbs-border)}.gbs-matches[data-products="1"]{display:grid;grid-template-columns:1.12fr 1fr;align-items:start;background:#fff}.gbs-matches[data-products="1"]>.gbs-products-column{grid-column:1;min-height:100%;border-right:1px solid #dce5dd}.gbs-matches[data-products="1"]>.gbs-content-column{grid-column:2}.gbs-group-gb_recept .gbs-hit,.gbs-group-post .gbs-hit{font-size:13px}.gbs-popup:has(.gbs-shortcuts:empty) .gbs-live{margin-bottom:0!important}}
.gbs-mobile-layer{position:fixed;inset:0;z-index:100100;background:#fff;overflow:hidden;overscroll-behavior:none}
@media(max-width:980px){
.gbs-search.is-open{position:fixed!important;inset:0!important;max-width:none!important;width:var(--gbs-mobile-width,100%)!important;left:var(--gbs-mobile-left,0px)!important;margin:0!important;overflow:hidden;overscroll-behavior:none;background:#fff;z-index:100100!important;padding:max(12px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom))!important;height:var(--gbs-mobile-height,100dvh);top:var(--gbs-mobile-top,0px)!important;bottom:auto!important;display:flex;flex-direction:column}
.gbs-search.is-open .gbs-form{flex-shrink:0;width:calc(100% - 52px)}
.gbs-search.is-open>.gbs-close{position:absolute;top:calc(max(12px,env(safe-area-inset-top)) + 5px);right:12px;z-index:1}
.gbs-search.is-open .gbs-popup-top{min-height:0}
.gbs-search.is-open .gbs-popup-head:has(strong[hidden]){grid-template-columns:minmax(0,1fr)}
/* Only the form and close control stay fixed; headings, hits and the final link share one scroll. */
.gbs-search.is-open .gbs-popup{position:static;width:100%;max-width:none;max-height:none;flex:1;min-height:0;border:0;box-shadow:none;margin-top:6px;border-radius:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdccba transparent}
.gbs-search.is-open .gbs-popup-head{padding:0 0 8px;gap:4px 8px}
.gbs-search.is-open .gbs-popup:has(.gbs-group) .gbs-popup-head:has(strong[hidden]){display:block}
/* Group counts already appear in the shortcuts; retain the total only as a live announcement. */
.gbs-search.is-open .gbs-popup:has(.gbs-group) .gbs-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.gbs-search.is-open .gbs-starting .gbs-popup-head{padding-bottom:0}
.gbs-search.is-open .gbs-matches{overflow:visible;flex:0 0 auto}
.gbs-popup-top{min-height:48px}.gbs-close{min-width:44px}.gbs-popup-top strong{font-size:15px}.gbs-popup-footer{padding:12px 0 0}.gbs-shortcuts{flex-wrap:nowrap;overflow-x:auto;padding:2px 0}.gbs-shortcuts button{flex-shrink:0}
.gbs-group{padding:10px 0;border-bottom:1px solid #e2eade}.gbs-group-title{min-height:20px;margin-bottom:6px}.gbs-hit{padding:8px 4px!important;min-height:74px}.gbs-hit img{height:50px;width:50px;flex-basis:50px}.gbs-hit-content{gap:3px}.gbs-empty{margin:12px 0!important}.gbs-start{padding:12px 0!important}
}
@media(prefers-reduced-motion:reduce){.gbs-form,.gbs-hit{transition:none}.gbs-loading .gbs-live:before{animation:none}}

.gbs-group-categories{padding-top:12px;padding-bottom:12px}.gbs-group-categories>h3{margin-bottom:8px!important}.gbs-group-categories .gbs-category-hit{min-height:44px;padding:8px!important}.gbs-group-categories .gbs-category-hit img{width:28px;height:28px;flex-basis:28px;object-fit:cover}.gbs-category-hit .gbs-hit-content{gap:2px}
@media(min-width:981px){.et-l--header .gbs-form{min-height:50px}.et-l--header .gbs-form input.gbs-input{height:40px;padding-top:8px!important;padding-bottom:8px!important}.et-l--header .gbs-submit{height:40px}.gbs-popup-head{padding-top:10px;padding-bottom:12px}.gbs-suggestion-chips{padding-top:14px;padding-bottom:20px}}
/* Let the close button share both rows instead of enlarging the result-count row. */
@media(min-width:981px){.gbs-popup-head:has(strong[hidden]){row-gap:6px}.gbs-popup-head:has(strong[hidden]) .gbs-close{grid-row:1/3}.gbs-popup-head:has(strong[hidden]) .gbs-live{transform:translateX(2px)}.gbs-popup-head:has(strong[hidden]) .gbs-shortcuts{grid-column:1}}

/* Touch scrolling must not leave hover styling behind; keyboard focus remains visible. */
@media(min-width:981px) and (hover:hover) and (pointer:fine){
.gbs-submit:hover{background:#133b27}
.gbs-clear:hover{color:#235d39;background:#f6faf3}
.gbs-close:hover{background:#e5ede1}
.gbs-shortcuts button:hover{background:var(--gbs-soft);border-color:#8ea98f}
.gbs-suggestion:hover{background:#f6faf3;border-color:#235d39}
.gbs-hit:hover{background:#edf3e8;outline:2px solid #235d39;outline-offset:-2px}
.gbs-all:hover{background:#133b27!important}
.gbs-button:hover{background:var(--gbs-soft)!important}
}
