/* Cart Drawer 3 — clean soft · SCALE + FADE from right */

.bsp-cart-drawer--3 {
  /* Colors come from Customizer inline vars — keep motion only here. */
  --bsp-cart-panel-closed: translateX(28px) scale(0.92);
  --bsp-cart-panel-open: translateX(0) scale(1);
  --bsp-cart-panel-opacity-closed: 0;
  --bsp-cart-panel-opacity-open: 1;
  --bsp-cart-panel-duration: 0.44s;
  --bsp-cart-panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.bsp-cart-drawer--3 .bsp-cart-drawer__overlay {
  transition: opacity 0.4s ease;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__panel {
  top: var(--bsp-cart-panel-inset, 12px);
  right: var(--bsp-cart-panel-inset, 12px);
  bottom: var(--bsp-cart-panel-inset, 12px);
  left: auto;
  width: min(calc(100% - (2 * var(--bsp-cart-panel-inset, 12px))), var(--bsp-cart-drawer-width, 400px));
  height: auto;
  border-radius: var(--bsp-cart-panel-radius, 24px);
  box-shadow: 0 24px 64px rgba(28, 28, 28, 0.18);
}

.bsp-cart-drawer--3 .bsp-cart-drawer__float-label {
  position: absolute;
  top: 18px;
  left: -12px;
  z-index: 2;
  padding: 6px 12px;
  background: var(--bsp-cart-float-bg, #1c1c1c);
  color: var(--bsp-cart-float-text, #fff);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s;
  pointer-events: none;
}

.bsp-cart-drawer--3.is-open .bsp-cart-drawer__float-label {
  opacity: 1;
  transform: translateX(0);
}

.bsp-cart-drawer--3 .bsp-cart-drawer__header {
  border-bottom: 0;
  padding: 28px 28px 12px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bsp-cart-drawer--3 .bsp-cart-drawer__shipping {
  margin: 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border-bottom: 0;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__progress {
  height: 4px;
  border-radius: 999px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__progress-bar {
  border-radius: 999px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__body {
  padding-left: 20px;
  padding-right: 20px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__item {
  grid-template-columns: 72px 1fr 24px;
  gap: 14px;
  padding: 16px;
  margin: 10px 0;
  background: #fff;
  border-radius: 16px;
  border-bottom: 0;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__item-thumb {
  border-radius: 12px;
  background: #eee;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__item-thumb img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__qty {
  border-radius: 999px;
  background: #fff;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__summary,
.bsp-cart-drawer--3 .bsp-cart-drawer__actions {
  background: transparent;
  border-top: 0;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__btn {
  border-radius: 999px;
  min-height: 48px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__upsell {
  border-top: 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}

.bsp-cart-drawer--3 .bsp-cart-drawer__upsell-add {
  border-radius: 999px;
}

.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__item,
.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__empty {
  animation: bspCd3Soft 0.5s ease both;
}

.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__item:nth-child(1) { animation-delay: 0.08s; }
.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__item:nth-child(2) { animation-delay: 0.14s; }
.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__item:nth-child(3) { animation-delay: 0.2s; }
.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__empty { animation-delay: 0.1s; }

.bsp-cart-drawer--3.is-entering .bsp-cart-drawer__btn--checkout {
  animation: bspCd3Btn 0.45s ease both 0.22s;
}

@keyframes bspCd3Soft {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bspCd3Btn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 576px) {
  .bsp-cart-drawer--3 .bsp-cart-drawer__panel {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
  }

  .bsp-cart-drawer--3 .bsp-cart-drawer__float-label {
    left: 16px;
    top: 12px;
  }
}
