/* ======================================================================
   PL Cart Modal — global mini-cart sheet shown when a product is added.
   Mirrors the design previously scoped to body.single-product.pl-pdp.
   ====================================================================== */

.pl-cart-modal {
  --pl-bg: #f5f6f8;
  --pl-surface: #fff;
  --pl-ink: #0e1729;
  --pl-ink-2: #4a5568;
  --pl-ink-3: #7a8699;
  --pl-line: #e6e9ef;
  --pl-line-2: #eef0f4;
  --pl-accent: #fcd34d;
  --pl-accent-ink: #1c1606;
  --pl-green: #138a4f;
  --pl-red: #d4192b;
  position: fixed; inset: 0; z-index: 10000;
  display: none;
  align-items: flex-end; justify-content: center;
}
.pl-cart-modal.open { display: flex; }
.pl-cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 17, 17, 0.55);
  animation: pl-fadein .25s ease;
}
.pl-cart-sheet {
  position: relative;
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px 18px;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  animation: pl-slideup .3s cubic-bezier(.2,.9,.3,1.05);
  max-height: 92vh; overflow-y: auto;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--pl-ink);
}
@keyframes pl-fadein { from { opacity: 0 } to { opacity: 1 } }
@keyframes pl-slideup { from { transform: translateY(100%) } to { transform: translateY(0) } }

.pl-cart-modal .pl-cart-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f2f3f5; border: 0; color: var(--pl-ink);
  display: grid; place-items: center;
  cursor: pointer;
  padding: 0;
}
.pl-cart-modal .pl-cart-success {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.pl-cart-modal .pl-cart-check {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pl-green); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  animation: pl-pop .35s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes pl-pop { from { transform: scale(0) } to { transform: scale(1) } }
.pl-cart-modal .cs-title { font-weight: 800; font-size: 17px; color: var(--pl-ink); line-height: 1.2; }
.pl-cart-modal .cs-sub { font-size: 12.5px; color: var(--pl-ink-3); margin-top: 2px; }

.pl-cart-modal .pl-cart-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 12px; align-items: center;
  background: #fafbfd;
  border: 1px solid var(--pl-line-2);
  border-radius: 14px; padding: 10px 12px;
  margin-bottom: 12px;
}
.pl-cart-modal .ci-img {
  width: 56px; height: 56px; border-radius: 10px;
  background: #fff; display: grid; place-items: center;
  border: 1px solid var(--pl-line-2);
  overflow: hidden;
}
.pl-cart-modal .ci-img img { width: 80%; height: auto; max-height: 100%; }
.pl-cart-modal .ci-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--pl-ink); }
.pl-cart-modal .ci-tag {
  display: inline-block;
  background: var(--pl-red); color: #fff;
  font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  margin-left: 4px; vertical-align: middle;
  letter-spacing: 0.02em;
}
.pl-cart-modal .ci-meta { font-size: 12px; color: var(--pl-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }

.pl-cart-modal .pl-cart-progress {
  background: #f0f7ff; border: 1px solid #cfe1ff;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.pl-cart-modal .pl-cart-progress.is-free {
  background: transparent; border: 0; padding: 2px 2px 0; margin-bottom: 8px;
}
.pl-cart-modal .pl-cart-progress.is-free .cp-row { margin-bottom: 0; color: var(--pl-ink); font-size: 13.5px; }
.pl-cart-modal .cp-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #0d3b8a; margin-bottom: 6px; }
.pl-cart-modal .cp-row[hidden] { display: none; }
.pl-cart-modal .cp-icon { font-size: 14px; }
.pl-cart-modal .cp-bar { height: 6px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid #cfe1ff; }
.pl-cart-modal .cp-bar[hidden] { display: none; }
.pl-cart-modal .cp-fill { height: 100%; background: linear-gradient(90deg, #1f8e3a, #5fc480); border-radius: 999px; transition: width .4s; }

.pl-cart-modal .pl-cross-sell {
  border: 1px dashed #ffce12;
  background: #fffaeb;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 14px;
}
.pl-cart-modal .pl-cross-sell[hidden] { display: none; }
.pl-cart-modal .xs-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px; color: var(--pl-ink);
}
.pl-cart-modal .xs-head--free { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.pl-cart-modal .xs-head[hidden],
.pl-cart-modal .xs-head--free[hidden] { display: none; }
.pl-cart-modal .xs-tag {
  background: var(--pl-accent); color: var(--pl-accent-ink);
  font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
}
.pl-cart-modal .xs-tag[hidden] { display: none; }
.pl-cart-modal .xs-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.pl-cart-modal .xs-img {
  width: 44px; height: 44px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pl-line-2);
  display: grid; place-items: center; font-size: 22px;
  overflow: hidden;
}
.pl-cart-modal .xs-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-cart-modal .xs-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.pl-cart-modal .xs-price { font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pl-cart-modal .xs-was {
  color: var(--pl-ink-3); text-decoration: line-through; margin-right: 4px;
}
.pl-cart-modal .xs-price strong { color: var(--pl-green); font-weight: 800; }
.pl-cart-modal .xs-add {
  background: #fff; border: 1.5px solid var(--pl-ink);
  color: var(--pl-ink); font-weight: 700; font-size: 12px;
  padding: 7px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.pl-cart-modal .pl-cart-ctas {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 8px; margin-bottom: 12px;
}
.pl-cart-modal .cm-secondary {
  padding: 0; border-radius: 14px;
  border: 1.5px solid var(--pl-ink);
  background: #fff; color: var(--pl-ink);
  font-weight: 700; font-size: 13.5px;
  cursor: pointer;
  height: 48px;
}
.pl-cart-modal .cm-primary {
  height: 48px; border-radius: 14px;
  border: 0; background: var(--pl-accent); color: var(--pl-accent-ink);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 6px 14px rgba(255,206,18,0.4);
  text-decoration: none;
}
.pl-cart-modal .cm-savings-note {
  grid-column: 2; text-align: center;
  font-size: 11px; font-weight: 700;
  color: var(--pl-red);
  margin-top: 2px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.pl-cart-modal .cm-savings-note[hidden] { display: none; }
.pl-cart-modal .pl-cart-trust {
  display: flex; justify-content: space-around; gap: 6px;
  font-size: 11px; color: var(--pl-ink-2);
  border-top: 1px solid var(--pl-line-2);
  padding-top: 10px;
}

/* Desktop: side drawer */
@media (min-width: 901px) {
  .pl-cart-modal {
    align-items: stretch;
    justify-content: flex-end;
  }
  .pl-cart-sheet {
    border-radius: 0;
    max-width: 460px;
    height: 100vh;
    max-height: 100vh;
    animation: pl-slidein .25s cubic-bezier(.2,.9,.3,1.05);
  }
  @keyframes pl-slidein { from { transform: translateX(100%) } to { transform: translateX(0) } }
}

/* Hide legacy mini-cart panel site-wide — replaced by the new sheet */
.solcito-added-panel { display: none !important; }
