.tg-cu{margin:18px 0 6px;padding:12px 0 16px;min-height:0;flex:none;max-width:100%;box-sizing:border-box}
.tg-cu-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px}
.tg-cu-head strong{font-size:12px;line-height:1.4;letter-spacing:.025em;color:inherit}
.tg-cu-actions{display:flex;gap:5px;flex-shrink:0}
.tg-cu-actions button{width:28px;height:28px;min-height:28px;padding:0!important;background:#141414!important;color:white!important;border:0!important;border-radius:4px!important;cursor:pointer;font-size:20px;line-height:1}
.tg-cu-track{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;max-width:100%;padding-bottom:10px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.tg-cu-card{box-sizing:border-box;flex:0 0 158px;max-width:158px;scroll-snap-align:start;border:1px solid #e6e6e6;border-radius:8px;padding:8px;background:white;color:#151515;min-width:0}
.tg-cu-card>img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:5px}
.tg-cu-name{font-size:12px;font-weight:600;line-height:1.4;margin:8px 0;min-height:32px}
.tg-cu-prices{display:flex;gap:5px;flex-wrap:wrap;align-items:baseline;margin-bottom:8px}
.tg-cu-prices del{color:#777;font-size:11px;font-weight:400}
.tg-cu-prices strong{font-size:14px;color:#141414}
.tg-cu-size{width:100%;font-size:12px;max-width:100%;padding:8px 4px;border:1px solid #aaa;border-radius:4px;background:white;color:#111}
.tg-cu-add{display:block;width:100%;background:#111!important;border:0!important;color:white!important;font-size:12px!important;line-height:1.2!important;font-weight:600!important;padding:10px 4px!important;border-radius:4px!important;margin-top:7px;cursor:pointer}
.tg-cu-add:disabled{opacity:.6;cursor:wait}
.tg-cu-msg{font-size:11px;line-height:1.3;color:#444;margin-top:5px;min-height:0}

/* Team Ghost v0.1.1: spacing within Cartly's zero-padding scroll body */
#cly-drawer #cly-body > #tg-cartly-upsell,
#cly-drawer .cly-drawer__body > #tg-cartly-upsell,
#tg-cartly-upsell.tg-cu {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px 18px 26px !important;
  margin: 8px 0 14px !important;
  border-top: 1px solid rgba(0,0,0,.07);
  clear: both;
}
#tg-cartly-upsell .tg-cu-head {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
#tg-cartly-upsell .tg-cu-track {
  gap: 12px !important;
  padding: 0 0 12px !important;
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#tg-cartly-upsell .tg-cu-card {
  flex: 0 0 158px;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  #cly-drawer #cly-body > #tg-cartly-upsell,
  #cly-drawer .cly-drawer__body > #tg-cartly-upsell,
  #tg-cartly-upsell.tg-cu {
    padding: 16px 14px 22px !important;
  }
}

/* Team Ghost v0.1.2: savings before Cartly subtotal. */
#cly-drawer .tg-cu-savings { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid rgba(0,0,0,.09); }
#cly-drawer .tg-cu-saving-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0; font-size: 13px; line-height: 1.45; }
#cly-drawer .tg-cu-original-row { color: #717171; }
#cly-drawer .tg-cu-original { color: #717171; white-space: nowrap; }
#cly-drawer .tg-cu-save-row, #cly-drawer .tg-cu-saving-value { color: #188047; font-weight: 700; }
#cly-drawer .tg-cu-saving-value { white-space: nowrap; }

/* Team Ghost v0.1.3 — Product-by-product savings, Cartly native item list. */
#cly-drawer .cly-item__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
#cly-drawer .cly-item__price .tg-cu-item-original { font-size: 10px; font-weight: 400; color: #9a9a9a; line-height: 1.2; }
#cly-drawer .cly-item__price .tg-cu-item-percent { display: block; font-size: 10px; font-weight: 500; color: #188047; line-height: 1.3; white-space: nowrap; }
