/* iConnect redesign — cart page */
/* near full-bleed card per cart bible: 32px gutters at 1440 (pixel-verified x=32..1404) */
#checkout-cart{max-width:1440px;margin-inline:auto;padding:24px 32px;}
#checkout-cart > .breadcrumb{display:none;}

/* free-shipping fill-bar */
.ic-fsbar{max-width:820px;margin:6px auto 30px;text-align:center;}
.ic-fsbar__msg{font-size:16px;color:var(--ic-text);margin-bottom:16px;}
.ic-fsbar__track{position:relative;height:12px;border-radius:var(--ic-pill);background:#e7e2ec;overflow:visible;}
.ic-fsbar__fill{position:absolute;inset:0 auto 0 0;height:100%;border-radius:var(--ic-pill);background:var(--ic-grad-btn);transition:width .4s ease;}
.ic-fsbar__knob{
  position:absolute;top:50%;right:-6px;transform:translate(0,-50%);
  width:30px;height:30px;border-radius:50%;background:var(--ic-magenta);color:#fff;
  display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:13px;box-shadow:0 2px 8px rgba(170,7,107,.4);
}
.ic-fsbar__start{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:22px;height:22px;border-radius:50%;
  background:#A9076B;z-index:1; /* matches the fill's gradient start — reads as one piece */
}
/* the fill peeks slightly past the start knob so they always overlap */
.ic-fsbar__fill{min-width:26px;}

/* heading */
.ic-cart__title{font-family:var(--ic-head);font-weight:500;font-size:50px;text-align:center;margin:0 0 26px;}

/* one continuous white card around the whole cart flow (bible) */
.ic-cart__shell{background:#fff;border-radius:var(--ic-r-lg);box-shadow:var(--ic-shadow-card);padding:26px 30px 30px;}
.ic-cart__shell .ic-cart__title{margin-top:6px;}
.ic-cart__tablewrap{overflow-x:auto;}
.ic-cart__table{width:100%;border-collapse:collapse;min-width:760px;}
.ic-cart__table thead th{
  font-family:var(--ic-body);font-weight:600;font-size:14px;color:#2a2a2e;text-align:left;
  padding:18px 14px;border-bottom:1px solid var(--ic-line);white-space:nowrap;
}
.ic-cart__table tbody td{padding:16px 14px;border-bottom:1px solid var(--ic-line-soft);vertical-align:middle;font-size:14px;}
.ic-cart__table tbody tr:last-child td{border-bottom:0;}
.ic-cart__img{width:78px;height:78px;border-radius:var(--ic-r);background:#fff;border:1px solid var(--ic-line-soft);display:flex;flex-direction:row;align-items:center;justify-content:center;padding:6px;}
.ic-cart__img img{max-width:100%;max-height:100%;object-fit:contain;}
.ic-cart__name{font-weight:600;color:var(--ic-text);max-width:280px;}
.ic-cart__name:hover{color:var(--ic-magenta);}
/* 2+1 (category 543), as the old cart showed it: every qualifying line carries the 2+1 pill,
   and the free one is green, row and pill alike */
.ic-cart__2p1{display:inline-block;margin:0 0 0 8px;vertical-align:middle;background:var(--ic-magenta);color:#fff;font-family:var(--ic-head);font-weight:700;font-size:11px;line-height:1.4;border-radius:var(--ic-pill);padding:2px 9px;white-space:nowrap;}
.ic-cart__2p1.is-free{background:#18A957;}
.ic-cart__table tbody tr.is-2p1-free{background:#EAF8EF;}
.ic-cart__opts{list-style:none;margin:4px 0 0;padding:0;color:var(--ic-muted);font-size:12px;}
.ic-cart__price{font-family:var(--ic-head);white-space:nowrap;}
.ic-cart__qtyx{display:block;font-family:var(--ic-body);font-weight:600;font-size:13px;color:var(--ic-muted);margin-bottom:2px;}
.ic-cart__tot{display:block;font-weight:800;font-size:17px;}
/* small text action under the qty stepper */
.ic-cart__remove{
  display:inline-flex;flex-direction:row;align-items:center;justify-content:center;
  background:none;border:0;cursor:pointer;
  font-size:12px;font-weight:600;color:var(--ic-muted);text-decoration:underline;text-underline-offset:2px;
}
.ic-cart__remove:hover{color:var(--ic-sold);}
.ic-cart__table tbody td .ic-cart__remove{display:flex;margin:8px auto 0;}
.ic-cart__table .ic-qty input{width:46px;height:36px;}
.ic-cart__table .ic-qty button{width:34px;height:34px;font-size:16px;}

/* cross-sell */
.ic-crosssell{
  background:#6D1150;color:#fff;border-radius:var(--ic-r-lg);
  padding:22px 24px;margin:24px 0;
}
.ic-crosssell__title{font-weight:700;font-size:16px;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:12px;margin-bottom:16px;}
.ic-crosssell__row{display:flex;flex-direction:row;align-items:center;gap:20px;flex-wrap:wrap;}
.ic-crosssell__img{width:96px;height:96px;background:#fff;border-radius:var(--ic-r);display:flex;flex-direction:row;align-items:center;justify-content:center;padding:8px;flex:0 0 auto;}
.ic-crosssell__img img{max-width:100%;max-height:100%;object-fit:contain;}
.ic-crosssell__name{flex:1 1 240px;font-size:14px;line-height:1.4;}
.ic-crosssell__price{font-family:var(--ic-head);font-weight:800;font-size:20px;white-space:nowrap;}
.ic-crosssell__price .old{color:#ff4d4d;text-decoration:line-through;font-size:16px;margin-right:8px;}

/* upsell CTA: solid gradient pill (desktop bible: no outline ring) */
.ic-crosssell .ic-btn--grad,.ic-crosssell .ic-btn{
  background:linear-gradient(90deg,#8E0666 0%,#61045F 100%);
  box-shadow:none;
}

/* coupon */
.ic-coupon{margin:28px 0 8px;}
.ic-coupon h2{font-family:var(--ic-head);font-weight:650;font-size:30px;margin:0 0 4px;}
.ic-coupon p{color:var(--ic-muted);font-size:14px;margin:0 0 12px;}
/* coupon: Apply pill embedded inside the right end of the input (bible) */
.ic-coupon .ic-coupon__box{position:relative;display:block;}
.ic-coupon input[type=text]{width:100%;height:52px;border:1px solid var(--ic-line);border-radius:var(--ic-pill);padding:0 130px 0 20px;font-size:14px;}
.ic-coupon #ic-coupon-apply{
  text-transform:none;letter-spacing:.2px;
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  height:40px;padding:0 28px;
}
.ic-coupon #ic-coupon-apply:hover{transform:translateY(-50%);}
/* style OC4 total-module accordions to blend in */
.ic-modules .accordion,.ic-modules .card,.ic-modules .accordion-item{border:0!important;background:transparent!important;}
.ic-modules .card-header,.ic-modules .accordion-header{background:transparent!important;border:0!important;padding:0 0 8px!important;font-family:var(--ic-head);font-weight:700;text-transform:uppercase;}
.ic-modules .btn-primary{background:var(--ic-magenta);border:0;border-radius:var(--ic-pill);padding:12px 22px;font-family:var(--ic-head);font-weight:700;}

/* totals — plain rows, no stripes/dividers (bible) */
.ic-cart__totals{margin:22px 0;}
.ic-cart__totals .row1{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  padding:10px 4px;
}
.ic-cart__totals .row1 .k{font-family:var(--ic-head);font-weight:800;font-size:22px;}
.ic-cart__totals .row1 .v{font-family:var(--ic-head);font-weight:600;font-size:24px;}


/* footer buttons */
.ic-cart__actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:8px;}

.ic-cart__empty{text-align:center;padding:60px 20px;}
.ic-cart__empty h1{font-family:var(--ic-head);font-weight:800;}

/* ---- mobile: table reflows into the bible's stacked product cards ---- */
@media (max-width:767px){
  #checkout-cart{padding:24px 20px;}
  .ic-cart__title{font-size:36px;}
  .ic-cart__actions .ic-btn{width:100%;}
  .ic-cart__actions{flex-direction:column;}

  .ic-cart__shell{padding:16px 14px 20px;}
  .ic-cart__tablewrap{overflow-x:visible;}

  /* cross-sell (bible mobile): image left / name right, price under name, full-width gradient CTA */
  .ic-crosssell{padding:18px 16px;}
  .ic-crosssell__row{
    display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px 16px;align-items:start;
    grid-template-areas:"img name" "img price" "cta cta";
  }
  .ic-crosssell__img{grid-area:img;width:104px;height:104px;}
  .ic-crosssell__name{grid-area:name;flex:none;font-size:14.5px;}
  .ic-crosssell__price{grid-area:price;}
  /* centered content-width pill with clear margins (bible) — must never overflow the panel */
  .ic-crosssell__row form{grid-area:cta;display:flex;justify-content:center;margin-top:6px;min-width:0;}
  .ic-crosssell__row form .ic-btn{width:82%;max-width:100%;padding:15px 20px;font-size:13px;}
  .ic-cart__table{min-width:0;display:block;}
  .ic-cart__table thead{display:none;}
  .ic-cart__table tbody{display:block;}
  .ic-cart__table tbody tr{
    display:grid;position:relative;
    grid-template-columns:110px max-content minmax(0,1fr);
    grid-template-areas:
      "img code  avail"
      "img name  name"
      "img total qty";
    gap:4px 12px;align-items:center;
    padding:10px 8px 10px 2px;
  }
  .ic-cart__table tbody td{display:block;border:0;padding:0;}
  .ic-cart__table tbody td:nth-child(1){grid-area:img;}
  .ic-cart__table tbody td:nth-child(2){grid-area:avail;justify-self:start;}
  .ic-cart__table tbody td:nth-child(3){grid-area:name;}
  .ic-cart__table tbody td:nth-child(4){grid-area:code;font-weight:700;font-size:13px;}
  .ic-cart__table tbody td:nth-child(5){grid-area:qty;justify-self:end;}
  .ic-cart__table tbody td:nth-child(6){grid-area:total;font-size:17px;}
  .ic-cart__qtyx{display:none;} /* bible shows one price per card */
  /* mobile: the text action flows under the stepper (no image overlay) */
  .ic-cart__table tbody .ic-cart__remove{margin:6px 0 0 auto;font-size:11.5px;}
  .ic-cart__img{width:104px;height:104px;border:0;box-shadow:none;padding:0;}
  .ic-cart__name{font-size:13.5px;max-width:none;}
  .ic-cart__table .ic-qty{gap:6px;}
  .ic-cart__table .ic-qty input{width:38px;height:32px;font-size:14px;}
  .ic-cart__table .ic-qty button{width:30px;height:30px;font-size:14px;}
}

/* two suggestions now stack in the panel, so they need a divider between them */
.ic-crosssell__row + .ic-crosssell__row{
  margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.16);
}
