/* Roof Garden Smart Cart. Scoped to approved WooCommerce preview.
   Uses the existing forest/leaf green brand; red appears only on cart count. */
.rg2026-home .rg2026-cart-link {display:inline-flex;align-items:center;gap:7px;justify-content:center;transition:border-color .18s,box-shadow .18s;position:relative}
.rg2026-home .rg2026-cart-link span {
 background:#cf293c!important;color:#fff!important;min-width:22px;min-height:22px;
 padding:2px 6px;font-size:12px;line-height:18px;font-weight:800;border-radius:999px;
}
.rg2026-home .rg2026-cart-link.rg2026-cart-updated {border-color:#cf293c;box-shadow:0 0 0 3px rgba(207,41,60,.13)}
.rg2026-home .rg2026-cart-link.rg2026-cart-updated span {animation:rg2026-counter-bump .42s ease-out}
.rg2026-home .rg2026-sticky-cart .rg2026-floating-count {display:inline-flex;align-items:center;justify-content:center;background:#cf293c;color:#fff;border-radius:999px;min-width:22px;height:22px;padding:0 6px;font-size:12px}
@keyframes rg2026-counter-bump {0%{transform:scale(1)}45%{transform:scale(1.28)}100%{transform:scale(1)}}

.rg2026-smartcart-layer[hidden],.rg2026-smartcart-toast[hidden] {display:none!important}
.rg2026-smartcart-layer {position:fixed;inset:0;z-index:99996;display:flex;align-items:stretch;justify-content:flex-end;font-family:"Hind Siliguri",sans-serif;color:#1e3222}
.rg2026-cart-backdrop {position:absolute;inset:0;background:rgba(9,44,18,.38);border:0;cursor:pointer}
.rg2026-cart-panel {
 position:relative;z-index:1;width:min(440px,100%);height:100%;background:#fbfdf8;
 box-shadow:-12px 0 38px rgba(9,44,18,.18);display:flex;flex-direction:column;
 overflow:hidden;border-radius:19px 0 0 19px;
}
.rg2026-cart-panel-header {display:flex;align-items:center;gap:12px;justify-content:space-between;padding:20px 22px 15px;border-bottom:1px solid #e2ebdc;background:#fff}
.rg2026-cart-panel-header h2 {font-family:inherit;font-size:22px;font-weight:800;color:#103c1a;margin:0;line-height:1.3}
.rg2026-cart-panel-header p{font-size:13px;color:#536458;margin:4px 0 0}
.rg2026-cart-close {display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:50%;border:1px solid #e2ebdc;background:#fff;color:#103c1a;font-size:23px;cursor:pointer}
.rg2026-cart-success{display:flex;align-items:center;gap:9px;padding:12px 19px;margin:14px 17px 0;background:#eaf7e4;border:1px solid #e2ebdc;border-radius:14px;font-size:14px;color:#103c1a;font-weight:700}
.rg2026-cart-success svg{flex:none}
.rg2026-cart-success[hidden] {display:none!important}
.rg2026-cart-list {flex:1;overflow-y:auto;margin:0;padding:12px 18px 10px;list-style:none}
.rg2026-cart-item {display:flex;align-items:flex-start;gap:11px;border-bottom:1px solid #e2ebdc;padding:13px 0}
.rg2026-cart-item:last-child{border-bottom:0}
.rg2026-cart-item-img {width:70px;height:70px;object-fit:contain;border-radius:11px;border:1px solid #e2ebdc;background:#fff;flex:none}
.rg2026-cart-item-main {min-width:0;flex:1}
.rg2026-cart-item-name {font-size:14px;line-height:1.35;font-weight:800;color:#103c1a;margin:0 0 3px}
.rg2026-cart-item-size {font-size:12px;color:#536458;margin:0 0 5px}
.rg2026-cart-item-price {font-size:15px;color:#137c26;font-weight:800;margin:0 0 5px}
.rg2026-cart-item-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rg2026-cart-item-controls button {height:29px;min-width:29px;padding:0 7px;background:#f3faef;color:#103c1a;border:1px solid #e2ebdc;border-radius:8px;cursor:pointer;font-size:15px}
.rg2026-cart-item-controls output{font-size:13px;font-weight:750;text-align:center;min-width:22px}
.rg2026-cart-item-controls button.rg2026-remove-item {margin-left:auto;font-size:12px;color:#536458;background:#fff}
.rg2026-cart-item-controls button:hover,.rg2026-cart-item-controls button:focus-visible {border-color:#158b2f;background:#eaf7e4}
.rg2026-cart-empty{padding:35px 17px;text-align:center;color:#536458;font-size:15px}
.rg2026-cart-footer{padding:14px 20px 23px;border-top:1px solid #e2ebdc;background:#fff;display:flex;flex-direction:column;gap:10px}
.rg2026-cart-summary-row {display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:15px;color:#1e3222}
.rg2026-cart-summary-row strong {font-size:19px;font-weight:800;color:#103c1a}
.rg2026-cart-summary-row.rg2026-discount-row {color:#137c26;font-size:13px}
.rg2026-cart-note {color:#536458;font-size:12px;line-height:1.5;margin:0}
.rg2026-cart-actions {display:flex;flex-direction:column;gap:9px}
.rg2026-cart-actions a,.rg2026-cart-actions button{
 display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;
 padding:10px 15px;border-radius:999px;font-size:16px;font-weight:800;font-family:inherit;
 text-decoration:none;cursor:pointer
}
.rg2026-cart-checkout {background:#158b2f;color:#fff!important;border:1px solid #158b2f}
.rg2026-cart-checkout:hover,.rg2026-cart-checkout:focus-visible {background:#137c26}
.rg2026-cart-continue {background:#fff;color:#103c1a!important;border:1px solid #158b2f}
.rg2026-cart-continue:hover,.rg2026-cart-continue:focus-visible{background:#eaf7e4}
.rg2026-cart-detail {font-size:13px!important;min-height:24px!important;color:#536458!important;background:transparent!important;border:0!important;text-decoration:underline!important}
.rg2026-smartcart-toast {
 position:fixed;z-index:99997;right:24px;bottom:24px;width:min(375px,calc(100% - 28px));
 background:#103c1a;color:#fff;border:1px solid #158b2f;border-radius:14px;
 display:flex;align-items:center;gap:12px;box-shadow:0 12px 28px rgba(9,44,18,.25);
 padding:14px 17px;font:700 14px/1.45 "Hind Siliguri",sans-serif;
}
.rg2026-smartcart-toast.rg2026-error{background:#fff;color:#103c1a;border:2px solid #cf293c}
.rg2026-smartcart-toast span{flex:1}
.rg2026-smartcart-toast button{background:transparent;border:0;color:inherit;font-size:20px;line-height:1;cursor:pointer}
body.rg2026-cart-is-open{overflow:hidden}
@media(max-width:620px){
 .rg2026-smartcart-layer{align-items:flex-end}
 .rg2026-cart-panel{width:100%;height:min(85vh,750px);border-radius:22px 22px 0 0;box-shadow:0 -14px 32px rgba(9,44,18,.2)}
 .rg2026-cart-panel-header{padding:17px 17px 13px}
 .rg2026-cart-list{padding:7px 15px 10px}
 .rg2026-cart-footer{padding:13px 17px max(18px,env(safe-area-inset-bottom))}
 .rg2026-smartcart-toast{right:14px;bottom:70px}
 .rg2026-cart-success{margin:10px 12px 0}
}
@media(prefers-reduced-motion:reduce){
 .rg2026-home .rg2026-cart-link.rg2026-cart-updated span{animation:none!important}
}


/* Local per-product feedback: visible beside the add-to-cart action. */
.rg2026-home .rg2026-product { position:relative; }
.rg2026-home .rg2026-local-status[hidden],
.rg2026-home .rg2026-item-count[hidden] {display:none!important;}
.rg2026-home .rg2026-local-status {
  display:flex;align-items:center;justify-content:center;gap:5px;
  width:100%;border:1px solid #158b2f;border-radius:999px;
  background:#eaf7e4;color:#103c1a;font:700 12px/1.35 "Hind Siliguri",sans-serif;
  padding:8px 7px;min-height:34px;margin-top:9px;cursor:pointer;
}
.rg2026-home .rg2026-local-status:hover,
.rg2026-home .rg2026-local-status:focus-visible {background:#dff1d7;border-color:#137c26;}
.rg2026-home .rg2026-item-count {
  position:absolute;z-index:2;top:10px;right:10px;
  border:2px solid #fff;border-radius:999px;min-height:31px;
  min-width:45px;padding:4px 9px;background:#cf293c;color:#fff;
  box-shadow:0 4px 13px rgba(9,44,18,.18);
  font:800 12px/1.2 "Hind Siliguri",sans-serif;cursor:pointer;
}
.rg2026-home .rg2026-has-items {border-color:#9ec993;}
@media(max-width:620px){
 .rg2026-home .rg2026-local-status{font-size:11px;padding:7px 5px;min-height:32px;}
 .rg2026-home .rg2026-item-count{top:7px;right:7px;min-height:28px;font-size:11px;}
}
