/* ============================================
   SelfEvents V1 — Cart Page Styles
   ============================================ */

.cart-item {
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
  max-height: 300px;
  overflow: hidden;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(-30px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cart-qty-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E8DED4;
  border-radius: 9999px;
  overflow: hidden;
}

.cart-qty-picker button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  cursor: pointer;
}

.cart-qty-picker button:hover {
  background: #F5EDE4;
}

.cart-qty-picker input {
  width: 36px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  outline: none;
  background: transparent;
  -moz-appearance: textfield;
}

.cart-qty-picker input::-webkit-inner-spin-button,
.cart-qty-picker input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.cart-extra-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  background: #F5EDE4;
  color: #7A6F68;
  white-space: nowrap;
}

.cart-remove-btn {
  opacity: 0.4;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.cart-remove-btn:hover {
  opacity: 1;
  color: #BA2257;
}

.reward-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reward-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reward-tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-ico {
  font-size: 1rem;
  flex-shrink: 0;
}

.reward-text {
  font-size: 0.75rem;
  color: #2D2926;
  font-weight: 500;
  line-height: 1.3;
}

.reward-track {
  height: 6px;
  border-radius: 9999px;
  background: #E8DED4;
  overflow: hidden;
}

.reward-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #BA2257, #D4396F);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.voucher-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voucher-input:focus {
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.10);
}

.trust-badge {
  transition: transform 0.2s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  .cart-summary-sticky {
    top: calc(72px + var(--announce-h, 0px) + 16px);
  }
}

@media (max-width: 1023px) {
  .cart-summary-sticky {
    position: static !important;
  }
}
