.cart-items-container {
  padding: 16px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 8px;
  background-color: #fff;
  transition: box-shadow 0.2s ease;
}

.item-checkbox {
  margin-right: 16px;
  transform: scale(1.2);
  accent-color: #fb8114;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-checkbox:hover {
  border-color: #fb8114;
  background-color: #fb8114;
}

.item-checkbox:hover::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.item-checkbox:checked {
  background-color: #fb8114;
  border-color: #fb8114;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.item-checkbox:checked::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.item-info {
  flex: 1;
  min-width: 0; /* Prevent flex item from overflowing */
}

.item-name {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: #333;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.item-display-price {
  font-size: 16px;
  font-weight: 600;
  color: #d0021b;
  line-height: 1.2;
}

.item-original-price {
  font-size: 14px;
  color: #777;
  text-decoration: line-through;
  line-height: 1.2;
  position: relative;
}

.item-original-price::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #777;
  transform: translateY(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cart-item {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .item-image {
    width: 60px;
    height: 60px;
    margin-right: 12px;
  }
  
  .item-checkbox {
    margin-right: 12px;
    transform: scale(1.1);
  }
  
  .item-name {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .item-price-container {
    gap: 8px;
    margin-top: 6px;
  }
  
  .item-display-price {
    font-size: 15px;
  }
  
  .item-original-price {
    font-size: 13px;
  }
  
  .number-input {
    margin-right: 12px;
  }
  
  .qty-btn {
    width: 32px;
    height: 32px;
  }
  
  .qty-input {
    width: 40px;
    height: 32px;
    font-size: 13px;
  }
  
  .remove-item-btn {
    min-width: 70px;
    height: 32px;
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .remove-selected-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}


.item-price {
  font-size: 15px;
  color: #d0021b;
}

.number-input {
  display: flex;
  align-items: center;
  margin-right: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fafafa;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  color: #333;
}

.qty-btn:hover {
  background-color: #e0e0e0;
}

.qty-btn:active {
  background-color: #d0d0d0;
}

.qty-input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.qty-input:focus {
  outline: none;
  background-color: #fff;
}

.item-sale-price {
  color: #777;
  text-decoration: line-through;
  font-size: 15px;
}

._2HcW8dG4 {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

._2HcW8dG4:hover {
  border-color: #fb8114;
  background-color: #fb8114;
}

._2HcW8dG4:hover::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

._1KFD-ThY{
  background-color: #fb8114;
  border: 1px solid #fb8114;
  position: relative;
}

._1KFD-ThY::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

._1RnkVBve._3dfkM4OB {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  padding-left: 15px;
}

._2UoCygyA {
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

/* Nút xóa selected items */
.remove-selected-btn {
  transition: all 0.2s ease;
  border-radius: 6px;
  font-weight: 500;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.remove-selected-btn:hover {
  background: #d32f2f !important;
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.3);
}

.remove-selected-btn:active {
  transform: scale(0.98);
}

/* Loading and empty states */
.loading-state, .empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.loading-state p, .empty-cart p {
  margin: 0;
  font-weight: 500;
}

/* Modal xác nhận xóa */
.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.delete-modal {
  background: white;
  border-radius: 8px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.delete-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0 20px;
  border-bottom: 1px solid #eee;
}

.delete-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #333;
}

.delete-modal-body {
  padding: 20px;
}

.delete-modal-body p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.delete-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px 20px;
}

.cancel-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cancel-btn:hover {
  background: #eee;
}

.confirm-btn {
  background: #ff4444;
  border: 1px solid #ff4444;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.confirm-btn:hover {
  background: #d32f2f;
}