.vcb-cart-wrapper {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--vcb-checkout-border-light, #edf2f7);
  padding: 20px;
  margin: 20px 0;
}

.vcb-cart-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.vcb-cart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vcb-cart-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.vcb-cart-controls .vcb-buttons-group {
  display: flex;
  gap: 8px;
}

.vcb-cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.vcb-cart-item:last-child {
  border-bottom: none;
}

.vcb-item-checkbox {
  margin-right: 15px;
}

.vcb-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
}

.vcb-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcb-item-details {
  flex: 1;
}

.vcb-item-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.vcb-item-price {
  color: #666;
  font-size: 14px;
}

.vcb-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px;
}

.vcb-quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcb-quantity-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}

.vcb-item-total {
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

/* 데스크탑 삭제 버튼 스타일 */
.vcb-cart-item > .vcb-item-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  padding: 5px;
  cursor: pointer;
  margin-left: 15px;
  flex-shrink: 0;
}

.vcb-cart-item > .vcb-item-remove:hover {
  color: #ff6b35;
}

.vcb-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.vcb-btn-primary {
  background: #ff6b35;
  color: white;
}

.vcb-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.vcb-btn:hover {
  opacity: 0.9;
}

.vcb-cart-totals {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.vcb-cart-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.vcb-total-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.vcb-total-line.vcb-discount {
  color: #28a745;
}

.vcb-total-line.vcb-final-total {
  font-weight: 600;
  font-size: 18px;
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 15px;
}

/* 모바일용 요소들을 데스크탑에서 숨기기 */
.vcb-mobile-quantity-controls,
.vcb-mobile-price-remove {
  display: none;
}

@media (max-width: 768px) {
  .vcb-cart-wrapper {
    padding: 10px 0;
    background: transparent;
    border: none;
    margin: 0;
  }

  .vcb-cart-header {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .vcb-cart-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 22px 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
  }

  .vcb-cart-item:last-child {
    border-bottom: 1px solid #e5e5e5;
  }


  /* 체크박스 숨기기 */
  .vcb-item-checkbox {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: start;
  }

  .vcb-item-image {
    width: 80px;
    height: 80px;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .vcb-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80px; /* 이미지와 동일한 높이로 설정 */
  }

  .vcb-item-name {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
  }

  .vcb-item-price {
    display: none;
  }

  /* 모바일 수량 컨트롤 표시 */
  .vcb-mobile-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 8px;
  }

  .vcb-mobile-quantity-controls .vcb-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .vcb-mobile-quantity-controls .vcb-quantity-input {
    width: 40px;
    padding: 0;
    height: 24px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 13px;
    text-align: center;
  }

  /* 데스크탑 요소들 숨기기 */
  .vcb-cart-item > .vcb-quantity-controls {
    display: none;
  }

  .vcb-cart-item > .vcb-item-total {
    display: none;
  }

  .vcb-cart-item > .vcb-item-remove {
    display: none;
  }

  /* 모바일 가격과 삭제 버튼 */
  .vcb-mobile-price-remove {
    display: flex;
    height: 80px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: end;
    margin-left: 8px;
  }

  .vcb-mobile-price {
    text-align: right;
  }

  .vcb-mobile-price > :first-child {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: block;
  }

  .vcb-mobile-price del {
    font-size: 13px;
    color: #999;
    display: block;
    margin-top: 2px;
  }

  .vcb-mobile-price-remove .vcb-item-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 컨트롤 버튼들 */
  .vcb-cart-controls {
    flex-direction: row;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .vcb-cart-controls label {
    display: none;
  }

  .vcb-cart-controls .vcb-buttons-group {
    gap: 5px;
  }

  .vcb-btn-sm {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* 장바구니 아이템 컨테이너 */
  .vcb-cart-items {
    background: transparent;
  }
}
.vcb-cart-empty {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed #eee;
  border-radius: 12px;
}

.vcb-cart-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.vcb-cart-empty h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.vcb-cart-empty p {
  color: #666;
  margin-bottom: 20px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}
