:root{--cqg-pg-green:#315b3b;--cqg-pg-green-dark:#24482d;--cqg-pg-border:rgba(37,53,42,.13);--cqg-pg-shadow:0 22px 70px rgba(24,32,27,.24);--cqg-pg-radius:16px}

a.cqg-home__product-link.cqg-pg-has-variants,a.cqg-home__product-link.cqg-pg-has-variants:hover,a.cqg-home__product-link.cqg-pg-has-variants:focus{width:100%!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:0 0 7px!important;padding:7px 10px!important;border:1px solid rgba(49,91,59,.34)!important;border-radius:8px!important;background:#edf4ec!important;color:#315b3b!important;box-shadow:none!important;font-size:11px!important;font-weight:750!important;line-height:1.1!important;text-align:center!important;text-decoration:none!important;text-transform:none!important}
a.cqg-home__product-link.cqg-pg-has-variants:hover{background:#e3eee1!important;border-color:rgba(49,91,59,.56)!important;transform:translateY(-1px)}
.cqg-pg-variants-icon{font-size:15px;line-height:1}.cqg-pg-variants-label{flex:0 1 auto}.cqg-pg-variants-arrow{margin-left:auto;font-size:13px}
.cqg-home__product-link.cqg-pg-no-group,.cqg-home__product-link.cqg-pg-no-group:hover,.cqg-home__product-link.cqg-pg-no-group:focus{width:100%!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:0 0 7px!important;padding:7px 10px!important;border:1px solid rgba(125,131,127,.22)!important;border-radius:8px!important;background:#f7f7f4!important;color:#7d837f!important;box-shadow:none!important;opacity:.82;cursor:default!important;font-size:11px!important;font-weight:700!important;line-height:1.1!important;text-align:center!important;text-decoration:none!important;text-transform:none!important}

/* v0.2.6 — fixed geometry copied from the approved CQG Saved Products v0.1.26 modal.
   Card/modal sizes DO NOT change with the number of plants in the group. */
:root{--cqg-pg-green:#315b3b;--cqg-pg-green-dark:#24482d;--cqg-pg-border:rgba(39,50,42,.13);--cqg-pg-shadow:0 24px 70px rgba(0,0,0,.22);--cqg-pg-radius:16px}

.cqg-pg-modal{position:fixed;z-index:999990;inset:0;width:auto;height:auto;padding:clamp(14px,3vw,42px);background:rgba(26,31,27,.56);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;overflow:auto}
.cqg-pg-modal[hidden]{display:none!important}
.cqg-pg-modal__dialog{width:min(1320px,96vw);max-height:91vh;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(255,255,255,.65);border-radius:24px;box-shadow:var(--cqg-pg-shadow);overflow:hidden}
.cqg-pg-modal__header{flex:0 0 auto;display:flex;justify-content:space-between;gap:22px;align-items:center;padding:20px 24px 16px;border-bottom:1px solid var(--cqg-pg-border);background:#f2f7ef}
.cqg-pg-modal__header h2{margin:0 0 4px;font-size:clamp(22px,2.2vw,30px);line-height:1.1;color:#243129}
.cqg-pg-modal__subtitle{margin:0;font-size:13px;color:#647068}
button.cqg-pg-modal__close,button.cqg-pg-modal__close:hover,button.cqg-pg-modal__close:focus,button.cqg-pg-modal__close:active{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex:0 0 42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-radius:999px!important;border:1px solid var(--cqg-pg-border)!important;background:#fff!important;color:#27332b!important;box-shadow:none!important;line-height:1!important;cursor:pointer}
button.cqg-pg-modal__close:hover{background:#f5f5f2!important}
button.cqg-pg-modal__close svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.cqg-pg-modal__message{flex:0 0 auto;margin:14px 24px 0;padding:10px 13px;border-radius:11px;background:#f3f4f3;font-size:13px}
.cqg-pg-modal__message.is-success{background:#edf7ef;color:#315b3b}.cqg-pg-modal__message.is-error{background:#fff0f0;color:#7b2b2b}
.cqg-pg-modal__content{flex:0 0 auto;min-height:0;overflow:visible;background:#f7f8f2}
.cqg-pg-loading{padding:54px 24px;text-align:center;color:#69736d}

/* Fixed desktop grid: exactly the same principle as Saved Products. */
.cqg-pg-grid,.cqg-pg-grid[class*='cqg-pg-count-']{--cqg-pg-grid-gap:14px;--cqg-pg-title-size:13px;--cqg-pg-price-size:17px;--cqg-pg-thumb-size:36px;--cqg-pg-body-pad:11px 12px 13px;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-rows:max-content!important;align-items:start!important;align-content:start!important;gap:var(--cqg-pg-grid-gap)!important;min-height:0;padding:18px 24px 22px;background:#f7f8f2;overflow:visible!important}
.cqg-pg-card{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;position:relative!important;float:none!important;clear:none!important;display:flex!important;flex-direction:column!important;align-self:start!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;box-sizing:border-box!important;border:1px solid var(--cqg-pg-border);border-radius:var(--cqg-pg-radius);background:#fff;box-shadow:0 7px 24px rgba(33,43,36,.07)}
.cqg-pg-card-media{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;position:relative;background:#f3f2ee}
.cqg-pg-card-main-link{display:block;aspect-ratio:1/1;overflow:hidden;background:#f3f2ee}
.cqg-pg-card-main-image{width:100%;height:100%;display:block;object-fit:cover}
.cqg-pg-card-gallery{box-sizing:border-box;flex:0 0 50px;height:50px;min-height:50px;max-height:50px;display:grid;grid-template-columns:repeat(4,36px);align-items:center;align-content:center;justify-content:start;gap:6px;padding:7px 8px;overflow:hidden!important;background:#fff;scrollbar-width:none;-ms-overflow-style:none}
.cqg-pg-card-gallery::-webkit-scrollbar{display:none!important}
button.cqg-pg-card-thumb,button.cqg-pg-card-thumb:hover,button.cqg-pg-card-thumb:focus{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;border:2px solid transparent!important;border-radius:8px!important;overflow:hidden;background:#fff!important;box-shadow:none!important;cursor:pointer}
button.cqg-pg-card-thumb.is-active{border-color:#cf7866!important}.cqg-pg-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cqg-pg-card-body{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;min-width:0;overflow:visible!important;padding:var(--cqg-pg-body-pad)}
.cqg-pg-card-body h3{display:block;width:100%;min-width:0;min-height:0!important;height:1.3em;margin:0 0 8px;font-size:var(--cqg-pg-title-size);line-height:1.3;overflow:hidden;white-space:nowrap}
.cqg-pg-card-body h3 a,.cqg-pg-card-body h3 span{display:block;width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#202a23;text-decoration:none}
.cqg-pg-card-body h3 a:hover{text-decoration:underline;text-underline-offset:2px}
.cqg-pg-card-price-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto}
.cqg-pg-card-price{min-width:0;min-height:1.35em;line-height:1.35;font-weight:800;font-size:var(--cqg-pg-price-size);margin-bottom:5px;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cqg-pg-card-price del{opacity:.55;font-weight:400}.cqg-pg-card-price-row>.cqg-saved-heart{flex:0 0 auto}
.cqg-pg-card-stock{flex:0 0 auto;min-height:1.35em;line-height:1.35;font-size:12px;margin-bottom:11px}.cqg-pg-card-stock.is-instock{color:#4d812e}.cqg-pg-card-stock.is-outofstock{color:#a02727}.cqg-pg-card-stock.is-onbackorder{color:#8a7440}
.cqg-pg-card-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:0 0 auto}
.cqg-pg-card-actions .cqg-pg-buy,.cqg-pg-card-actions .cqg-pg-choose,.cqg-pg-card-actions .cqg-pg-soon{display:inline-flex!important;width:100%!important;min-height:40px!important;align-items:center;justify-content:center;margin:0!important;padding:9px 7px!important;border:1px solid var(--cqg-pg-green)!important;border-radius:10px!important;background:var(--cqg-pg-green)!important;background-image:none!important;color:#fff!important;box-shadow:none!important;font-weight:750!important;font-size:11px!important;line-height:1.2!important;text-align:center;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}
.cqg-pg-card-actions .cqg-pg-buy:hover,.cqg-pg-card-actions .cqg-pg-choose:hover{background:var(--cqg-pg-green-dark)!important}.cqg-pg-card-actions .cqg-pg-choose{background:#fff!important;color:var(--cqg-pg-green)!important}.cqg-pg-card-actions .cqg-pg-soon,.cqg-pg-card-actions .cqg-pg-soon:hover{background:#eff1ed!important;color:#7b827d!important;border-color:#d7dbd6!important;cursor:default!important}.cqg-pg-card-actions .cqg-pg-buy.is-in-cart,.cqg-pg-card-actions .cqg-pg-buy.is-in-cart:hover{background:#4a7353!important;border-color:#4a7353!important;color:#fff!important;opacity:1!important;cursor:default!important}.cqg-pg-card-actions .cqg-pg-buy.is-in-cart::after{content:"✓";margin-left:7px;font-weight:800}

/* Desktop: the dialog itself scrolls only when there is more content than fits. */
@media (min-width:561px){.cqg-pg-modal__dialog{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}.cqg-pg-modal__content{overflow:visible!important}.cqg-pg-grid,.cqg-pg-grid[class*='cqg-pg-count-']{flex:0 0 auto!important;min-height:auto!important;max-height:none!important;overflow:visible!important}}

/* Narrow desktop/tablet: fixed three-column geometry. */
@media (max-width:1100px) and (min-width:561px){.cqg-pg-grid,.cqg-pg-grid[class*='cqg-pg-count-']{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* Mobile: fixed two-column geometry, exactly as Saved Products. */
@media (max-width:560px){a.cqg-home__product-link.cqg-pg-has-variants,a.cqg-home__product-link.cqg-pg-has-variants:hover,a.cqg-home__product-link.cqg-pg-has-variants:focus{min-height:31px!important;margin-bottom:5px!important;padding:5px 6px!important;border-radius:7px!important;gap:4px!important;font-size:9.5px!important}.cqg-pg-variants-icon{font-size:12px}.cqg-pg-variants-arrow{font-size:11px}.cqg-pg-modal{padding:6px;align-items:stretch}.cqg-pg-modal__dialog{width:100%;max-height:calc(100dvh - 12px);border-radius:16px;overflow:hidden!important}.cqg-pg-modal__header{padding:12px 12px 10px;gap:8px}.cqg-pg-modal__header h2{font-size:21px}.cqg-pg-modal__subtitle{font-size:11px;line-height:1.45}button.cqg-pg-modal__close,button.cqg-pg-modal__close:hover,button.cqg-pg-modal__close:focus,button.cqg-pg-modal__close:active{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;flex-basis:38px!important}.cqg-pg-modal__content{flex:1 1 auto;min-height:0;overflow:hidden!important;display:flex;flex-direction:column}.cqg-pg-grid,.cqg-pg-grid[class*='cqg-pg-count-']{--cqg-pg-grid-gap:8px;--cqg-pg-title-size:11px;--cqg-pg-price-size:15px;--cqg-pg-thumb-size:29px;--cqg-pg-body-pad:8px 8px 9px;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:max-content!important;gap:var(--cqg-pg-grid-gap)!important;padding:10px 10px 12px!important;overflow-x:hidden!important;overflow-y:auto!important;flex:1 1 auto;min-height:0}.cqg-pg-card{border-radius:12px}.cqg-pg-card-main-link{aspect-ratio:1/1}.cqg-pg-card-gallery{flex-basis:39px;height:39px;min-height:39px;max-height:39px;grid-template-columns:repeat(4,29px);gap:4px;padding:5px}button.cqg-pg-card-thumb,button.cqg-pg-card-thumb:hover,button.cqg-pg-card-thumb:focus{width:29px!important;height:29px!important;min-width:29px!important;border-radius:6px!important}.cqg-pg-card-body h3{height:1.3em;margin-bottom:6px}.cqg-pg-card-price{margin-bottom:4px}.cqg-pg-card-stock{font-size:10px;margin-bottom:7px}.cqg-pg-card-actions{gap:6px}.cqg-pg-card-actions .cqg-pg-buy,.cqg-pg-card-actions .cqg-pg-choose,.cqg-pg-card-actions .cqg-pg-soon{min-height:34px!important;padding:6px 4px!important;font-size:9.5px!important;line-height:1.15!important;white-space:normal!important}}

/* v0.3.0 — compact information tab, scoped only to variant-modal cards. */
.cqg-pg-card-info-toggle{position:absolute!important;top:9px;right:9px;z-index:3;display:inline-flex!important;align-items:center;justify-content:center;max-width:calc(100% - 18px);min-height:29px!important;padding:5px 10px!important;border:1px solid rgba(49,91,59,.22)!important;border-radius:999px!important;background:rgba(255,255,255,.94)!important;color:#315b3b!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important;box-shadow:0 2px 8px rgba(0,0,0,.12)!important;cursor:pointer}
.cqg-pg-card-info-toggle:hover{background:#edf4ec!important}
.cqg-pg-card-info-panel{position:absolute;z-index:4;inset:0 0 50px 0;overflow-y:auto;padding:15px 13px;background:rgba(247,250,245,.98);color:#243129;font-size:12px;line-height:1.55}
.cqg-pg-card-info-panel[hidden]{display:none!important}
.cqg-pg-card-info-panel strong{display:block;margin-bottom:8px;font-size:13px}
.cqg-pg-card-info-panel p{margin:0 0 12px;overflow-wrap:anywhere}
.cqg-pg-card-info-panel button{padding:5px 10px;border-radius:8px;border:1px solid #315b3b;background:#fff;color:#315b3b;cursor:pointer;font-size:11px;font-weight:700}
@media(max-width:560px){.cqg-pg-card-info-toggle{top:5px;right:5px;padding:4px 6px!important;min-height:25px!important;font-size:9px!important}.cqg-pg-card-info-panel{inset:0 0 39px 0;padding:8px;font-size:10px}}

/* v0.3.1 — place the short-info control as a bottom photo tab, not at its top. */
.cqg-pg-modal .cqg-pg-card .cqg-pg-card-info-toggle{
  top:auto!important;bottom:50px!important;right:auto!important;left:10px!important;
  border-radius:9px 9px 0 0!important;border-bottom:0!important;
  min-height:28px!important;padding:6px 10px!important;
  box-shadow:0 -2px 8px rgba(0,0,0,.12)!important;
}
/* Saved Products already handles clicks, counters and flying-thumbnail animation.
   Its flying thumbnail must be ABOVE the high-z-index variant dialog. */
body:has(.cqg-pg-modal:not([hidden])) > .cqg-saved-fly-thumb{
  z-index:1000010!important;
}
@media(max-width:560px){
  .cqg-pg-modal .cqg-pg-card .cqg-pg-card-info-toggle{
    top:auto!important;bottom:39px!important;right:auto!important;left:5px!important;
    padding:4px 7px!important;min-height:23px!important;
  }
}

/* v0.3.2 — identical placement to CQG Home product-card short info:
   standalone full-width control below stock, above Add to cart. */
.cqg-pg-modal .cqg-pg-card .cqg-pg-card-body > .cqg-pg-card-info-toggle,
.cqg-pg-modal .cqg-pg-card .cqg-pg-card-body > .cqg-pg-card-info-toggle:hover,
.cqg-pg-modal .cqg-pg-card .cqg-pg-card-body > .cqg-pg-card-info-toggle:focus{
  position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  z-index:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:100%!important;max-width:none!important;min-height:34px!important;margin:0 0 7px!important;padding:7px 10px!important;
  border:1px solid #ebd8d0!important;border-radius:9px!important;background:#fff9f5!important;
  color:#74655f!important;font-size:11px!important;font-weight:500!important;text-transform:uppercase!important;
  letter-spacing:.01em!important;line-height:1.2!important;box-shadow:none!important;cursor:pointer!important;
}
.cqg-pg-modal .cqg-pg-card .cqg-pg-card-body > .cqg-pg-card-info-toggle:hover{background:#f9eee8!important;border-color:#dfc9bf!important}
.cqg-pg-card-info-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:20px;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:500;font-family:Georgia,serif;font-style:normal;text-transform:none}
@media(max-width:560px){
  .cqg-pg-modal .cqg-pg-card .cqg-pg-card-body > .cqg-pg-card-info-toggle{min-height:30px!important;padding:5px!important;font-size:9px!important;margin-bottom:6px!important}
  .cqg-pg-card-info-icon{width:16px;height:16px;min-width:16px;font-size:10px}
}
