/* Cart Drawer 4 — cosmetics teal · CLIP-PATH wipe reveal */

.bsp-cart-drawer--4 {
  /* Colors come from Customizer inline vars — keep motion only here. */
  --bsp-cart-panel-closed: none;
  --bsp-cart-panel-open: none;
  --bsp-cart-panel-clip-closed: inset(0 0 0 100%);
  --bsp-cart-panel-clip-open: inset(0 0 0 0%);
  --bsp-cart-panel-duration: 0.55s;
  --bsp-cart-panel-ease: cubic-bezier(0.65, 0, 0.35, 1);
}

.bsp-cart-drawer--4 .bsp-cart-drawer__overlay {
  transition: opacity 0.5s ease;
  background: var(--bsp-cart-overlay, rgba(8, 33, 38, 0.52));
}

.bsp-cart-drawer--4 .bsp-cart-drawer__panel {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100%, var(--bsp-cart-drawer-width, 440px));
  height: 100%;
  border-radius: 0;
  background: var(--bsp-cart-bg);
  box-shadow: -20px 0 60px rgba(8, 33, 38, 0.2);
}

.bsp-cart-drawer--4 .bsp-cart-drawer__inner {
  height: auto;
  flex: 1;
  min-height: 0;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 60%, rgba(13, 115, 119, 0.12));
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
  z-index: 1;
}

.bsp-cart-drawer--4.is-open .bsp-cart-drawer__veil {
  opacity: 1;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__header {
  position: relative;
  z-index: 2;
  background: var(--bsp-cart-header-bg, #082126);
  border-bottom: 0;
  padding: 22px 28px;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__title {
  color: var(--bsp-cart-title, #f7f3ef);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__close {
  color: rgba(247, 243, 239, 0.7);
  font-size: 28px;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__close:hover {
  color: #f7f3ef;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__shipping {
  position: relative;
  z-index: 2;
  background: #fff;
  border-bottom-color: rgba(8, 33, 38, 0.08);
}

.bsp-cart-drawer--4 .bsp-cart-drawer__shipping-text {
  color: var(--bsp-cart-progress, #0d7377);
  letter-spacing: 0.06em;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__progress {
  height: 3px;
  border-radius: 0;
  overflow: hidden;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__progress-bar {
  background: linear-gradient(90deg, var(--bsp-cart-progress, #0d7377), var(--bsp-cart-progress-end, #14919b));
}

.bsp-cart-drawer--4 .bsp-cart-drawer__body,
.bsp-cart-drawer--4 .bsp-cart-drawer__summary,
.bsp-cart-drawer--4 .bsp-cart-drawer__actions,
.bsp-cart-drawer--4 .bsp-cart-drawer__secure {
  position: relative;
  z-index: 2;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__item-thumb {
  background: #ebe4dc;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__qty {
  border-color: rgba(8, 33, 38, 0.18);
}

.bsp-cart-drawer--4 .bsp-cart-drawer__qty-btn:hover {
  background: #ebe4dc;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__summary,
.bsp-cart-drawer--4 .bsp-cart-drawer__actions {
  background: #fff;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__btn {
  border-radius: 0;
  letter-spacing: 0.16em;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__btn--checkout:hover {
  background: #0d7377;
  opacity: 1;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__upsell-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.bsp-cart-drawer--4 .bsp-cart-drawer__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 20px 18px;
  background: #fff;
  border-top: 1px solid rgba(8, 33, 38, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bsp-cart-secure-text, #5c6b6e);
  flex-shrink: 0;
}

.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__header {
  animation: bspCd4Header 0.5s ease both 0.15s;
}

.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__item,
.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__empty {
  animation: bspCd4Wipe 0.45s ease both;
}

.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__item:nth-child(1) { animation-delay: 0.22s; }
.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__item:nth-child(2) { animation-delay: 0.3s; }
.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__item:nth-child(3) { animation-delay: 0.38s; }
.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__empty { animation-delay: 0.25s; }

.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__secure {
  animation: bspCd4Secure 0.45s ease both 0.35s;
}

.bsp-cart-drawer--4.is-entering .bsp-cart-drawer__progress-bar {
  animation: bspCd4Bar 0.7s ease both 0.3s;
}

@keyframes bspCd4Header {
  from { opacity: 0; filter: blur(6px); transform: translateX(20px); }
  to { opacity: 1; filter: blur(0); transform: translateX(0); }
}

@keyframes bspCd4Wipe {
  from { opacity: 0; filter: blur(4px); transform: translateX(28px); }
  to { opacity: 1; filter: blur(0); transform: translateX(0); }
}

@keyframes bspCd4Secure {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bspCd4Bar {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
